Skip to content

Latest commit

 

History

History
140 lines (102 loc) · 3.95 KB

CustomersApi.md

File metadata and controls

140 lines (102 loc) · 3.95 KB

IO.TelstraTPN.Api.CustomersApi

All URIs are relative to https://penapi.pacnetconnect.com

Method HTTP request Description
AccountByCustomeruuidGet GET /1.0.0/account/{customeruuid} Get account information details
AccountUserByCustomeruuidGet GET /1.0.0/account/{customeruuid}/user List users

AccountByCustomeruuidGet

List AccountByCustomeruuidGet (string customeruuid)

Get account information details

Get the account information for the specified customer

Example

using System;
using System.Diagnostics;
using IO.TelstraTPN.Api;
using IO.TelstraTPN;
using IO.TelstraTPN.Model;

namespace Example
{
    public class AccountByCustomeruuidGetExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: auth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CustomersApi();
            var customeruuid = customeruuid_example;  // string | Unique identifier representing a specific customer

            try
            {
                // Get account information details
                List<AccountResponse> result = apiInstance.AccountByCustomeruuidGet(customeruuid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomersApi.AccountByCustomeruuidGet: " + e.Message );
            }
        }
    }
}

Parameters

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

Return type

List

Authorization

auth

HTTP request headers

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

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

AccountUserByCustomeruuidGet

List AccountUserByCustomeruuidGet (string customeruuid)

List users

List all users associated with the specified customer

Example

using System;
using System.Diagnostics;
using IO.TelstraTPN.Api;
using IO.TelstraTPN;
using IO.TelstraTPN.Model;

namespace Example
{
    public class AccountUserByCustomeruuidGetExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: auth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CustomersApi();
            var customeruuid = customeruuid_example;  // string | Unique identifier representing a specific customer

            try
            {
                // List users
                List<User> result = apiInstance.AccountUserByCustomeruuidGet(customeruuid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomersApi.AccountUserByCustomeruuidGet: " + e.Message );
            }
        }
    }
}

Parameters

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

Return type

List

Authorization

auth

HTTP request headers

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

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