Module: Yandex::Pdd::Client::Maillists

Included in:
Yandex::Pdd::Client
Defined in:
lib/yandex/pdd/client/maillists.rb

Instance Method Summary collapse

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(options = {})
  post('/api2/admin/email/ml/add', options)
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(options = {})
  post('/api2/admin/email/ml/del', options)
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