Skip to content

Instantly share code, notes, and snippets.

@isheraz
Created April 8, 2019 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isheraz/da140bc48f9774a72f5e653f11e0e7ef to your computer and use it in GitHub Desktop.
Save isheraz/da140bc48f9774a72f5e653f11e0e7ef to your computer and use it in GitHub Desktop.
Demo Collection for client_credential
{
"info": {
"_postman_id": "b06ceb57-8182-43db-b17b-2ce0fdd63298",
"name": "e-Learn",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "user-demo",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjI1MDFjMzgxNTM4Yjk2Zjc2ZGU4ZjVhZDI4MWJkZmY1ZDZjYjE3ZmQxNzgwYTU3ZWJhZTU2NGM3NTBjNjIyNjgzNDA2MGE2ZmFhYjI5MDZmIn0.eyJhdWQiOiIxMyIsImp0aSI6IjI1MDFjMzgxNTM4Yjk2Zjc2ZGU4ZjVhZDI4MWJkZmY1ZDZjYjE3ZmQxNzgwYTU3ZWJhZTU2NGM3NTBjNjIyNjgzNDA2MGE2ZmFhYjI5MDZmIiwiaWF0IjoxNTU0NzIxNDI1LCJuYmYiOjE1NTQ3MjE0MjUsImV4cCI6MTU1NDcyNTAyNSwic3ViIjoiIiwic2NvcGVzIjpbXX0.YAD0cVbWkBB5OFryLKWtioxIBIQRLrDVsegLjHC1DWsqVH5cQPSwoxXZ_sK_9WcONV78W3lfyVjiglue0uvmTmRntz2NdDBpwyATL8dDUyVz2s8_Y7gKluHSJZIhXdn3n8ljVF0ID54G3wzVzwcOdyHW1qDiIDjQ4YfihCVfd3zgIAqalgLpenWGcPHnSnS_BDzz1R9MqpUqiIDb4lPKfZ2WsIn2uhUfB_UCZabBxF7lMEnvEZaaYlhgoYfe299P0xhH9AR2s1IVCYdix3B4Kl8fWm83V93OI3r4mk7oUJhRLsXva2S8wVxKGAib8sDxlXY6COuTFZ4PpLAIDn3Ux74QYe8UpUciXxiFiDI7MPhhDL7Xzc07thnn46aQrjHpseAIsoJSkfnuwvAHT9uRocdHSgPLPBaHAvt1nMBOK-U87mAJqaaO-f4s5w0M0ixzpRMG_kZDQDNlUhgcOAer-CXtPbLdZFrzOlCjE8t1vMM33z0Bj64w3byCgoyX0yKYn7ZdYeVkYKBeJHsNi9aM7XaV5wak4kHp5pO2SaO-cpG0z6605X8F1X4Z-51fs7MlNmTmq1qRmsouDe9GXdc41jxTZQ10H51y9troNKIKc0nBVyKSbkeIsf0ULLHwyzht-9WJq0RKHWsZ71Xp4DNJWL0_Zhf4KPROQaKdlQAOYS4",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Accept",
"name": "Content-Type",
"value": "application/json",
"type": "text",
"disabled": true
},
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/x-www-form-urlencoded",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://127.0.0.1:9000/api/user/get?uid=1",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "9000",
"path": [
"api",
"user",
"get"
],
"query": [
{
"key": "uid",
"value": "1"
}
]
}
},
"response": []
},
{
"name": "fetch oauth token",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "grant_type",
"value": "client_credentials",
"type": "text"
},
{
"key": "client_id",
"value": "13",
"type": "text"
},
{
"key": "client_secret",
"value": "eScuK1bSDvTJnrI5LjpPJq4h5RblNZqWaIz5wQiC",
"type": "text"
}
]
},
"url": {
"raw": "http://127.0.0.1:9000/oauth/token",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "9000",
"path": [
"oauth",
"token"
]
}
},
"response": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment