All URIs are relative to https://penapi.pacnetconnect.com
Method | HTTP request | Description |
---|---|---|
account_profile_exchange | 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 |
exchange_exprovuuid | GET /1.0.0/exchange/{exprovuuid} | Exchange provider details |
visitcard | GET /1.0.0/visitcard | Get list of Visit Cards |
visitcard_uuid_get | GET /1.0.0/visitcard/{visitcarduuid} | View details of the specified Visit Card |
visitcard_uuid_put | PUT /1.0.0/visitcard/{visitcarduuid} | Update details of the specified Visit Card |
InlineResponse20012 account_profile_exchange()
Get the current account's Exchange profile
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.ExchangeApi(TelstraTPN.ApiClient(configuration))
try:
# Get the current account's Exchange profile
api_response = api_instance.account_profile_exchange()
pprint(api_response)
except ApiException as e:
print("Exception when calling ExchangeApi->account_profile_exchange: %s\n" % e)
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]
list[ExchangeProvider] exchange()
List all Exchange providers, with POPs
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.ExchangeApi(TelstraTPN.ApiClient(configuration))
try:
# List all Exchange providers, with POPs
api_response = api_instance.exchange()
pprint(api_response)
except ApiException as e:
print("Exception when calling ExchangeApi->exchange: %s\n" % e)
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]
ExchangeProvider exchange_exprovuuid(exprovuuid)
Exchange provider details
Get information about the specified Exchange provider
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.ExchangeApi(TelstraTPN.ApiClient(configuration))
exprovuuid = 'exprovuuid_example' # str | Unique identifier representing a specific exchange provider
try:
# Exchange provider details
api_response = api_instance.exchange_exprovuuid(exprovuuid)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExchangeApi->exchange_exprovuuid: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
exprovuuid | str | 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]
list[Visitcard] visitcard()
Get list of Visit Cards
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.ExchangeApi(TelstraTPN.ApiClient(configuration))
try:
# Get list of Visit Cards
api_response = api_instance.visitcard()
pprint(api_response)
except ApiException as e:
print("Exception when calling ExchangeApi->visitcard: %s\n" % e)
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]
Visitcard visitcard_uuid_get(visitcarduuid)
View details of the specified Visit Card
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.ExchangeApi(TelstraTPN.ApiClient(configuration))
visitcarduuid = 'visitcarduuid_example' # str | Unique identifier representing a specific exchange visit card (provider description)
try:
# View details of the specified Visit Card
api_response = api_instance.visitcard_uuid_get(visitcarduuid)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExchangeApi->visitcard_uuid_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
visitcarduuid | str | 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]
Visitcard visitcard_uuid_put(visitcarduuid, unknown_base_type=unknown_base_type)
Update details of the specified Visit Card
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.ExchangeApi(TelstraTPN.ApiClient(configuration))
visitcarduuid = 'visitcarduuid_example' # str | Unique identifier representing a specific exchange visit card (provider description)
unknown_base_type = TelstraTPN.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | (optional)
try:
# Update details of the specified Visit Card
api_response = api_instance.visitcard_uuid_put(visitcarduuid, unknown_base_type=unknown_base_type)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExchangeApi->visitcard_uuid_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
visitcarduuid | str | Unique identifier representing a specific exchange visit card (provider description) | |
unknown_base_type | 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]