Postman
OAuth Access Token
Steps
-
Install Postman
-
Open Postman
-
Create a
new request
.
- Click on
Authorization
and selectOAuth 2.0
from Type dropdown menu.
- Click on
Get New Access Token
.
- Copy your
API Key (Client ID)
,Client Secret
and theDefault Redirect URI
from your Adobe Developer Console integration and paste it in the PostmanGET NEW ACCESS TOKEN
window. Assuming you are trying to get an access token for Adobe Analytics use below for scope:
openid,AdobeID,read_organizations,additional_info.projectedProductContext,additional_info.job_function
Note: If you are not sure about scope, refer to Scope Reference.
- You will be prompted for login by Adobe. Login using your Adobe ID.
- Your access token will be generated.
CURL Requests in Windows
In API Documentation, sample CURL requests are common and helpful for the developers. Mac and Linux terminals are capable of executing such CURL requests but the Windows command prompt doesn't support it out of the box.
For windows users, you can follow below steps to execute the CURL requests easily by using Postman.
Steps
- Copy the CURL Request. e.g.
curl https://stock.adobe.io/Rest/Media/1/Search/Files?locale=en_US%26search_parameters%5Bwords%5D=kittens
-H 'x-api-key:myAPIKey'
-H 'x-product:myTestApp1.0'
- Open Postman. Click
Import
->Paste Raw Text
-> Paste the CURL request.
- Go to
Headers
tab and replacemyAPIKey
with your actual API Key from Adobe Developer Console integration for Adobe Stock.
- Click Send. You will receive a response.
Note: You can import any CURL Request into Postman by following the above steps.