lib/client_success/open_api/contacts.rb
# GET /v1/contacts?clientExternalId=xxxx&email=yyyy
#
# Retrieves a contact matching a Client's external id and
# email address. See:
# http://docs.clientsuccessapi.apiary.io/#reference/contacts/contact-by-external-client-id/get-contact-details-by-client-external-id-and-email-address
#
# @param [String] external_client_id
# @param [String] email
# @return [Resources::Contact or NilClass]
#
GET /v1/contacts?clientExternalId=xxxx&email=yyyy
Retrieves a contact matching a Client's external id and
email address.
GET / v1 / contacts?clientExternalId = xxxx&email = yyyy Retrieves a contact matching a Client ' s external id and email address .
def contact_from(external_client_id:, email:)
        resp = get CONTACT_API_PATH,
                   params: { externalClientId: external_client_id,
                             email: email }
        result = process_response(resp)
        Resources::Contact.new(result)
      rescue Errors::NotFound
        nil
      end
def contact_from ( external_client_id : , email : ) resp = get CONTACT_API_PATH , params : { externalClientId : external_client_id , email : email } result = process_response ( resp ) Resources :: Contact . new ( result ) rescue Errors :: NotFound nil end
GET /v1/contacts?clientExternalId=xxxx&email=yyyy
Retrieves a contact matching a Client's external id and
email address.
GET / v1 / contacts?clientExternalId = xxxx&email = yyyy Retrieves a contact matching a Client ' s external id and email address .
None
Resources::Contact or NilClass
external_client_id
email
None