Class: EloquaApiService::ContactList

Inherits:
Service
  • Object
show all
Defined in:
lib/eloqua_api_service/contact_list.rb

Constant Summary collapse

BASE_PATH =
"/API/REST/1.0"

Instance Method Summary collapse

Methods inherited from Service

#initialize, #parse, #parse_body

Constructor Details

This class inherits a constructor from EloquaApiService::Service

Instance Method Details

#allObject



11
12
13
# File 'lib/eloqua_api_service/contact_list.rb', line 11

def all
  parse(self.class.get("#{BASE_PATH}/assets/contact/lists?depth=complete", @options))
end

#find(id:) ⇒ Object



7
8
9
# File 'lib/eloqua_api_service/contact_list.rb', line 7

def find(id:)
  parse(self.class.get("#{BASE_PATH}/assets/contact/list/#{id}?depth=complete", @options))
end