Module: Yandex::Pdd::Client::Maillists
- Included in:
- Yandex::Pdd::Client
- Defined in:
- lib/yandex/pdd/client/maillists.rb
Instance Method Summary collapse
-
#maillist_add(options = {}) ⇒ Object
domain=<Domain name> maillist=<Email or maillist login>.
-
#maillist_delete(options = {}) ⇒ Object
domain=<Domain name> maillist=<Email or maillist login>|maillist_uid=<Maillist ID>.
-
#maillist_list(domain) ⇒ Object
domain=<Domain name>.
Instance Method Details
#maillist_add(options = {}) ⇒ Object
domain=<Domain name> maillist=<Email or maillist login>
7 8 9 |
# File 'lib/yandex/pdd/client/maillists.rb', line 7 def maillist_add( = {}) post('/api2/admin/email/ml/add', ) end |
#maillist_delete(options = {}) ⇒ Object
domain=<Domain name> maillist=<Email or maillist login>|maillist_uid=<Maillist ID>
21 22 23 |
# File 'lib/yandex/pdd/client/maillists.rb', line 21 def maillist_delete( = {}) post('/api2/admin/email/ml/del', ) end |
#maillist_list(domain) ⇒ Object
domain=<Domain name>
12 13 14 15 16 17 |
# File 'lib/yandex/pdd/client/maillists.rb', line 12 def maillist_list(domain) query = { domain: domain } get('/api2/admin/email/ml/list', query) end |