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

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, 4 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, 4 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:
We're also on Facebook:

200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free