from mailchimp3.baseapi import BaseApi


class Conversation(BaseApi):

    def __init__(self, *args, **kwargs):
        super(Conversation, self).__init__(*args, **kwargs)
        self.endpoint = 'conversations'

    def all(self):
        return self._mc_client._get(url=self.endpoint)

    def get(self, conversation_id):
        return self._mc_client._get(url=self._build_path(conversation_id))

from mailchimp3.baseapi import BaseApi


class Conversation(BaseApi):

    def __init__(self, *args, **kwargs):
        super(Conversation, self).__init__(*args, **kwargs)
        self.endpoint = 'conversations'

    def all(self):
        return self._mc_client._get(url=self.endpoint)

    def get(self, conversation_id):
        return self._mc_client._get(url=self._build_path(conversation_id))
