RESTClient 3.2.2 "Status 403"

Highlighted
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
Highlighted
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
Developer Portal

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

Visit Page

Register for our "Making Sense of Online Marketing for Retail" Webinar

Join us on Thursday, August 13th at 2pm ET for a free webinar where we'll discuss how to incorporate online marketing into your retail store.

Read More
Featured