How to use the createsend.list.List function in createsend

To help you get started, we’ve selected a few createsend examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github campaignmonitor / createsend-python / test / test_list.py View on Github external
def test_create_without_unsubscribe_setting(self):
        l = List()
        l.stub_request("lists/%s.json" % self.client_id, "create_list.json")
        list_id = l.create(self.client_id, "List One", "", False, "")
        self.assertEquals(list_id, "e3c5f034d68744f7881fdccf13c2daee1234")
        self.assertEquals(l.list_id, "e3c5f034d68744f7881fdccf13c2daee1234")
github campaignmonitor / createsend-python / test / test_list.py View on Github external
def setUp(self):
        self.client_id = "87y8d7qyw8d7yq8w7ydwqwd"
        self.list_id = "e3c5f034d68744f7881fdccf13c2daee"
        self.list = List({'api_key': '123123123123123123123'}, self.list_id)
github campaignmonitor / createsend-python / test / test_list.py View on Github external
def test_create_with_unsubscribe_setting(self):
        l = List()
        l.stub_request("lists/%s.json" % self.client_id, "create_list.json")
        list_id = l.create(self.client_id, "List One",
                           "", False, "", "OnlyThisList")
        self.assertEquals(list_id, "e3c5f034d68744f7881fdccf13c2daee1234")
        self.assertEquals(l.list_id, "e3c5f034d68744f7881fdccf13c2daee1234")