Skip to main content

TwitcastingのAPI2(β)のライブラリ

Project description

PyTwitcasting

PyTwitcastingはTwitcastingのAPIv2(β)を使うためのライブラリ

インストール

pipでインストール

pipenv install pytwitcasting

GitHubからクローンしてインストール

git clone https://github.com/tamago324/PyTwitcasting.git
cd PyTwitcasting
pipenv run python3 setup.py install

使用例

まずは、 https://twitcasting.tv/developernewapp.php でアプリの作成を行う

例)ユーザー名の表示

from pytwitcasting.auth import TwitcastingApplicationBasis
from pytwitcasting.api import API

client_id = 'ClientID'
client_secret = 'ClientSecret'
app_basis = TwitcastingApplicationBasis(client_id=client_id,
                                        client_secret=client_secret)

api = API(application_basis=app_basis)

print(api.get_user_info('twitcasting_jp').name)
# ツイキャス公式

ドキュメント

ドキュメントは http://pytwitcasting.readthedocs.io/ja/latest/

ライセンス

MIT

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

pytwitcasting-1.0.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

pytwitcasting-1.0.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file pytwitcasting-1.0.0.tar.gz.

File metadata

File hashes

Hashes for pytwitcasting-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2e30c9e26a31755f61f01f28e071c2352ae28eb07fad60c16d740707250c5432
MD5 23ba2e33738604e16e0d32d1d0025e73
BLAKE2b-256 ebb9e094315183c684604766ca0dfc40c94e638c5a31f81cee4ab77db9ebf0eb

See more details on using hashes here.

File details

Details for the file pytwitcasting-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytwitcasting-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52695870005311e1117dd86d4451d70d0624085bc827b69f160968e112cfe4ca
MD5 8f709cc70c68ecbfacee667f8f9f3799
BLAKE2b-256 c0842ad7041e5198a8aaafb1c9f3968202d49b404d358afca3e425c7761de42e

See more details on using hashes here.

Supported by

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