All URIs are relative to https://api.callchimp.ai/v1
Method | HTTP request | Description |
---|---|---|
phone_numbers_list | GET /phone_numbers | List Phone Numbers |
PhoneNumberListResponse phone_numbers_list(page=page)
List Phone Numbers
- Api Key Authentication (x-api-key):
import callchimp
from callchimp.models.phone_number_list_response import PhoneNumberListResponse
from callchimp.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.callchimp.ai/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = callchimp.Configuration(
host = "https://api.callchimp.ai/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: x-api-key
configuration.api_key['x-api-key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-api-key'] = 'Bearer'
# Enter a context with an instance of the API client
with callchimp.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = callchimp.PhoneNumbersApi(api_client)
page = 56 # int | Page Number (optional)
try:
# List Phone Numbers
api_response = api_instance.phone_numbers_list(page=page)
print("The response of PhoneNumbersApi->phone_numbers_list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PhoneNumbersApi->phone_numbers_list: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
page | int | Page Number | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - | |
401 | - | |
405 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]