Skip to content

Latest commit

 

History

History
90 lines (59 loc) · 2.58 KB

PhoneNumbersApi.md

File metadata and controls

90 lines (59 loc) · 2.58 KB

callchimp.PhoneNumbersApi

All URIs are relative to https://api.callchimp.ai/v1

Method HTTP request Description
phone_numbers_list GET /phone_numbers List Phone Numbers

phone_numbers_list

PhoneNumberListResponse phone_numbers_list(page=page)

List Phone Numbers

Example

  • 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)

Parameters

Name Type Description Notes
page int Page Number [optional]

Return type

PhoneNumberListResponse

Authorization

x-api-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 -
401 -
405 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]