Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated using 4PSA automated script

...

Note
titleThe code is on GitHub

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

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
demo-ph-park
demo-ph-park

...

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
demo-ph-xfer
demo-ph-xfer

...

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
demo-ph-rec
demo-ph-rec

...

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
demo-queue-ag
demo-queue-ag

...

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
demo-ext-pres
demo-ext-pres

...

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.