lib/createsend/campaign.rb in createsend-1.0.1 vs lib/createsend/campaign.rb in createsend-1.0.2

- old
+ new

@@ -41,9 +41,15 @@ :ConfirmationEmail => confirmation_email, :SendDate => send_date }.to_json } response = post "send", options end + # Unschedules this campaign if it is currently scheduled. + def unschedule + options = { :body => "" } + response = post "unschedule", options + end + # Deletes this campaign. def delete response = CreateSend.delete "/campaigns/#{campaign_id}.json", {} end \ No newline at end of file