lib/createsend/template.rb in createsend-0.3.1 vs lib/createsend/template.rb in createsend-0.3.2
- old
+ new
@@ -9,16 +9,15 @@
def initialize(template_id)
@template_id = template_id
end
# Creates a new email template.
- def self.create(client_id, name, html_url, zip_url, screenshot_url)
+ def self.create(client_id, name, html_url, zip_url)
options = { :body => {
:Name => name,
:HtmlPageURL => html_url,
- :ZipFileURL => zip_url,
- :ScreenshotURL => screenshot_url }.to_json }
+ :ZipFileURL => zip_url }.to_json }
response = CreateSend.post "/templates/#{client_id}.json", options
response.parsed_response
end
# Gets the details of this email template.
@@ -26,15 +25,14 @@
response = CreateSend.get "/templates/#{template_id}.json", {}
Hashie::Mash.new(response)
end
# Updates this email template.
- def update(name, html_url, zip_url, screenshot_url)
+ def update(name, html_url, zip_url)
options = { :body => {
:Name => name,
:HtmlPageURL => html_url,
- :ZipFileURL => zip_url,
- :ScreenshotURL => screenshot_url }.to_json }
+ :ZipFileURL => zip_url }.to_json }
response = CreateSend.put "/templates/#{template_id}.json", options
end
# Deletes this email template.
def delete
\ No newline at end of file