We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

RESTClient 3.2.2 "Status 403"

RobertG13865
Participant

RESTClient 3.2.2 "Status 403"

Trying to reproduce "adding a contact" which works fine for me in IODocs tester/debugger in RESTClient. What am I doing wrong?

 

Here's what I have in RESTClient 3.2.2:

URL: https://api.constantcontact.com/v2/contacts/

Method: POST

Header-key: Content-Type

Header-value: application/json

Cookie: n/a

Body: (string body)

{
"status":"ACTIVE",
"first_name":"aaron",
"last_name":"aaronsontest",
"lists":
[{
"id":"25",
"status":"ACTIVE"
}],
"email_addresses":
[{
"id":"1",
"status":"ACTIVE",
"email_address":"testtest@example.com"
}]
}

 

Auth:

   Username: <api-key>%<constantcontact username>

   Password: <constantcontact password>

 

Thats it, thanks!

 

Sean

 

 

 

 

1 REPLY 1
DaveBerard
Moderator

Hey Sean,

 

It looks like you are attempting to use our v2 API with Basic Authentication, which is not allowed.  We only support OAuth 2.0 Authentication for the v2 API.  The 403 error you are receiving should include in the error body that Basic Authentication is not supported.  You can find out more about OAuth 2.0 here: http://developer.constantcontact.com/docs/developer-guides/authentication.html

Dave Berard
Senior Product Manager, Constant Contact
Developer Portal

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

Visit Page