A command line wrapper for the Dolby.io REST APIs.
Project description
Dolby.io REST APIs CLI
Command Line Interface utility for the dolby.io REST Communications APIs.
Install this project
Check the dolbyio-rest-apis-cli package on PyPI. To install the latest stable python package run the following command:
python3 -m pip install dolbyio-rest-apis-cli
Upgrade your package to the latest version:
python3 -m pip install --upgrade dolbyio-rest-apis-cli
Communications Commands
Display the help and version of the command line:
communications --help
communications --version
Authentication
Get your consumer key and secret from the dolby.io dashboard and run the following command to get the access token as a json payload:
communications auth -k "CONSUMER_KEY" -s "CONSUMER_SECRET" --output json
Add the flag --api
to get an access token that you can use to query the REST APIs.
Change the output to --output text
to get a text format for the output.
Use --output access_token
to retrieve only the access token so you can easily assign it to a variable:
ACCESS_TOKEN=$(communications auth -k "CONSUMER_KEY" -s "CONSUMER_SECRET" --api --output access_token 2> /dev/null)
Remix
Using the access token you've retrieved using the auth
command, you can start a remix for a specific conference:
communications remix \
--access_token "ACCESS_TOKEN" \
--cid "00000000-0000-0000-0000-000000000000" \
--start \
--output json
Or simply check the status of a remix:
communications remix \
--access_token "ACCESS_TOKEN" \
--cid "00000000-0000-0000-0000-000000000000" \
--output json
Streaming
Start the streaming to an RTMP endpoint for a specific conference:
communications streaming \
--access_token "ACCESS_TOKEN" \
--cid "00000000-0000-0000-0000-000000000000" \
--action start \
--target rtmp \
--output json \
--urls "rtmp://a.rtmp.youtube.com/live2/{streaming_key}"
Stop the RTMP streaming for a specific conference:
communications streaming \
--access_token "ACCESS_TOKEN" \
--cid "00000000-0000-0000-0000-000000000000" \
--action stop \
--target rtmp \
--output json
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
Built Distribution
Hashes for dolbyio-rest-apis-cli-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6973201ce567d0b0f59010486cc74184af73812f6949d7ccfbd92c4b432afd25 |
|
MD5 | 6dd5512a1a847def94893aa3eec7e5e0 |
|
BLAKE2b-256 | 9ecd7c0652852894c808fd4c61987253b24b8a82bb679f1ce326c26872499e6f |
Hashes for dolbyio_rest_apis_cli-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3479ed34f37137936adc8bcec6094953c5399db69d14d2c1e9ce08bb079193a4 |
|
MD5 | e90bf688eee52b23cadb87ec5871f6be |
|
BLAKE2b-256 | 7f931f1312846affa2391e06c77931d08923d9ea042f7688aa85f53542eb7bb6 |