Please help.VBA add a contact sample in MS accesss

Highlighted
Occasional Contributor

Please help.VBA add a contact sample in MS accesss

i cant seem to get the call working. anyone have a sample adding and deleting a conctact  in  ms access.

 

 

objHTTP.Open "POST", "https://api.constantcontact.com/v2/contacts/instone", False, APIkey & MyUserName, MyPassword
  

all i get is this

[{
    "error_key":"mashery.not.authorized.inactive",
    "error_message":"The Mashery account associated with this request is not active, or an invalid API key was used."
}]

1 REPLY 1
Highlighted
Honored Contributor

Re: Please help.VBA add a contact sample in MS accesss

Hello,

 

In this case, the issues that you are running into is because you are attempting to use Basic authentication with the Constant Contact V2 API. With our V2 API, we specifically only support using OAuth as a method for authenticating your requests. You can implement this by getting an access token and then adding this header to your HTTP request:

Authorization: Bearer ACCESS_TOKEN

 In order to get an access token, you can follow the directions for a single-user integration here: http://developer.constantcontact.com/docs/developer-guides/authentication.html

 

If you have any follow-up questions, please feel free to reply in this thread!

 

Best Regards,

Elijah G.
API Support Engineer
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