Skip to content

Instantly share code, notes, and snippets.

@toyowata
Last active February 23, 2016 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toyowata/14bb5c56ca4ec259179e to your computer and use it in GitHub Desktop.
Save toyowata/14bb5c56ca4ec259179e to your computer and use it in GitHub Desktop.

mbed Connector REST API examples

  • リソース表示
curl -v -H "Authorization: Bearer <your_access_key>" https://api.connector.mbed.com/endpoints/06774a8c-1de8-45d5-a9ed-006c2454dc8c
  • データ取得
curl -v -H "Authorization: Bearer your_access_key Connection: keep-alive" https://api.connector.mbed.com/notification/pull
curl -v -H "Authorization: Bearer your_access_key" https://api.connector.mbed.com/endpoints/06774a8c-1de8-45d5-a9ed-006c2454dc8c/3200/0/5501
curl -v -H "Authorization: Bearer your_access_key Connection: keep-alive" https://api.connector.mbed.com/notification/pull
  • POST
curl -v -H "Authorization: Bearer your_access_key Connection: keep-alive" https://api.connector.mbed.com/notification/pull
curl -v -X PUT -d "900:200:900:200:900:200:900" -H "Authorization: Bearer your_access_key Content-type: text/plain" https://api.connector.mbed.com/endpoints/06774a8c-1de8-45d5-a9ed-006c2454dc8c/3201/0/5853
curl -v -X POST -H "Authorization: Bearer your_access_key" https://api.connector.mbed.com/endpoints/06774a8c-1de8-45d5-a9ed-006c2454dc8c/3201/0/5850
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment