All URIs are relative to https://api-cx.cisco.com/px
Method | HTTP request | Description |
---|---|---|
contracts_with_customers | GET /v1/contractsWithCustomers | Get the Outbound Contracts With Customers |
ContractsV2Response contracts_with_customers()
Get the Outbound Contracts With Customers
- OAuth Authentication (oAuth2):
import time
import pxcloud_api_client
from pxcloud_api_client.api import v1_contracts_with_customers_api
from pxcloud_api_client.model.error_response import ErrorResponse
from pxcloud_api_client.model.contracts_v2_response import ContractsV2Response
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 = v1_contracts_with_customers_api.V1ContractsWithCustomersApi(api_client)
max = 1 # int | (optional)
offset = 1 # int | (optional)
customer_id = "customerId_example" # str | customerId (optional)
customer_gu_name = "customerGUName_example" # str | customerGUName (optional)
success_track_id = 1 # int | successTrackId (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
# Get the Outbound Contracts With Customers
api_response = api_instance.contracts_with_customers(max=max, offset=offset, customer_id=customer_id, customer_gu_name=customer_gu_name, success_track_id=success_track_id)
pprint(api_response)
except pxcloud_api_client.ApiException as e:
print("Exception when calling V1ContractsWithCustomersApi->contracts_with_customers: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
max | int | [optional] | |
offset | int | [optional] | |
customer_id | str | customerId | [optional] |
customer_gu_name | str | customerGUName | [optional] |
success_track_id | int | successTrackId | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully Fetched Contract Details | * 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 Input | * Date - |
401 | Unauthorized | * Date - |
403 | Forbidden | * Date - |
404 | Entity Not Found | * Date - |
500 | Error during fetch | * Date - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]