Forked from arevindh/Tinxy_Open_APIs.postman_collection.json
Created
December 21, 2021 19:36
-
-
Save ashishwadekar/b28f998d9d37ad20a2deb9b5e76edabc to your computer and use it in GitHub Desktop.
Tinxy_Open_APIs
This file contains hidden or 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": "32c262fa-7384-4477-a610-cde252c8829e", | |
"name": "Tinxy Open APIs", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Device State", | |
"request": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
}, | |
{ | |
"key": "Authorization", | |
"value": "Bearer 60fe161c60687be22a0a1b5806724bfb5e7a1c18" | |
}, | |
{ | |
"key": "", | |
"value": "", | |
"disabled": true | |
} | |
], | |
"url": { | |
"raw": "https://backend.tinxy.in/v2/devices/6131bbacb1aba6001317ec1b/state?deviceNumber=1", | |
"protocol": "https", | |
"host": [ | |
"backend", | |
"tinxy", | |
"in" | |
], | |
"path": [ | |
"v2", | |
"devices", | |
"6131bbacb1aba6001317ec1b", | |
"state" | |
], | |
"query": [ | |
{ | |
"key": "deviceNumber", | |
"value": "1" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Devices with userID", | |
"request": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Bearer 8428a2f9645f86dbdf4902aaadf73767d88272a6", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "https://backend.tinxy.in/v2/devices/", | |
"protocol": "https", | |
"host": [ | |
"backend", | |
"tinxy", | |
"in" | |
], | |
"path": [ | |
"v2", | |
"devices", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Device Toggle", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
}, | |
{ | |
"key": "Authorization", | |
"value": "Bearer 8428a2f9645f86dbdf4902aaadf73767d88272a6" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n\t\"request\": {\n\t\t\"state\": 1,\n \"brightness\": 0\n\t},\n \"deviceNumber\": 1\n}" | |
}, | |
"url": { | |
"raw": "https://backend.tinxy.in/v2/devices/6107cad3ec41f400139e315d/toggle", | |
"protocol": "https", | |
"host": [ | |
"backend", | |
"tinxy", | |
"in" | |
], | |
"path": [ | |
"v2", | |
"devices", | |
"6107cad3ec41f400139e315d", | |
"toggle" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment