Skip to content

Instantly share code, notes, and snippets.

@arevindh
Last active February 4, 2024 00:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save arevindh/253302628ad10eed8126a820c2ecdaec to your computer and use it in GitHub Desktop.
Save arevindh/253302628ad10eed8126a820c2ecdaec to your computer and use it in GitHub Desktop.
Tinxy_Open_APIs https://tinxyapi.pages.dev/
{
"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": []
}
]
}
@uiyash
Copy link

uiyash commented Apr 15, 2022

How to toggle on/off device with 2 relays

@arevindh
Copy link
Author

@uiyash just change the device number to 2

@akashks1998
Copy link

is there any api endpoint to trigger scenes?

@arevindh
Copy link
Author

@akashks1998 not sure try asking on their forum https://forum.tinxy.in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment