Consuming REST API
Application Type
Traditional Web

I am consuming rest api from Intuit through postman and everything works fine.
An example is a GET request that has parameters to be passed on the endpoint URL, oauth 2.0 authorization having access token, grant type, callback URL header prefix etc. I am able to pass parameters to the endpoint URL in Outsystems, how do I go about passing parameters under Authorization and environment tabs in postman?

mvp_badge
MVP

Hi Mganda,


You can define where your input parameters will be sent. For those that are headers, you can define the option Send In to Header and define the Name in Request, like in the example below:


Kind Regards,
João

In Authorization tab postman, I am required to select OAuth 2.0  under type and also add authorization data to request headers.
I am also required to expand Configure New Access Token section and add Token Name, Grant Type, Callback URL, Auth URL, Access Token URL, Client ID, Client Secret, Scope, State, Client Authentication for me to get a new access token which expires after every 60 minutes.
To call any API end point, I use the access token from the above procedure.
All these seem simple in postman. The intention though is to do the same in Outsystems. I'm only allowed to use some parameters in the GET URL, I am not sure if I should have above mentioned parameters as input variables for the API call or as json in the request body for the call.
This is the procedure using postman from their developer page https://developer.intuit.com/app/developer/qbo/docs/develop/sandboxes/postman


@Mganda , check my links, maybe you can understand better how to call Rest API's using oauth 2.

Hi @Mganda ,

I didn’t understand what you are trying to do. You want to call rest in outsystems with oauth 2.0?

If yes, check this topics:

https://www.outsystems.com/forums/discussion/36032/how-to-consume-rest-api-that-uses-oauth2/


you also have this training:

https://www.outsystems.com/training/lesson/1839/integrating-with-oauth-exercise/


you can check also some forge components thatuses oauth, to see how it was implemented:
Exemple: https://www.outsystems.com/forge/component-overview/7332/outlookcalendar

In short, I want to implement this procedure(made for postman) in outsystems.

Hello Friend,

Can you please check once below link is helpful to you or not.

https://developer.genesys.cloud/api/rest/postman/

https://www.outsystems.com/forums/discussion/22162/set-rest-api-basic-authentication/


kind Regards,

Ajit kurane.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.