SDK for bokecc.
Project description
bokecc_sdk
===
SDK for bokecc.
live.py
---
cc 云直播类接口
https://doc.bokecc.com/live/dev/liveapi/
classroom.py
---
cc 云课堂类接口
https://doc.bokecc.com/class/developer/classapi/
todo
---
TODO: live 聊天、抽奖、签到等非视频信息
TODO: 完成点播类接口
TODO: 完成云课堂聊天等接口
usage
---
pip install bokecc_sdk
live_api = LiveAPI(APIKEY)
userid = USERID
name = 'sdk测试创建直播间name密码'
desc = 'sdk测试创建直播间desc'
templatetype = constants.LiveTemplateType.video_doc_chat_qa.value
authtype = constants.LiveAuthType.password.value
publisherpass = 'tcctest'
assistantpass = 'acctest'
response = live_api.room_create(
userid, name, desc, templatetype, authtype, publisherpass, assistantpass
)
examples 目录创建 __secret.py, 填入cc的apikey
其他具体接口见 examples/live.py
回调类demo见 https://github.com/duoduo369/original/blob/master/original/misc/views.py 中的
CCAuthAPI、CallBackCCLiveStartAPI、CallBackCCLiveEndAPI、CallBackCCRecordAPI、CallBackCCOfflineWatchAPI
===
SDK for bokecc.
live.py
---
cc 云直播类接口
https://doc.bokecc.com/live/dev/liveapi/
classroom.py
---
cc 云课堂类接口
https://doc.bokecc.com/class/developer/classapi/
todo
---
TODO: live 聊天、抽奖、签到等非视频信息
TODO: 完成点播类接口
TODO: 完成云课堂聊天等接口
usage
---
pip install bokecc_sdk
live_api = LiveAPI(APIKEY)
userid = USERID
name = 'sdk测试创建直播间name密码'
desc = 'sdk测试创建直播间desc'
templatetype = constants.LiveTemplateType.video_doc_chat_qa.value
authtype = constants.LiveAuthType.password.value
publisherpass = 'tcctest'
assistantpass = 'acctest'
response = live_api.room_create(
userid, name, desc, templatetype, authtype, publisherpass, assistantpass
)
examples 目录创建 __secret.py, 填入cc的apikey
其他具体接口见 examples/live.py
回调类demo见 https://github.com/duoduo369/original/blob/master/original/misc/views.py 中的
CCAuthAPI、CallBackCCLiveStartAPI、CallBackCCLiveEndAPI、CallBackCCRecordAPI、CallBackCCOfflineWatchAPI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bokecc_sdk-0.3.2.tar.gz
(10.2 kB
view details)
Built Distribution
File details
Details for the file bokecc_sdk-0.3.2.tar.gz
.
File metadata
- Download URL: bokecc_sdk-0.3.2.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.9.1 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a1d2069bc1a81cc63f1c3f421dcdb45aa471ebe0bd6571a2044e300390cb40c7
|
|
MD5 |
a7491309732ec85a2124aa601bac6ee6
|
|
BLAKE2b-256 |
72cb862149c2adcab56df45066cd57b1ecbe09fe4fc42154d4281783add91a87
|
File details
Details for the file bokecc_sdk-0.3.2-py2-none-any.whl
.
File metadata
- Download URL: bokecc_sdk-0.3.2-py2-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.9.1 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
01ba2d79805d852abb3e6decc41d8a2d54e326f066396fc9636053eb2c4f1104
|
|
MD5 |
9c869bcdaf46a75f02bb1f8da0dd2555
|
|
BLAKE2b-256 |
c3637231a63b6c69c6d8b681ecfefa3bb9d8bae7519cd0812e5acb72cbd317bc
|