Method: NgrokAPI::Services::ApplicationUsersClient#get!

Defined in:
lib/ngrokapi/services/application_users_client.rb

#get!(id: "") ⇒ NgrokAPI::Models::ApplicationUser

Get an application user by ID. Throws an exception if API error.

https://ngrok.com/docs/api#api-application-users-get

Parameters:

  • id (string) (defaults to: "")

    a resource identifier

Returns:



46
47
48
49
50
51
52
53
54
# File 'lib/ngrokapi/services/application_users_client.rb', line 46

def get!(id: "")
  path = '/app/users/%{id}'
  replacements = {
    id: id,
  }
  data = {}
  result = @client.get(path % replacements, data: data, danger: true)
  NgrokAPI::Models::ApplicationUser.new(client: self, attrs: result)
end