authentication problem

SOLVED
Go to solution
Participant

authentication problem

when I post the following url into restclient

 

https://api.constantcontact.com/ws/customers/USERNAME/contacts?access_token=MYTOKEN

 

(with USERNAME replaced with my username, and MYTOKEN replaced with the "consumer secret" I got from the "api keys" link on this site), I get the following error:

 

WWW-Authenticate: Bearer error='invalid_token',error_description='Invalid token: [token removed for message post]',specificCause='org.springframework.security.oauth.provider.token.InvalidOAuthTokenException: Invalid token: [token removed for message post]',

 

Any clue as to what's going wrong?

1 ACCEPTED SOLUTION
Employee

Hi SamH882,

 

The consumer secret is different than the access token.  You use the secret and API Key to obtain a token.

For additional information, please read this link: http://community.constantcontact.com/t5/Documentation/Authentication-using-OAuth-2-0-Server-and-Clie...

 

Thanks,

Andrew Weber
Associate Product Manager for EventSpot

View solution in original post

2 REPLIES 2
Employee

Hi SamH882,

 

The consumer secret is different than the access token.  You use the secret and API Key to obtain a token.

For additional information, please read this link: http://community.constantcontact.com/t5/Documentation/Authentication-using-OAuth-2-0-Server-and-Clie...

 

Thanks,

Andrew Weber
Associate Product Manager for EventSpot

View solution in original post

That would explain it.  Thanks alot.

Developer Portal

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

Visit Page