class Bandwidth::EndPoint

Endpoint of domain

Attributes

domain_id[RW]

Public Instance Methods

create_auth_token(expires = 86400) click to toggle source

Create auth token. @example

token = endpoint.create_auth_token()
# File lib/bandwidth/endpoint.rb, line 20
def create_auth_token(expires = 86400)
  @client.make_request(:post, @client.concat_user_path("#{DOMAIN_PATH}/#{domain_id}/endpoints/#{id}/tokens"), {expires: expires})[0]
end
delete() click to toggle source

Remove an endpoint from domain. @example

endpoint.delete()
# File lib/bandwidth/endpoint.rb, line 10
def delete()
  @client.make_request(:delete, @client.concat_user_path("#{DOMAIN_PATH}/#{domain_id}/endpoints/#{id}"))[0]
end
Also aliased as: destroy
delete_auth_token(token) click to toggle source

Delete auth token. @example

endpoint.delete_auth_token('token')
# File lib/bandwidth/endpoint.rb, line 27
def delete_auth_token(token)
  @client.make_request(:delete, @client.concat_user_path("#{DOMAIN_PATH}/#{domain_id}/endpoints/#{id}/tokens/#{token}"))[0]
end
destroy()
Alias for: delete