def post(self, event_id, email):
            url = furl(self.api_url)
            url.path = self.path

            return requests.request('POST',
                                    url.url,
                                    data=generate_request_xml(
                                        self.api_key, '', {
                                            'Custom_Event_Id': event_id,
                                            'Subscriber_Email': email
                                        }))
        def post(self, event_id, email):
            url = furl(self.api_url)
            url.path = self.path

            return requests.request(
                'POST',
                url.url,
                data=generate_request_xml(self.api_key, '', {
                    'Custom_Event_Id': event_id,
                    'Subscriber_Email': email
                })
            )
        def post(self, email_id, email, snippets):
            url = furl(self.api_url)
            url.path = self.path

            return requests.request('POST',
                                    url.url + str(email_id),
                                    data=generate_request_xml(
                                        self.api_key, '', {
                                            'Receiver': {
                                                'Email': email
                                            },
                                            'Snippets': [{
                                                'Name': k,
                                                'Value': v
                                            } for (k, v) in snippets.items()]
                                        }))
 def get_subscriber_xml(self, subscriber_data):
     return generate_request_xml(self.api_key, 'Subscriber',
                                 subscriber_data)
 def get_subscriber_xml(self, subscriber_data):
     return generate_request_xml(self.api_key, 'Subscriber', subscriber_data)