Documentation Index
Fetch the complete documentation index at: https://developer.wooxpro.com/llms.txt
Use this file to discover all available pages before exploring further.
【Private】Login
Login Subscription Format
Request Format
String
API_KEY: The user’s API keytimestamp: Timestamp, the unit is milliseconds, it will expire after 60 secondssign: Signature, sign=CryptoJS.HmacSHA256(timestamp + ”#” + your_api_memo + ”#” + “wooxpro.WebSocket”, your_api_secret_key)dev: Device, web eg.
Example
Login Example
Response
- timestamp=1589267764859
- API_KEY = “80618e45710812162b04892c7ee5ead4a3cc3e56”
- API_SECRET = “6c6c98544461bbe71db2bca4c6d7fd0021e0ba9efc215f9c6ad41852df9d9df9”
- API_MEMO = “test001”;
sign:
sign = CryptoJS.HmacSHA256(1589267764859 + "#" + test001 + "#" + "wooxpro.WebSocket", '6c6c98544461bbe71db2bca4c6d7fd0021e0ba9efc215f9c6ad41852df9d9df9')
= 3ceeb7e1b8cb165a975e28a2e2dfaca4d30b358873c0351c1a071d8c83314556
Ues Shell create param sign:
sign = echo -n '1589267764859#test001#wooxpro.WebSocket' | openssl dgst -sha256 -hmac "6c6c98544461bbe71db2bca4c6d7fd0021e0ba9efc215f9c6ad41852df9d9df9"
(stdin)= 3ceeb7e1b8cb165a975e28a2e2dfaca4d30b358873c0351c1a071d8c83314556
The final login parameters are:
{"action": "access", "args": ["80618e45710812162b04892c7ee5ead4a3cc3e56", "1589267764859", "3ceeb7e1b8cb165a975e28a2e2dfaca4d30b358873c0351c1a071d8c83314556","web"]}