Skip to content

Instantly share code, notes, and snippets.

@skylying
Created March 8, 2017 04:03
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 skylying/5cee05486ff7f024c10411e9665fca88 to your computer and use it in GitHub Desktop.
Save skylying/5cee05486ff7f024c10411e9665fca88 to your computer and use it in GitHub Desktop.
Postman Generate SDK Key jobs
{
"id": "e7aee7fa-d839-4bbb-f7b8-8b9dfceb8b24",
"name": "Generate SDK Key (Alpha env)",
"description": "",
"order": [
"cd49b1b9-f9f8-1958-3c37-3e7bf7238a9c",
"15b11461-8a16-c12c-0292-a35849760579"
],
"folders": [],
"timestamp": 1488944952906,
"owner": "645037",
"public": false,
"requests": [
{
"id": "15b11461-8a16-c12c-0292-a35849760579",
"headers": "Content-Type: application/json\nAuthorization: {{Authorization}}\n",
"url": "{{alpha-fqdn}}/v0/sdk/internal/encryption",
"pathVariables": {},
"preRequestScript": null,
"method": "POST",
"collectionId": "e7aee7fa-d839-4bbb-f7b8-8b9dfceb8b24",
"data": [],
"dataMode": "raw",
"name": "Encrypt sdk key Internal only",
"description": "",
"descriptionFormat": "html",
"time": 1488945009122,
"version": 2,
"responses": [],
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"rawModeData": "{\n\t\"auri\": \"https://beta-cms.atom.trendmicro.com:443\",\n\t\"akey\": \"4bd515e6-d535-4cdb-8226-dcb3698ada8d\",\n\t\"kuri\": \"https://www.cryptfox.co:443\",\n\t\"mods\": \"aw,hips,nad,ra,svs\",\n\t\"quri\": \"mqtts://beta.mqtt.trendmicro.com:8883\",\n\t\"password\": \"trendp@ss\"\n}"
},
{
"id": "cd49b1b9-f9f8-1958-3c37-3e7bf7238a9c",
"headers": "Content-Type: application/json\n",
"url": "https://alpha.atom.trendmicro.com/v0/oauth/token",
"preRequestScript": null,
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "var jsonData = JSON.parse(responseBody);
\nif (jsonData.code == 200)\n postman.setGlobalVariable(\"Authorization\", \"Bearer \" + jsonData.access_token);",
"currentHelper": "normal",
"helperAttributes": {},
"time": 1488945299730,
"name": "Login",
"description": "",
"collectionId": "e7aee7fa-d839-4bbb-f7b8-8b9dfceb8b24",
"responses": [],
"rawModeData": "{\"client_id\": \"67QJ3NHL3HY6PO6TK5WMC6JW\",\"client_secret\": \"DZ4SICU5NVDE2GQC5ILK7TFBTSNLXAHBEQWUTVEK\",\"username\": \"atom@trend.com.tw\",\"password\":\"atompass\",\"grant_type\": \"password\"}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment