Module: Eloqua::Email
- Included in:
- RESTClient
- Defined in:
- lib/eloqua_api/rest/email.rb
Instance Method Summary collapse
- #create_deployment(options = {}) ⇒ Object
- #create_email(email) ⇒ Object
- #delete_email(id) ⇒ Object
- #get_email(id, options = {}) ⇒ Object
- #get_email_deployments(options = {}) ⇒ Object
- #get_email_preview(id, options = {}) ⇒ Object
- #get_email_template(id, options = {}) ⇒ Object
- #get_email_templates(options = {}) ⇒ Object
- #get_emails(options = {}) ⇒ Object
- #get_recent_emails(options = {}) ⇒ Object
Instance Method Details
#create_deployment(options = {}) ⇒ Object
19 20 21 |
# File 'lib/eloqua_api/rest/email.rb', line 19 def create_deployment(={}) post("assets/email/deployment", ) end |
#create_email(email) ⇒ Object
3 4 5 |
# File 'lib/eloqua_api/rest/email.rb', line 3 def create_email(email) post("assets/email", email) end |
#delete_email(id) ⇒ Object
7 8 9 |
# File 'lib/eloqua_api/rest/email.rb', line 7 def delete_email(id) delete("assets/email/%s" % id) end |
#get_email(id, options = {}) ⇒ Object
11 12 13 |
# File 'lib/eloqua_api/rest/email.rb', line 11 def get_email(id, ={}) get("assets/email/%s" % id, ) end |
#get_email_deployments(options = {}) ⇒ Object
46 47 48 49 50 51 52 |
# File 'lib/eloqua_api/rest/email.rb', line 46 def get_email_deployments(={}) [:count] ||= 50 [:depth] ||= "complete" [:orderBy] ||= "createdAt+DESC" get("assets/email/deployments", ) end |
#get_email_preview(id, options = {}) ⇒ Object
15 16 17 |
# File 'lib/eloqua_api/rest/email.rb', line 15 def get_email_preview(id, ={}) get("assets/email/%s/preview" % id, ) end |
#get_email_template(id, options = {}) ⇒ Object
38 39 40 |
# File 'lib/eloqua_api/rest/email.rb', line 38 def get_email_template(id, ={}) get("assets/email/template/%s" % id, ) end |
#get_email_templates(options = {}) ⇒ Object
42 43 44 |
# File 'lib/eloqua_api/rest/email.rb', line 42 def get_email_templates(={}) get("assets/templates/email", ) end |
#get_emails(options = {}) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/eloqua_api/rest/email.rb', line 30 def get_emails(={}) [:count] ||= 10 [:depth] ||= "minimal" [:orderBy] ||= "createdAt+DESC" get("assets/emails", ) end |
#get_recent_emails(options = {}) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/eloqua_api/rest/email.rb', line 23 def get_recent_emails(={}) [:count] ||= 10 [:depth] ||= "minimal" get("assets/emails/recent", ) end |