All URIs are relative to https://penapi.pacnetconnect.com
Method | HTTP request | Description |
---|---|---|
accountProfileExchange | GET /1.0.0/account/profile/exchange | Get the current account's Exchange profile |
exchange | GET /1.0.0/exchange | List all Exchange providers, with POPs |
exchangeExprovuuid | GET /1.0.0/exchange/{exprovuuid} | Exchange provider details |
visitcard | GET /1.0.0/visitcard | Get list of Visit Cards |
visitcardUuidGet | GET /1.0.0/visitcard/{visitcarduuid} | View details of the specified Visit Card |
visitcardUuidPut | PUT /1.0.0/visitcard/{visitcarduuid} | Update details of the specified Visit Card |
\tpn\Model\InlineResponse20012 accountProfileExchange()
Get the current account's Exchange profile
<?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\ExchangeApi(
// 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
);
try {
$result = $apiInstance->accountProfileExchange();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ExchangeApi->accountProfileExchange: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\tpn\Model\InlineResponse20012
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\tpn\Model\ExchangeProvider[] exchange()
List all Exchange providers, with POPs
<?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\ExchangeApi(
// 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
);
try {
$result = $apiInstance->exchange();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ExchangeApi->exchange: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\tpn\Model\ExchangeProvider exchangeExprovuuid($exprovuuid)
Exchange provider details
Get information about the specified Exchange provider
<?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\ExchangeApi(
// 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
);
$exprovuuid = 'exprovuuid_example'; // string | Unique identifier representing a specific exchange provider
try {
$result = $apiInstance->exchangeExprovuuid($exprovuuid);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ExchangeApi->exchangeExprovuuid: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
exprovuuid | string | Unique identifier representing a specific exchange provider |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\tpn\Model\Visitcard[] visitcard()
Get list of Visit Cards
<?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\ExchangeApi(
// 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
);
try {
$result = $apiInstance->visitcard();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ExchangeApi->visitcard: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\tpn\Model\Visitcard visitcardUuidGet($visitcarduuid)
View details of the specified Visit Card
<?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\ExchangeApi(
// 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
);
$visitcarduuid = 'visitcarduuid_example'; // string | Unique identifier representing a specific exchange visit card (provider description)
try {
$result = $apiInstance->visitcardUuidGet($visitcarduuid);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ExchangeApi->visitcardUuidGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
visitcarduuid | string | Unique identifier representing a specific exchange visit card (provider description) |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\tpn\Model\Visitcard visitcardUuidPut($visitcarduuid, $unknown_base_type)
Update details of the specified Visit Card
<?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\ExchangeApi(
// 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
);
$visitcarduuid = 'visitcarduuid_example'; // string | Unique identifier representing a specific exchange visit card (provider description)
$unknown_base_type = new \tpn\Model\UNKNOWN_BASE_TYPE(); // \tpn\Model\UNKNOWN_BASE_TYPE |
try {
$result = $apiInstance->visitcardUuidPut($visitcarduuid, $unknown_base_type);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ExchangeApi->visitcardUuidPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
visitcarduuid | string | Unique identifier representing a specific exchange visit card (provider description) | |
unknown_base_type | \tpn\Model\UNKNOWN_BASE_TYPE | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]