import plivoclient = plivo.RestClient(auth_id="<auth_id>", auth_token="<auth_token>")# List all Tollfree in a Powerpackpowerpack = client.powerpacks.get(uuid='<powerpack_uuid>')# Version 1response = powerpack.list_tollfree()# Version 2response = powerpack.numberpool.tollfree.list()print(response)
import plivoclient = plivo.RestClient(auth_id="<auth_id>", auth_token="<auth_token>")# List all Tollfree in a Powerpackpowerpack = client.powerpacks.get(uuid='<powerpack_uuid>')# Version 1response = powerpack.list_tollfree()# Version 2response = powerpack.numberpool.tollfree.list()print(response)
This API returns the list of toll-free numbers from the number pool.The API response contains a meta field with the following fields:
limit: The size of the page returned in the response.
next: The URL that points to the next page of results. (Currently this will be blank because only one toll-free can be present in a number pool.)
offset: The offset for the page returned in the response.
previous: The URL that points to the previous page of results. (Currently this will be blank because only one toll-free can be present in a number pool.)
total_count: The total number of records that match the specified filters. (Currently this is always 1.)
Copy
Ask AI
import plivoclient = plivo.RestClient(auth_id="<auth_id>", auth_token="<auth_token>")# List all Tollfree in a Powerpackpowerpack = client.powerpacks.get(uuid='<powerpack_uuid>')# Version 1response = powerpack.list_tollfree()# Version 2response = powerpack.numberpool.tollfree.list()print(response)