PHP authentication token wrong

Occasional Participant

PHP authentication token wrong

I am using this example:

https://github.com/kramerg/ctct_php_sample/blob/master/ccv2_example.php

 

"KEY HERE" in the below error is my "Secret" value shown when I log into mashery.  Am I missing something?

 

I get this error:

Array
(
    [0] => stdClass Object
        (
            [error_key] => http.status.authentication.invalid_token
            [error_message] => Invalid access token: KEY HERE
        )

)
2 REPLIES 2
Occasional Participant

I should also mention, we are integrating Constant Contact into a software application that gets distributed to many users.  We basically just need to sync the contact lists between the two.

 

We need to support lower than PHP 5.3 which is the reason for not using your PHP 5.3 library.

Occasional Participant

I also tried to do OAuth and got a token from there and tried to use it, but the same error.

Developer Portal

View API documentation, code samples, get your API key.

Visit Page