Skip to main content

BOCCO API Client

Project description

https://app.wercker.com/status/4c4b21fefec1c211cd3961f72d1b9078/s/master

コミュニケーションロボット BOCCO を操作するための BOCCO API を Python から操作するためのライブラリです。

ドキュメント: https://yukai.github.io/bocco-api-python/

セットアップ

pip の場合:

$ pip install bocco

setup.py の場合:

$ git clone https://github.com/YUKAI/bocco-api-python.git
$ cd bocco-api-python
$ python setup.py install

サンプル

api = bocco.api.Client('ACCESS TOKEN')
# 新しいセッションを開始する場合
#api = bocco.api.Client.signin('API KEY', 'test@example.com', 'pass')
#print(api.access_token)

# 全ての部屋にメッセージを送る
for room in api.get_rooms()
    api.post_text_message(room['uuid'], 'hello')

コマンドラインツール

Usage: boccotools.py [OPTIONS] COMMAND [ARGS]...

  BOCCO API http://api-docs.bocco.me/ を CLI で操作するツール

Options:
  --config PATH
  --access-token TEXT
  --help               Show this message and exit.

Commands:
  messages  指定した部屋のメッセージを表示
  rooms     部屋一覧を表示
  send      テキストメッセージを送信.
  web       Web サーバ上で API クライアントを起

バージョンアップ

/bocco/__init__.py, /bocco/__init__.py のバージョンを更新する。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bocco-0.1.4.tar.gz (9.1 kB view details)

Uploaded Source

File details

Details for the file bocco-0.1.4.tar.gz.

File metadata

  • Download URL: bocco-0.1.4.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bocco-0.1.4.tar.gz
Algorithm Hash digest
SHA256 040eac02d583da0390599ee998b469646ef02eb839b2fd0230e422abdde1e60b
MD5 3f93da6ea72b58f51e0eb2c24110a494
BLAKE2b-256 5a6527c6d599ee9f50a2a97f4cd1ac043c8faa617c33a506b2a31ef1dd29d00c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page