LoginSignup
2
3

More than 5 years have passed since last update.

Watson IoT Platform APIを使ってみる

Posted at

初めてWatson IoT Platformを使ってみよう、というかたのためのガイドです。
Watson IoT Platformを使ってみるでIoTアプリを準備しました。

Watson IoT PlatformのAPIは下記で説明されています。
IBM® Watson™ IoT Platform HTTP REST API

新しいデバイスを登録してみます。

  • Device Type dtmf01 の配下に、新しいDevice IDとして dimf03 を追加してみます
  • IoT Platformサービスを用意します。ここでは組織IDはorg123とします
  • APIキーを取得します。ここでは下記とします
    API キー
    a-org123-apikey1234
    認証トークン
    Token0123456789abc

  • cURLで下記を実行しますcurl --user a-org123-apikey1234:Token0123456789abc -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"deviceId":"dimf03"}' {https://org123.internetofthings.ibmcloud.com/api/v0002/device/types/dtmf01/devices}

  • IoT Platformのダッシュボードで新しいDevice IDが登録されているのを確認します

スクリーンショット 2016-10-11 19.05.57.png

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3