lib/createsend/client.rb in createsend-2.2.0 vs lib/createsend/client.rb in createsend-2.3.0
- old
+ new
@@ -91,9 +91,16 @@
:orderdirection => order_direction } }
response = get 'suppressionlist', options
Hashie::Mash.new(response)
end
+ # Unsuppresses an email address by removing it from the the client's
+ # suppression list
+ def unsuppress(email)
+ options = { :query => { :email => email }, :body => '' }
+ response = put "unsuppress", options
+ end
+
# Gets the templates belonging to this client.
def templates
response = get 'templates'
response.map{|item| Hashie::Mash.new(item)}
end
\ No newline at end of file