Class: Yonoma::Contacts
- Inherits:
-
Object
- Object
- Yonoma::Contacts
- Defined in:
- lib/yonoma/contacts.rb
Class Method Summary collapse
- .addTag(contact_id, params) ⇒ Object
- .create(list_id, params) ⇒ Object
- .removeTag(contact_id, params) ⇒ Object
- .unsubscribe(list_id, contact_id, params) ⇒ Object
Class Method Details
.addTag(contact_id, params) ⇒ Object
11 12 13 |
# File 'lib/yonoma/contacts.rb', line 11 def self.addTag(contact_id,params) Client.request(:post, "/contacts/tags/#{contact_id}/add", params) end |
.create(list_id, params) ⇒ Object
3 4 5 |
# File 'lib/yonoma/contacts.rb', line 3 def self.create(list_id,params) Client.request(:post, "/contacts/#{list_id}/create", params) end |
.removeTag(contact_id, params) ⇒ Object
15 16 17 |
# File 'lib/yonoma/contacts.rb', line 15 def self.removeTag(contact_id,params) Client.request(:post, "/contacts/tags/#{contact_id}/remove",params) end |
.unsubscribe(list_id, contact_id, params) ⇒ Object
7 8 9 |
# File 'lib/yonoma/contacts.rb', line 7 def self.unsubscribe(list_id,contact_id,params) Client.request(:post, "/contacts/#{list_id}/status/#{contact_id}", params) end |