API Key / Client ID check


How would you go about checking if a correct API key or Client ID was entered? The only thing I can figure out is to check if it consists of 32 characters and has no spaces or special characters but there may be more reliable solutions for this.

Thanks for your suggestions.
Kind regards,
Pete - Joomailer.com

Ken Ken, 7 years ago

I think the easiest way would be to actually run a API call using your API Key and Client ID.

The Client.GetDetail method is a good example. Enter in your details and see if you get a correct response. If so, then you know that the details you are using are correct. If this is a one off check (ie. not in your code, the nyou could just go to here and enter in your details.

I hope this is what you're after


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