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
= {
sort: 'id',
'fields[contacts]': 'id, email'
}
@data = @cxf_user.get_contact(5, )
75 76 77 |
# File 'lib/user/customer-data/contacts.rb', line 75 def get_contact(id, = nil) @client.raw('get', "/customer-data/contacts/#{id}", ) end |