I'm presently using this code for a client, and wanted to check to see if any changes are needed to support the new API requirements recently sent out by Constant Contact (Basic Authentication over HTTPS). I'm not entirely sure if I'm understanding the changes, and if the code above uses the REST API that the e-mail referred to. Any help is appreciated.
This code sample does use the REST API. You will need to implement the changes described here.
Okay, so just to make sure, the only change is:
curl_setopt($session, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
curl_setopt($session, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
As well as making the PHP script be called over https, instead of http, correct?
View API documentation, code samples, get your API key.