All URIs are relative to https://api-cx.cisco.com/px
Method | HTTP request | Description |
---|---|---|
customers | GET /v1/customers | Fetch list of customers paginated for a given partner Id |
CustomerResponse customers()
Fetch list of customers paginated for a given partner Id
- OAuth Authentication (oAuth2):
import time
import pxcloud_api_client
from pxcloud_api_client.api import customers_api
from pxcloud_api_client.model.error_response import ErrorResponse
from pxcloud_api_client.model.customer_response import CustomerResponse
from pprint import pprint
# Defining the host is optional and defaults to https://api-cx.cisco.com/px
# See configuration.py for a list of all supported configuration parameters.
configuration = pxcloud_api_client.Configuration(
host = "https://api-cx.cisco.com/px"
)
# 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 OAuth2 access token for authorization: oAuth2
configuration = pxcloud_api_client.Configuration(
host = "https://api-cx.cisco.com/px"
)
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Enter a context with an instance of the API client
with pxcloud_api_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = customers_api.CustomersApi(api_client)
max = 1 # int | (optional)
offset = 1 # int | (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
# Fetch list of customers paginated for a given partner Id
api_response = api_instance.customers(max=max, offset=offset)
pprint(api_response)
except pxcloud_api_client.ApiException as e:
print("Exception when calling CustomersApi->customers: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
max | int | [optional] | |
offset | int | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully Fetched list of customers for a given partner Id | * Link - <https://api-cx.cisco.com/px/v2/contracts?offset=20&max=10>; rel="next", <https://api-cx.cisco.com/px/v2/contracts?offset=0&max=10>; rel="prev" |
400 | Bad Request | * Date - |
403 | Forbidden | * Date - |
500 | Internal server error | * Date - |
503 | Service Unavailable | * Date - |
504 | Gateway timeout | * Date - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]