Skip to content

Latest commit

 

History

History
116 lines (80 loc) · 3.43 KB

CustomersApi.md

File metadata and controls

116 lines (80 loc) · 3.43 KB

tpn\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
accountUser GET /1.0.0/account/{customeruuid}/user List users

account

\tpn\Model\InlineResponse20017 account($customeruuid)

Get account information details

Get the account information for the specified customer

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oAuth2
$config = tpn\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new tpn\Api\CustomersApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$customeruuid = 'customeruuid_example'; // string | Unique identifier representing a specific customer

try {
    $result = $apiInstance->account($customeruuid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomersApi->account: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

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

Return type

\tpn\Model\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]

accountUser

\tpn\Model\User[] accountUser($customeruuid)

List users

List all users associated with the specified customer

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oAuth2
$config = tpn\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new tpn\Api\CustomersApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$customeruuid = 'customeruuid_example'; // string | Unique identifier representing a specific customer

try {
    $result = $apiInstance->accountUser($customeruuid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomersApi->accountUser: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

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

Return type

\tpn\Model\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]