REST API

REST API accept same json as Websocket API.

Endpoint

POST https://obniz.io/obniz/{obniz_id}/api/1

Before access token was issued, You can use API without it.
Below is available QueryStrings

プロパティ(query)デフォルト値説明
access_tokenaccess token issued on device management

Request body is application/json.

Below is Curl example

curl https://obniz.io/obniz/1234-5678/api/1 -H "Content-Type: application/json" -X POST -d '[{"display":{"clear":true, "text":"Works fine."}}]'