Closed truthdoug closed 6 years ago
Correction – In reading the source code, the authentication isn't tried in the line where the api key is passed. That merely stores the api key in cs.auth_details
. Authentication isn't tried until the call to cs.clients()
... and that fails
That's right. The auth isn't actually used until its time to make a request to the API. Sorry for the confusion there. Glad you worked it out!
In the readme, this example is shown:
I installed with
pip install createsend
and have version 6.0.0. When I run this code (substituting my api key for the placeholder text, I get this:Note that this fails on
cs.clients()
, suggesting that the authentication on the line before worked.What's going on?