...
Note | ||
---|---|---|
| ||
Download here. Do not hesitate to contribute in order to make this example better - we welcome Pull Requests! |
Request
...
access token for a
...
trusted app
Code Block |
---|
curl "https://raw.githubusercontent.com/4psa/uapi-example-python/master/01_req_token.py" -o 01_req_token.py -L |
Make a
...
call between two public numbers
The example below demonstrates how you can use Unified API to connect two public numbers, not registered with VoipNow. It uses the Create Simple PhoneCalls request.
Code Block |
---|
curl "https://raw.githubusercontent.com/4psa/uapi-example-python/master/02_public_call.py" -o 02_public_call.py -L |
Make a Sandbox
...
call
Unified API can be tested using the Sandbox numbers. The example below uses the Create Simple PhoneCalls request to make the call.
Code Block |
---|
curl "https://raw.githubusercontent.com/4psa/uapi-example-python/master/03_sandbox_call.py" -o 03_sandbox_call.py -L |
Park a
...
phone call
Anchor | ||||
---|---|---|---|---|
|
...
Code Block |
---|
curl "https://raw.githubusercontent.com/4psa/uapi-example-python/master/04_park_call.py" -o 04_park_call.py -L |
Transfer a
...
call to a
...
public number
Anchor | ||||
---|---|---|---|---|
|
...
Code Block |
---|
curl "https://raw.githubusercontent.com/4psa/uapi-example-python/master/05_transfer_call.py" -o 05_transfer_call.py -L |
Record an
...
ongoing conversation
Anchor | ||||
---|---|---|---|---|
|
...
Code Block |
---|
curl "https://raw.githubusercontent.com/4psa/uapi-example-python/master/06_record_call.py" -o 06_record_call.py -L |
Log in an
...
agent to a
...
queue
Anchor | ||||
---|---|---|---|---|
|
...
Code Block |
---|
curl "https://raw.githubusercontent.com/4psa/uapi-example-python/master/07_agent_login.py" -o 07_agent_login.py -L |
List the
...
registration status of an
...
extension
Anchor | ||||
---|---|---|---|---|
|
...
Code Block |
---|
curl "https://raw.githubusercontent.com/4psa/uapi-example-python/master/08_list_registration.py" -o 08_list_registration.py -L |
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.