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

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

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