Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

Latest commit

 

History

History
99 lines (56 loc) · 3.1 KB

Postman.md

File metadata and controls

99 lines (56 loc) · 3.1 KB

Postman

Contents

OAuth Access Token

Steps

  1. Install Postman

  2. Open Postman

  3. Create a new request.

pm-1

  1. Click on Authorization and select OAuth 2.0 from Type dropdown menu.

pm-2

  1. Click on Get New Access Token.

pm-3

  1. Copy your API Key (Client ID), Client Secret and the Default Redirect URI from your Adobe I/O Console integration and paste it in the Postman GET 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.

pm-4

  1. You will be prompted for login by Adobe. Login using your Adobe ID.

pm-5

  1. Your access token will be generated.

pm-6

JWT Access Token

Steps

  1. Go to Adobe I/O Console

  2. Open the Service Account Integration for which you want to generate an access token.

pmj-1

  1. Click on the JWT tab, paste the entire private key file content including the -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY----- and click on Generate JWT.

pmj-2

  1. 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.)

pmj-3

  1. Click on Import -> Paste Raw Text and paste the CURL command.

pmj-4

  1. Click on Send. You will receive an access token.

pmj-5

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

  1. 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'
  1. Open Postman. Click Import -> Paste Raw Text -> Paste the CURL request.

pmw-1

  1. Go to Headers tab and replace myAPIKey with your actual API Key from Adobe I/O Console integration for Adobe Stock.

pmw-2

  1. Click Send. You will receive a response.

pmw-3

Note: You can import any CURL Request into Postman by following the above steps.