Method: Unit::Resource::CustomerResource.list
- Defined in:
- lib/unit/api_resources/customer_resource.rb
.list(params = nil) ⇒ UnitResponse, UnitError
Get customers by calling Unit’s API
34 35 36 37 |
# File 'lib/unit/api_resources/customer_resource.rb', line 34 def list(params = nil) response = HttpHelper.get("#{api_url}/customers", params: params&.to_hash, headers: headers) response_handler(response) end |