cancel
Showing results for 
Search instead for 
Did you mean: 

RESTClient 3.2.2 "Status 403"

Regular Visitor

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
Moderator

Re: RESTClient 3.2.2 "Status 403"

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