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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b00298d8245da59c41e74563743386224a66ecb4c66b60e70f3313b131ac7a0a |
|
MD5 | 64ba92af891a3cf71d85ffe9969f256a |
|
BLAKE2b-256 | 2c6afca81bcb0e1a39f22fe36497ea85f634ab5b84c1cd05e5272cd8750a6a97 |
Hashes for dolbyio_rest_apis_cli-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67325ecfdad180947cadae0a9a4862f3bffc2b333f6bdbae44a0fcab0205ae05 |
|
MD5 | ec2d5420bb7cdc56999993952aa4d0ad |
|
BLAKE2b-256 | d76acea7408ceab05759f6959f20566bb97d836baa100287ab8d9e37d2419df3 |