The Mashery account associated with this request is not active, or an invalid API key was used

Highlighted
Member

The Mashery account associated with this request is not active, or an invalid API key was used

Hi,

I want to submit email from my site to my constant contact account.

I am using OAuth 2.0 to implement it. https://github.com/constantcontact/php-sdk

I have created API Key & Token from   http://community.constantcontact.com/t5/Documentation/API-Keys/ba-p/25015

using same credentials of my account of https://ui.constantcontact.com.

 

When I am submitting email from my site it gives me bellow error.

[0] => Array

   (

         [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.

   )

I am not sure about .
1) do I need to create different account at https://constantcontact.mashery.com/login/ ?

2) Why my same account credentials of https://ui.constantcontact.com not working with https://constantcontact.mashery.com.

 

3) http://developer.constantcontact.com/libraries/libraries.html

  1. An API key and a Constant Contact access token (if the application will be accessed by a single account).
  2. An API key and an implementation of OAuth2 flow (if the application will be used by multiple Constant Contact users).

looks like I need to use option 1 ) API key and a Constant Contact access token.

Is same library (https://github.com/constantcontact/php-sdk) I have to use or different?

1 REPLY 1
Highlighted
CTCT Employee

Re: The Mashery account associated with this request is not active, or an invalid API key was used

Hi,

 

You're trying to use a V1 API Key with a V2 library.  You need to follow steps 1-3 on this page to create a mashery (V2) API Key and plug it into your downloaded sdk.  Sorry for the confusion.  

 

Best Regards,

Shannon W.

API Support Specialist

Developer Portal

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

Visit Page

Constant Contact Would Like To Hear From You!

We want to hear from customers like you about your favorite features and how they have helped your business or organization. Tell us by answering a few questions in...

Read More
Featured