Created
June 22, 2023 22:12
-
-
Save edvitor13/506bb78344861103b78a42542fa30cf0 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
{ | |
"info": { | |
"_postman_id": "0aac0906-e046-49a6-898f-da65b3de4649", | |
"name": "Zoho - Workdrive API", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | |
"_exporter_id": "22600070" | |
}, | |
"item": [ | |
{ | |
"name": "Gerando Código de Autenticação", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "https://accounts.zoho.com/oauth/v2/auth?scope=WorkDrive.files.ALL,ZohoFiles.files.ALL&client_id={{CLIENT_ID}}&response_type=code&access_type=offline&redirect_uri={{REDIRECT}}&state=register&prompt=consent", | |
"protocol": "https", | |
"host": [ | |
"accounts", | |
"zoho", | |
"com" | |
], | |
"path": [ | |
"oauth", | |
"v2", | |
"auth" | |
], | |
"query": [ | |
{ | |
"key": "scope", | |
"value": "WorkDrive.files.ALL,ZohoFiles.files.ALL" | |
}, | |
{ | |
"key": "client_id", | |
"value": "{{CLIENT_ID}}" | |
}, | |
{ | |
"key": "response_type", | |
"value": "code" | |
}, | |
{ | |
"key": "access_type", | |
"value": "offline" | |
}, | |
{ | |
"key": "redirect_uri", | |
"value": "{{REDIRECT}}" | |
}, | |
{ | |
"key": "state", | |
"value": "register" | |
}, | |
{ | |
"key": "prompt", | |
"value": "consent" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Gerando Token de Acesso", | |
"request": { | |
"auth": { | |
"type": "noauth" | |
}, | |
"method": "POST", | |
"header": [], | |
"url": { | |
"raw": "https://accounts.zoho.com/oauth/v2/token?code={{CODE}}&client_secret={{CLIENT_SECRET}}&redirect_uri={{REDIRECT}}&grant_type=authorization_code&client_id={{CLIENT_ID}}", | |
"protocol": "https", | |
"host": [ | |
"accounts", | |
"zoho", | |
"com" | |
], | |
"path": [ | |
"oauth", | |
"v2", | |
"token" | |
], | |
"query": [ | |
{ | |
"key": "code", | |
"value": "{{CODE}}" | |
}, | |
{ | |
"key": "client_secret", | |
"value": "{{CLIENT_SECRET}}" | |
}, | |
{ | |
"key": "redirect_uri", | |
"value": "{{REDIRECT}}" | |
}, | |
{ | |
"key": "grant_type", | |
"value": "authorization_code" | |
}, | |
{ | |
"key": "client_id", | |
"value": "{{CLIENT_ID}}" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Atualizando Token via Refresh Token", | |
"request": { | |
"method": "POST", | |
"header": [], | |
"url": { | |
"raw": "https://accounts.zoho.com/oauth/v2/token?refresh_token={{REFRESH_TOKEN}}&client_secret={{CLIENT_SECRET}}&grant_type=refresh_token&client_id={{CLIENT_ID}}", | |
"protocol": "https", | |
"host": [ | |
"accounts", | |
"zoho", | |
"com" | |
], | |
"path": [ | |
"oauth", | |
"v2", | |
"token" | |
], | |
"query": [ | |
{ | |
"key": "refresh_token", | |
"value": "{{REFRESH_TOKEN}}" | |
}, | |
{ | |
"key": "client_secret", | |
"value": "{{CLIENT_SECRET}}" | |
}, | |
{ | |
"key": "grant_type", | |
"value": "refresh_token" | |
}, | |
{ | |
"key": "client_id", | |
"value": "{{CLIENT_ID}}" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Revogador do Refresh Token", | |
"request": { | |
"method": "POST", | |
"header": [], | |
"url": { | |
"raw": "https://accounts.zoho.com/oauth/v2/token?token={{REFRESH_TOKEN}}", | |
"protocol": "https", | |
"host": [ | |
"accounts", | |
"zoho", | |
"com" | |
], | |
"path": [ | |
"oauth", | |
"v2", | |
"token" | |
], | |
"query": [ | |
{ | |
"key": "token", | |
"value": "{{REFRESH_TOKEN}}", | |
"description": "{refresh_token}" | |
} | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment