lib/client_success/open_api/clients.rb
# GET /v1/clients?externalId=<external_id>
#
# Gets details for a client based on the client's
# external id. See:
# http://docs.clientsuccessapi.apiary.io/#reference/clients/client/get-client-details-by-external-id
#
# @param [Integer or String] ext_id
# @return [Resources::Client or NilClass]
#
GET /v1/clients?externalId=
Gets details for a client based on the client's
external id.
GET / v1 / clients?externalId = Gets details for a client based on the client ' s external id .
def client_from_external_id(ext_id)
        resp = get CLIENT_API_PATH, params: { 'externalId' => ext_id }
        result = process_response(resp)
        Resources::Client.new(result)
      rescue Errors::NotFound
        nil
      end
def client_from_external_id ( ext_id ) resp = get CLIENT_API_PATH , params : { 'externalId' => ext_id } result = process_response ( resp ) Resources :: Client . new ( result ) rescue Errors :: NotFound nil end
GET /v1/clients?externalId=<external_id>
Gets details for a client based on the client's
external id.
GET / v1 / clients?externalId = <external_id > Gets details for a client based on the client ' s external id .
None
Resources::Client or NilClass
ext_id
None