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


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

Get started for free