Skip to content

Latest commit

 

History

History
114 lines (78 loc) · 3.24 KB

CustomersApi.md

File metadata and controls

114 lines (78 loc) · 3.24 KB

TelstraTPN.CustomersApi

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

account

InlineResponse20017 account(customeruuid)

Get account information details

Get the account information for the specified customer

Example

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)

Parameters

Name Type Description Notes
customeruuid str Unique identifier representing a specific customer

Return type

InlineResponse20017

Authorization

oAuth2

HTTP request headers

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

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

account_user

list[User] account_user(customeruuid)

List users

List all users associated with the specified customer

Example

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)

Parameters

Name Type Description Notes
customeruuid str Unique identifier representing a specific customer

Return type

list[User]

Authorization

oAuth2

HTTP request headers

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

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