API - Consolidate multiple Contact accounts

SOLVED
Highlighted
Occasional Contributor

API - Consolidate multiple Contact accounts

I haven't my unique situation in any of your documentation or forums.

 

I am a freelancer hired to consolidate a customers multiple Constant Contact account lists into a single account. He currently has multiple, similar business running and each has its own web site and Constant Contact account. He has setup another account and would like a script to run daily to consolidate the individual lists into one list.

 

Will I need a separate key for each account? What got me confused was that I was setting up a test account and applied for an API key. I logged off and logged into the master account to try to get another key and it showed I already had a key.

 

I assume I need a key for each and would have to authenticate each but they would all be coming from the same URL (the callback URLs would have to be different also I guess).

 

The confusion about the key I mentioned above got me thinking there might be an easier way than having 7 different API keys and going through authentication 7 times every time the script runs.

 

 

Thanks,

-Tom

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
CTCT Employee

Re: API - Consolidate multiple Contact accounts

Hi Tom,

 

The general rule of thumb is, if you're running one application/integration, you only need one api key.  One api key can be used for any number of Constant Contact accounts.  You will need to switch between access tokens for each account, since the access token is the piece that authenticates and is unique to each account.

 

Best Regards,

Shannon W.

API Support Specialist

View solution in original post

2 REPLIES 2
Highlighted
CTCT Employee

Re: API - Consolidate multiple Contact accounts

Hi Tom,

 

The general rule of thumb is, if you're running one application/integration, you only need one api key.  One api key can be used for any number of Constant Contact accounts.  You will need to switch between access tokens for each account, since the access token is the piece that authenticates and is unique to each account.

 

Best Regards,

Shannon W.

API Support Specialist

View solution in original post

Highlighted
Occasional Contributor

Re: API - Consolidate multiple Contact accounts

Thanks for the quick response Shannon!

 

Since I setup an API key with a specific userids and there is nothing in the OAuth to allow you to specify a user, I assumed when it prompted for a userid and password it wanted the original creator's. Not only does the OAuth allow multiple accounts (you can log into any valid account and allow access for that API key) but the index.php example made it really simple!

 

Thanks,

-Tom

 

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