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 |
\tpn\Model\InlineResponse20017 account($customeruuid)
Get account information details
Get the account information for the specified customer
<?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;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
customeruuid | string | Unique identifier representing a specific customer |
\tpn\Model\InlineResponse20017
- Content-Type: Not defined
- Accept: application/json, application/xml,
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\tpn\Model\User[] accountUser($customeruuid)
List users
List all users associated with the specified customer
<?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;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
customeruuid | string | 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]