-
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.
-
Go to Adobe Developer Console
-
Open the Service Account Integration for which you want to generate an access token.
- Click on the JWT tab, paste the entire private key file content including the
-----BEGIN PRIVATE KEY-----
and-----END PRIVATE KEY-----
and click onGenerate JWT
.
- Copy the
Sample CURL command
and open Postman. (Mac and Linux user can also paste the CURL command in terminal and get the access token.)
- Click on
Import
->Paste Raw Text
and paste the CURL command.
- Click on
Send
. You will receive an access token.
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.
- 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.