Class: EloquaApiService::Folder

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

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

#campaignsObject



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

#contact_listsObject



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

#emailsObject



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

#segmentsObject



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