Method: Contacts#get_contacts
- Defined in:
- lib/user/customer-data/contacts.rb
#get_contacts(options = nil, use_post = true) ⇒ Object
Get contacts.
Get a collection of contacts.
Parameters
- options
-
(Hash) – List of Resource Collection Options shown above can be used as parameter.
- use_post
-
(Boolean) – Variable to determine if the request is by ‘post’ or ‘get’ functions.
First Example
@data = @cxf_user.get_contacts
Second Example
= {
sort: 'id',
'fields[contacts]': 'id, email'
}
@data = @cxf_user.get_contacts()
Third Example
= {
sort: 'id',
'fields[contacts]': 'id, email'
}
@data = @cxf_user.get_contacts(, true)
54 55 56 |
# File 'lib/user/customer-data/contacts.rb', line 54 def get_contacts( = nil, use_post = true) get_query_results('/customer-data/contacts', , use_post) end |