Method: Unit::Resource::AccountResource.get_account

Defined in:
lib/unit/api_resources/account_resource.rb

.get_account(account_id) ⇒ UnitResponse, UnitError

Get account by calling Unit’s API

Parameters:

  • account_id (String)

Returns:



84
85
86
87
# File 'lib/unit/api_resources/account_resource.rb', line 84

def ()
  response = HttpHelper.get("#{api_url}/accounts/#{account_id}", headers: headers)
  response_handler(response)
end