Created
October 3, 2020 07:14
-
-
Save jffz/6f085799786948dd6dbb78581fb13f3a to your computer and use it in GitHub Desktop.
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": "be8810c1-7715-461c-bc34-1a6bc6360387", | |
| "name": "Sonoff_mini", | |
| "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
| }, | |
| "item": [ | |
| { | |
| "name": "sonoff_on", | |
| "request": { | |
| "method": "POST", | |
| "header": [ | |
| { | |
| "key": "Content-Type", | |
| "name": "Content-Type", | |
| "value": "application/json", | |
| "type": "text" | |
| } | |
| ], | |
| "body": { | |
| "mode": "raw", | |
| "raw": "{\n \"deviceid\": \"1000a4a235\",\n \"data\": {\n \"switch\": \"on\"\n }\n}" | |
| }, | |
| "url": { | |
| "raw": "http://{{host}}:8081/zeroconf/switch", | |
| "protocol": "http", | |
| "host": [ | |
| "{{host}}" | |
| ], | |
| "port": "8081", | |
| "path": [ | |
| "zeroconf", | |
| "switch" | |
| ] | |
| } | |
| }, | |
| "response": [] | |
| }, | |
| { | |
| "name": "sonoff_off", | |
| "request": { | |
| "method": "POST", | |
| "header": [ | |
| { | |
| "key": "Content-Type", | |
| "name": "Content-Type", | |
| "value": "application/x-www-form-urlencoded", | |
| "type": "text" | |
| } | |
| ], | |
| "body": { | |
| "mode": "raw", | |
| "raw": "{\n \"deviceid\": \"100000140e\",\n \"data\": {\n \"switch\": \"on\"\n }\n}" | |
| }, | |
| "url": { | |
| "raw": "http://192.168.1.146:8081/zeroconf/switch", | |
| "protocol": "http", | |
| "host": [ | |
| "192", | |
| "168", | |
| "1", | |
| "146" | |
| ], | |
| "port": "8081", | |
| "path": [ | |
| "zeroconf", | |
| "switch" | |
| ] | |
| } | |
| }, | |
| "response": [] | |
| }, | |
| { | |
| "name": "Info", | |
| "request": { | |
| "method": "POST", | |
| "header": [ | |
| { | |
| "key": "Content-Type", | |
| "name": "Content-Type", | |
| "value": "application/x-www-form-urlencoded", | |
| "type": "text" | |
| } | |
| ], | |
| "body": { | |
| "mode": "raw", | |
| "raw": "{\r\n\"deviceid\": \"\",\r\n\"data\": { }\r\n}" | |
| }, | |
| "url": { | |
| "raw": "http://192.168.1.197:8081/zeroconf/info", | |
| "protocol": "http", | |
| "host": [ | |
| "192", | |
| "168", | |
| "1", | |
| "197" | |
| ], | |
| "port": "8081", | |
| "path": [ | |
| "zeroconf", | |
| "info" | |
| ] | |
| } | |
| }, | |
| "response": [] | |
| }, | |
| { | |
| "name": "Flash", | |
| "request": { | |
| "method": "POST", | |
| "header": [ | |
| { | |
| "key": "Content-Type", | |
| "name": "Content-Type", | |
| "value": "application/x-www-form-urlencoded", | |
| "type": "text" | |
| } | |
| ], | |
| "body": { | |
| "mode": "raw", | |
| "raw": "{\r\n\"deviceid\": \"\",\r\n\"data\": { }\r\n}" | |
| }, | |
| "url": { | |
| "raw": "http://192.168.1.197:8081/zeroconf/ota_flash", | |
| "protocol": "http", | |
| "host": [ | |
| "192", | |
| "168", | |
| "1", | |
| "197" | |
| ], | |
| "port": "8081", | |
| "path": [ | |
| "zeroconf", | |
| "ota_flash" | |
| ] | |
| } | |
| }, | |
| "response": [] | |
| }, | |
| { | |
| "name": "Unlock OTA", | |
| "request": { | |
| "method": "POST", | |
| "header": [ | |
| { | |
| "key": "Content-Type", | |
| "name": "Content-Type", | |
| "value": "application/x-www-form-urlencoded", | |
| "type": "text" | |
| } | |
| ], | |
| "body": { | |
| "mode": "raw", | |
| "raw": "{\r\n\"deviceid\": \"\",\r\n\"data\": { }\r\n}" | |
| }, | |
| "url": { | |
| "raw": "http://192.168.1.197:8081/zeroconf/ota_unlock", | |
| "protocol": "http", | |
| "host": [ | |
| "192", | |
| "168", | |
| "1", | |
| "197" | |
| ], | |
| "port": "8081", | |
| "path": [ | |
| "zeroconf", | |
| "ota_unlock" | |
| ] | |
| } | |
| }, | |
| "response": [] | |
| } | |
| ], | |
| "event": [ | |
| { | |
| "listen": "prerequest", | |
| "script": { | |
| "id": "7b7ef570-f79c-4ead-85ac-b98811478d48", | |
| "type": "text/javascript", | |
| "exec": [ | |
| "" | |
| ] | |
| } | |
| }, | |
| { | |
| "listen": "test", | |
| "script": { | |
| "id": "3a1dcd89-3e16-4d31-bc2d-ce3f08e86ea1", | |
| "type": "text/javascript", | |
| "exec": [ | |
| "" | |
| ] | |
| } | |
| } | |
| ], | |
| "variable": [ | |
| { | |
| "id": "d22ea121-e880-4506-a9eb-c282321d9842", | |
| "key": "host", | |
| "value": "192.168.1.12", | |
| "type": "string" | |
| } | |
| ], | |
| "protocolProfileBehavior": {} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment