Method: Contacts#get_contact

Defined in:
lib/user/customer-data/contacts.rb

#get_contact(id, options = nil) ⇒ Object

Get contact.

Get a contact data.

Parameters

id

(Integer) – Contact id.

options

(Hash) – List of Resource Collection Options shown above can be used as parameter.

First Example

@data = @cxf_user.get_contact(5)

Second Example

options = {
  sort: 'id',
  'fields[contacts]': 'id, email'
}
@data = @cxf_user.get_contact(5, options)


75
76
77
# File 'lib/user/customer-data/contacts.rb', line 75

def get_contact(id, options = nil)
  @client.raw('get', "/customer-data/contacts/#{id}", options)
end