08-05-23 04:10 PM
Hi All,
I need some help. I am trying to do a HTTP POST call which is working fine in postman.
As per postman these are the attributes.
Authorization:
Basic Auth with client id and secret.
Body :
content type : application/x-www-form-urlencoded
Key :grant_Type
Value : client credentials
Could you please help me setup the same in HTTP in blueprism
------------------------------
Jishnu P Nair
Developer
Ey
Asia/Kolkata
------------------------------
08-05-23 04:42 PM
Hello @JishnuP_Nair
Is there any content in the body of the request, or is this simply an authorization request?
Cheers,
08-05-23 04:43 PM
08-05-23 04:44 PM
Hi Eric
please find the postman screenshots
08-05-23 04:50 PM
@JishnuP_Nair
NOTE: Make sure you've downloaded the latest Utility - HTTP VBO from the Digital Exchange.
Here's the basic layout.
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
08-05-23 04:59 PM
Hi ERIC
{"error":"invalid_request"}
this is the response i am getting
thanks,
jishnu
08-05-23 05:36 PM
@JishnuP_Nair
Oops! My mistake. You don't need the headers collection. You'll actually add "grant_type=client_credentials" to the Body parameter of the request. Is this an internal API that you're working with or a something from a public web service? Might make troubleshooting it a bit easier if I can review the developer documentation for the service, if it's public.
Cheers,
08-05-23 05:46 PM
Hi Eric,
this is an internal API. I am not at liberty to share the details.
this is ok?
08-05-23 06:12 PM
@JishnuP_Nair
The best way to determine if you have the correct body setup is to run the request in Postman and then look at the request/response in Postman Console. You can access the Console along the bottom left of the Postman UI:
This will open another display that initially shows a single line for each request. You can then expand that line and see the contents of the request including the headers and body.
Cheers,
08-05-23 06:50 PM
Hi Eric,
I am using the latest HTTP VBO.
This is the request console details. But even here also i am getting error code 400