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

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

Third Example

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


54
55
56
# File 'lib/user/customer-data/contacts.rb', line 54

def get_contacts(options = nil, use_post = true)
  get_query_results('/customer-data/contacts', options, use_post)
end