onwords developers
Open a gate
from a script.
Official onwords package. Keys mint on ostapi.
onwords developers
Open a gate
from a script.
Official onwords package. Python, Node, curl, CLI. Keys mint on ostapi.
Board
Sliding gate · open
Action
3-channel relays are REST-only. See API reference.
1import onwords
2
3onwords.configure("YOUR_API_KEY")
4gate = onwords.control("3chsg_xxxxx")
5gate.open()
POST /control-device/
x-api-key: YOUR_API_KEY
Content-Type: application/json
{ "action": "open", "product_id": "3chsg_xxxxx" }200
{
"status": "success",
"product_id": "3chsg_xxxxx",
"action": "open"
}$ pip install onwordsMint a key
ostapi.onwords.in
- 1. Open ostapi, sign in with the same account as the app.
- 2. Get API Key in the menu.
- 3. Tick the boards this key may move.
- 4. Generate, then
onwords.configure.
Packages
- pip install onwords · Python 3.8+
- npm install onwords · Node 14+, CLI included
- REST · POST /control-device/
A key is bound to the boards you ticked. Call a board it does not own and you get 403.