All URIs are relative to https://penapi.pacnetconnect.com
Method | HTTP request | Description |
---|---|---|
account | GET /1.0.0/account/{customeruuid} | Get account information details |
account_user | GET /1.0.0/account/{customeruuid}/user | List users |
InlineResponse20017 account(customeruuid)
Get account information details
Get the account information for the specified customer
from __future__ import print_function
import time
import TelstraTPN
from TelstraTPN.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oAuth2
configuration = TelstraTPN.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = TelstraTPN.CustomersApi(TelstraTPN.ApiClient(configuration))
customeruuid = 'customeruuid_example' # str | Unique identifier representing a specific customer
try:
# Get account information details
api_response = api_instance.account(customeruuid)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->account: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customeruuid | str | Unique identifier representing a specific customer |
- Content-Type: Not defined
- Accept: application/json, application/xml,
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[User] account_user(customeruuid)
List users
List all users associated with the specified customer
from __future__ import print_function
import time
import TelstraTPN
from TelstraTPN.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oAuth2
configuration = TelstraTPN.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = TelstraTPN.CustomersApi(TelstraTPN.ApiClient(configuration))
customeruuid = 'customeruuid_example' # str | Unique identifier representing a specific customer
try:
# List users
api_response = api_instance.account_user(customeruuid)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->account_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customeruuid | str | Unique identifier representing a specific customer |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]