Created
May 4, 2017 15:39
-
-
Save drunkel/7ec66ed33f66d0070148694651699d03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": [], | |
"info": { | |
"name": "GoDaddy Office365 copy", | |
"_postman_id": "546e1412-9ba2-9dfc-bfba-5f1f04046080", | |
"description": "", | |
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "1. Request an authorization code", | |
"request": { | |
"url": "https://login.microsoftonline.com/common/oauth2/authorize?client_id=CLIENT_ID&redirect_uri=REDIRECT_URI&response_type=code", | |
"method": "GET", | |
"header": [], | |
"body": {}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "3. Use the authorization code to request an access token", | |
"request": { | |
"url": "https://login.microsoftonline.com/common/oauth2/token", | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/x-www-form-urlencoded", | |
"description": "" | |
} | |
], | |
"body": { | |
"mode": "urlencoded", | |
"urlencoded": [ | |
{ | |
"key": "grant_type", | |
"value": "authorization_code", | |
"type": "text", | |
"enabled": true | |
}, | |
{ | |
"key": "client_id", | |
"value": "CLIENT_ID", | |
"type": "text", | |
"enabled": true | |
}, | |
{ | |
"key": "code", | |
"value": "CODE", | |
"type": "text", | |
"enabled": true | |
}, | |
{ | |
"key": "redirect_uri", | |
"value": "REDIRECT_URI", | |
"type": "text", | |
"enabled": true | |
}, | |
{ | |
"key": "client_secret", | |
"value": "SECRET", | |
"type": "text", | |
"enabled": true | |
}, | |
{ | |
"key": "resource", | |
"value": "https://outlook.office365.com/", | |
"type": "text", | |
"enabled": true | |
} | |
] | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "4. Refresh token", | |
"request": { | |
"url": "https://login.microsoftonline.com/common/oauth2/token", | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/x-www-form-urlencoded", | |
"description": "" | |
} | |
], | |
"body": { | |
"mode": "urlencoded", | |
"urlencoded": [ | |
{ | |
"key": "grant_type", | |
"value": "refresh_token", | |
"type": "text", | |
"enabled": true | |
}, | |
{ | |
"key": "client_id", | |
"value": "CLIENT_ID", | |
"type": "text", | |
"enabled": true | |
}, | |
{ | |
"key": "client_secret", | |
"value": "SECRET", | |
"type": "text", | |
"enabled": true | |
}, | |
{ | |
"key": "resource", | |
"value": "https://outlook.office365.com/", | |
"type": "text", | |
"enabled": true | |
}, | |
{ | |
"key": "refresh_token", | |
"value": "REFRESH_TOKEN", | |
"type": "text", | |
"enabled": true | |
} | |
] | |
}, | |
"description": "" | |
}, | |
"response": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment