Basic Auth woes

I have inherited some code which apparently stopped working at some unspecified point. With the error.

"Must supply a valid HTTP Basic Authorization header"

Having looked at
http://www.campaignmonitor.com/api/getting-started/#authentication

and run both the web and curl example using both the example API key and the API key for our app and both also receive the same error.

Has something changed in the API recently and the docs have not been updated?

tnash, 3 years ago

To quickly update this post, it's now been solved by using the correct API key, regenerating the key solved the problem.

roshodgekiss roshodgekiss, 3 years ago

Thanks tnash - I'm glad this worked out in the end. Sorry for the trouble there! :)


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098