Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.32 KB

UsersApi.md

File metadata and controls

59 lines (39 loc) · 1.32 KB

TelstraTPN::UsersApi

All URIs are relative to https://penapi.pacnetconnect.com

Method HTTP request Description
account_user GET /1.0.0/account/{customeruuid}/user List users

account_user

Array<User> account_user(customeruuid)

List users

List all users associated with the specified customer

Example

# 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::UsersApi.new
customeruuid = 'customeruuid_example' # String | Unique identifier representing a specific customer

begin
  #List users
  result = api_instance.account_user(customeruuid)
  p result
rescue TelstraTPN::ApiError => e
  puts "Exception when calling UsersApi->account_user: #{e}"
end

Parameters

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

Return type

Array<User>

Authorization

oAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json