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
# load the gem
require 'TelstraTPN'
# setup authorization
TelstraTPN.configure do |config|
# Configure OAuth2 access token for authorization: oAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = TelstraTPN::ExchangeApi.new
begin
#Get the current account's Exchange profile
result = api_instance.account_profile_exchange
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling ExchangeApi->account_profile_exchange: #{e}"
end
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Array<ExchangeProvider> exchange
List all Exchange providers, with POPs
# load the gem
require 'TelstraTPN'
# setup authorization
TelstraTPN.configure do |config|
# Configure OAuth2 access token for authorization: oAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = TelstraTPN::ExchangeApi.new
begin
#List all Exchange providers, with POPs
result = api_instance.exchange
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling ExchangeApi->exchange: #{e}"
end
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
ExchangeProvider exchange_exprovuuid(exprovuuid)
Exchange provider details
Get information about the specified Exchange provider
# load the gem
require 'TelstraTPN'
# setup authorization
TelstraTPN.configure do |config|
# Configure OAuth2 access token for authorization: oAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = TelstraTPN::ExchangeApi.new
exprovuuid = 'exprovuuid_example' # String | Unique identifier representing a specific exchange provider
begin
#Exchange provider details
result = api_instance.exchange_exprovuuid(exprovuuid)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling ExchangeApi->exchange_exprovuuid: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
exprovuuid | String | Unique identifier representing a specific exchange provider |
- Content-Type: Not defined
- Accept: application/json
Array<Visitcard> visitcard
Get list of Visit Cards
# load the gem
require 'TelstraTPN'
# setup authorization
TelstraTPN.configure do |config|
# Configure OAuth2 access token for authorization: oAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = TelstraTPN::ExchangeApi.new
begin
#Get list of Visit Cards
result = api_instance.visitcard
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling ExchangeApi->visitcard: #{e}"
end
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Visitcard visitcard_uuid_get(visitcarduuid)
View details of the specified Visit Card
# load the gem
require 'TelstraTPN'
# setup authorization
TelstraTPN.configure do |config|
# Configure OAuth2 access token for authorization: oAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = TelstraTPN::ExchangeApi.new
visitcarduuid = 'visitcarduuid_example' # String | Unique identifier representing a specific exchange visit card (provider description)
begin
#View details of the specified Visit Card
result = api_instance.visitcard_uuid_get(visitcarduuid)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling ExchangeApi->visitcard_uuid_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
visitcarduuid | String | Unique identifier representing a specific exchange visit card (provider description) |
- Content-Type: Not defined
- Accept: application/json
Visitcard visitcard_uuid_put(visitcarduuid, opts)
Update details of the specified Visit Card
# load the gem
require 'TelstraTPN'
# setup authorization
TelstraTPN.configure do |config|
# Configure OAuth2 access token for authorization: oAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = TelstraTPN::ExchangeApi.new
visitcarduuid = 'visitcarduuid_example' # String | Unique identifier representing a specific exchange visit card (provider description)
opts = {
unknown_base_type: TelstraTPN::UNKNOWN_BASE_TYPE.new # UNKNOWN_BASE_TYPE |
}
begin
#Update details of the specified Visit Card
result = api_instance.visitcard_uuid_put(visitcarduuid, opts)
p result
rescue TelstraTPN::ApiError => e
puts "Exception when calling ExchangeApi->visitcard_uuid_put: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
visitcarduuid | String | Unique identifier representing a specific exchange visit card (provider description) | |
unknown_base_type | UNKNOWN_BASE_TYPE | [optional] |
- Content-Type: application/json
- Accept: application/json