onwords developers

Open a gate
from a script.

Official onwords package. 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 onwords

Mint a key

ostapi.onwords.in

  1. 1. Open ostapi, sign in with the same account as the app.
  2. 2. Get API Key in the menu.
  3. 3. Tick the boards this key may move.
  4. 4. Generate, then onwords.configure.

Packages

A key is bound to the boards you ticked. Call a board it does not own and you get 403.