require 'yandex/pdd/client/connection'

require 'yandex/pdd/client/domains'
require 'yandex/pdd/client/mailboxes'
require 'yandex/pdd/client/maillists'
require 'yandex/pdd/client/subscriptions'

module Yandex
  module Pdd
    class Client
      include HTTParty
      include Yandex::Pdd::Client::Connection
      include Yandex::Pdd::Client::Domains
      include Yandex::Pdd::Client::Mailboxes
      include Yandex::Pdd::Client::Maillists
      include Yandex::Pdd::Client::Subscriptions

      base_uri 'https://pddimp.yandex.ru'
      format :json

      def initialize(token = nil)
        @token = token || ENV['PDD_TOKEN']

        self.class.default_options.merge!(headers: { PddToken: @token })
      end
    end
  end
end

require 'yandex/pdd/client/connection'

require 'yandex/pdd/client/domains'
require 'yandex/pdd/client/mailboxes'

module Yandex
  module Pdd
    class Client
      include HTTParty
      include Yandex::Pdd::Client::Connection
      include Yandex::Pdd::Client::Domains
      include Yandex::Pdd::Client::Mailboxes

      base_uri 'https://pddimp.yandex.ru'
      format :json

      def initialize(token = nil)
        @token = token || ENV['PDD_TOKEN']

        self.class.default_options.merge!(headers: { PddToken: @token })
      end
    end
  end
end

--- 
+++ 
@@ -2,6 +2,8 @@
 
 require 'yandex/pdd/client/domains'
 require 'yandex/pdd/client/mailboxes'
+require 'yandex/pdd/client/maillists'
+require 'yandex/pdd/client/subscriptions'
 
 module Yandex
   module Pdd
@@ -10,6 +12,8 @@
       include Yandex::Pdd::Client::Connection
       include Yandex::Pdd::Client::Domains
       include Yandex::Pdd::Client::Mailboxes
+      include Yandex::Pdd::Client::Maillists
+      include Yandex::Pdd::Client::Subscriptions
 
       base_uri 'https://pddimp.yandex.ru'
       format :json
Support for maillists and subscription was enabled
