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
84 85 86 87 |
# File 'lib/unit/api_resources/account_resource.rb', line 84 def get_account(account_id) response = HttpHelper.get("#{api_url}/accounts/#{account_id}", headers: headers) response_handler(response) end |