WebRTC Client Tools Sample

A command line console application that provides access to the WebRTC client facilities of the Aculab Cloud Web Services API.

Usage

python webrtc_client_tools.py [--wsserver cloudWebServerAddress] <cloudId> <username> <apiAccessKey> <command>

Arguments

cloudWebServerAddress

The address of the cloud web server. By default the wrappers call web services on https://ws-<cloudId>.aculabcloud.net. In certain circumstances you may need to use a different address which you can set here.

cloudId

Cloud region id (e.g. 1-2-0)

username

Cloud account username

apiAccessKey

Cloud API Access key

command

One of the following...

generate_token <clientId> [<timeToLive>]

list_registered_clients

Where...

clientId

The client id of the WebRTC client that will be registered. This is the same as the clientId used when creating the WebRTC client.

timeToLive

The time, in seconds, that the token is valid for. This must be between 600 and 86400 inclusive. The default is 3600 (1 hour).

Examples

  1. To generate a token

    python webrtc_client_tools.py 1-2-0 bob@acompany.com 6b4UmwoOPxjeI2M76aebfQ generate_token MyClient1234
    
  2. Retrieve a list of clients that are currently registered for calls

    python webrtc_client_tools.py 1-2-0 bob@acompany.com 6b4UmwoOPxjeI2M76aebfQ list_registered_clients