Class: EloquaApiService::Folder
- Inherits:
-
Service
- Object
- Service
- EloquaApiService::Folder
show all
- Defined in:
- lib/eloqua_api_service/folder.rb
Instance Method Summary
collapse
Methods inherited from Service
#initialize, #parse, #parse_body
Instance Method Details
#campaigns ⇒ Object
17
18
19
20
|
# File 'lib/eloqua_api_service/folder.rb', line 17
def campaigns
response = self.class.get("/API/REST/1.0/assets/campaign/folders", @options)
parsed_response = JSON.parse(response.body, symbolize_names: true) rescue nil
end
|
22
23
24
25
|
# File 'lib/eloqua_api_service/folder.rb', line 22
def contact_lists
response = self.class.get("/API/REST/1.0/assets/contact/list/folders", @options)
parsed_response = JSON.parse(response.body, symbolize_names: true) rescue nil
end
|
#emails ⇒ Object
12
13
14
15
|
# File 'lib/eloqua_api_service/folder.rb', line 12
def emails
response = self.class.get("/API/REST/1.0/assets/email/folders", @options)
parsed_response = JSON.parse(response.body, symbolize_names: true) rescue nil
end
|
#segments ⇒ Object
6
7
8
9
|
# File 'lib/eloqua_api_service/folder.rb', line 6
def segments
response = self.class.get("/API/REST/1.0/assets/contact/segment/folders", @options)
parsed_response = JSON.parse(response.body, symbolize_names: true) rescue nil
end
|