How to use the createsend.client.Client 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_client.py View on Github external
def setUp(self):
        self.cl = Client(
            {"access_token": "ASP95S4aR+9KsgfHB0dapTYxNA==", "refresh_token": "5S4aASP9R+9KsgfHB0dapTYxNA=="}, "4a397ccaaa55eb4e6aa1221e1e2d7122")
github campaignmonitor / createsend-python / test / test_client.py View on Github external
def test_create(self):
        c = Client()
        c.stub_request("clients.json", "create_client.json")
        client_id = c.create(
            "Client Company Name", "(GMT+10:00) Canberra, Melbourne, Sydney", "Australia")
        self.assertEquals("32a381c49a2df99f1d0c6f3c112352b9", client_id)
        self.assertEquals("32a381c49a2df99f1d0c6f3c112352b9", c.client_id)