Question

Using HTTPCaller POST to get Security Token

  • 22 June 2023
  • 1 reply
  • 33 views

I am having problems trying to do the above.

 

Documentation for the token request is here:

 

https://bitbucket.org/ikegps/office-api/src/master/

 

It is requiring a application/x-www-form-urlencoded content-type.

 

I have setup the HTTPCaller like this:

 

imageThe 'mulitpart' upload also includes the additional fields from their doc for 'audience', 'username' and 'password'.

 

I used the example Curl command in Windows list on their docs and was able to get a token.

 

I am getting a '401 error' running this in a workspace.

 

Any help on this or suggestions would be greatly appreciated. I have been fighting with it for a while, and have searched for examples/help here, but haven't gotten it to work.


1 reply

I think you need to choose for "Specify Upload Body" instead of "Multipart / Form Data" with

grant_type=password&client_id=eByTHyjFcmwdRXwqjM4X2CKsyx9lRe9t&audience=https://office.ikegps.com/v1/&username=Your-IKE-ID-Email&password=Your-IKE-ID-Password

as Upload Body. When I run this I get 

{"error":"invalid_grant","error_description":"Wrong email or password."}

as a response, which is to be expected.

 2023-06-23_08h13_51

Reply