Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
i am working on a problem to get a access token for an API. I need to send a http post with Header Information (application json) and a JSON as body in form of:
{"email":"abc@mail.com","password":"secret"} to an API to get an session cookie and access to the API. I successfully connected to it via tRest with the above in the body (escaped the ") but then I couldn't get the information from the cookie (but there is the access_token). so I tried to connect via tFilefetch to save the cookie and read it again but I could not get the html body information in there and always got a 400 bad request back. I only would need to get the access token from the request from the cookie to then call another API action (tRest) with the access token in the header.
Any idea how to get this done? Thx!