Method: Unit::Resource::AccountResource.list_accounts
- Defined in:
- lib/unit/api_resources/account_resource.rb
.list_accounts(params = nil) ⇒ UnitResponse, UnitError
List accounts by calling Unit’s API
92 93 94 95 |
# File 'lib/unit/api_resources/account_resource.rb', line 92 def list_accounts(params = nil) response = HttpHelper.get("#{api_url}/accounts", params: params.to_hash, headers: headers) response_handler(response) end |