How do i get client api-key?

       I have site url, username and password of client.
      // get api key
       $result_client = $cm->userGetApiKey($site_url,$username,$userpassword); 
  The above function returns parse api-key. But i want real client api-key.
Please help me how do i get real client api-key? Send me reply in function only.

Thanks in advance.

roshodgekiss roshodgekiss, 3 years ago

Hi there cyber123, in order to get the Client API key, you'll need to get the Client ID first.

The Client ID is available via this method. You an then use the returned Client ID to return the client's API key.

I hope that makes sense, but please let us know if there's anything we can clarify here. Best of luck!

Get in touch with us on Twitter:
We're also on Facebook:
Phil Phil, 3 years ago

Hi again cyber123,

I would advise that you use the php library written by us, here:

The code includes a lot of samples, all accessible in the github repository, including one for obtaining the apikey:

Hope that helps,

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