Hello Victor, Thanks for the reply. I have a static username and password to retrieve a ServiceTicket response first, then I need to enter this ServiceTicket value into "Basic Auth" field in order to send form data via API. Maybe I misunderstood the process?Here what the documentation tells me:
Url LIVE: https://api.relateddigital.com/resta/api/Member/InsertMemberDemography
Http verb POST
Parameters
Header Content-Type: application/json
Authorization: Service Ticket value retrieved after Login action.
My question is how to add this ServiceTicket value into my Send API data?
Thanks.
The link you provided doesn't work. It produces an error:
The requested resource does not support http method 'GET'.
The answer is I don't know. It would help to see what you're doing. If you want to post a video, please include the response from the first API call so we can see the JSON response.
Unless I'm missing something, add the hidden field's shortcode to the the second API auth string.
Victor, thank you for your reply. I was away so I can continue now. There are 2 problems:
1) When I enter username and password to the first form I got an error as response but when I test the API online and POST { "UserName" : "MyUserName","Password" : "MyPassword" } as content I got the proper response as I mentioned earlier. Is there a way to pass this step with some code in functions.php. If yes, how?
2) Even thought that I got the ServiceTicket value from the first response, there is no way to enter this automatically into the Basic Auth field of the second Send API data form. Shortcodes do not work there.
Best,
Haluk, did you ever find a way to do this? I'm having the same problem trying to include a received Bearer token in the API header. The short code is ignored and it sends with the Basic auth.
Please login or Register to submit your answer