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

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

Support for maillists and subscription was enabled
Support for maillists and subscription was enabled
