BOCCO API Client
Project description
コミュニケーションロボット 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)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
040eac02d583da0390599ee998b469646ef02eb839b2fd0230e422abdde1e60b
|
|
| MD5 |
3f93da6ea72b58f51e0eb2c24110a494
|
|
| BLAKE2b-256 |
5a6527c6d599ee9f50a2a97f4cd1ac043c8faa617c33a506b2a31ef1dd29d00c
|