The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Need to create new signup form and redirect back to home page after successfull signup

SOLVED
Go to solution
Highlighted
Occasional Advisor

Need to create new signup form and redirect back to home page after successfull signup

Hello,

 

Need to create a new signup form to use on a Magento website and have the user auto redirected back to the hompage after they have successfully signed up. Thanks for your help.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Honored Contributor

Re: Need to create new signup form and redirect back to home page after successfull signup

Hello,

 

The Consumer Secret is used as part of the OAuth process to verify accounts. The Access Token on the other hand is something that you obtain on a per-account bases to gain access to that account with your API key.

 

The easiest way to get an access token for an integration that only needs to connect to a single account is this:

- Go to https://constantcontact.mashery.com/ and log in

- Navigate to the I/O Docs within Mashery or click here: https://constantcontact.mashery.com/io-docs

- Select your API Key from the drop down menu and click on "Get Access Token".

- Click on the "I Already have an account" link at the bottom of the page if you have an account, or create one here.

- Click on Grant Access.

- You have an access token! Make sure to save this token so that you can find it without having to repeat the process.

 

Please let me know if you are still running into any issues and I will be happy to help!

 

Sincerely,

Elijah G.

API Support Specialist

Elijah G.
API Support Engineer

View solution in original post

13 REPLIES 13
Highlighted
Honored Contributor

Re: Need to create new signup form and redirect back to home page after successfull signup

Hello,

 

In order to connect a form with Constant Contact, you will need a pre-built integration, or you will need to set up an API key and set up your own integration to get that information moved. In order to get your API key and access token so you can get started, I would suggest visiting our Getting Started page here: http://developer.constantcontact.com/get-started.html

 

In addition, we also have a set of wrapper libraries for different languages designed to make integration easier as well as samples for some of those libraries demonstrating how to use them. You can find the libraries here: http://developer.constantcontact.com/libraries/libraries.html

And you can find the Sample code here: http://developer.constantcontact.com/libraries/sample-code.html

 

Lastly, please feel free to reply to this post if you have questions or need any clarification!

 

Sincerely,

Elijah G.

API Support Specialist

Elijah G.
API Support Engineer
Highlighted
Occasional Advisor

Re: Need to create new signup form and redirect back to home page after successfull signup

Thanks for the info. I did get an API key and also looked at the otehr resources. I am a bit confuised about the Access Key/token is that the same as the Shared secret? If not can you please expalin where I can get teh access key/token.

Highlighted
Honored Contributor

Re: Need to create new signup form and redirect back to home page after successfull signup

Hello,

 

The Consumer Secret is used as part of the OAuth process to verify accounts. The Access Token on the other hand is something that you obtain on a per-account bases to gain access to that account with your API key.

 

The easiest way to get an access token for an integration that only needs to connect to a single account is this:

- Go to https://constantcontact.mashery.com/ and log in

- Navigate to the I/O Docs within Mashery or click here: https://constantcontact.mashery.com/io-docs

- Select your API Key from the drop down menu and click on "Get Access Token".

- Click on the "I Already have an account" link at the bottom of the page if you have an account, or create one here.

- Click on Grant Access.

- You have an access token! Make sure to save this token so that you can find it without having to repeat the process.

 

Please let me know if you are still running into any issues and I will be happy to help!

 

Sincerely,

Elijah G.

API Support Specialist

Elijah G.
API Support Engineer

View solution in original post

Highlighted
Occasional Advisor

Re: Need to create new signup form and redirect back to home page after successfull signup

Thanks Elijah. I was able to use the CCSFG to create a form and match it to our site. Now I need to create a signup block that I can place on our site to encourage signups and guide users to the form page. In the past we used the generated one from CC. Can you please point me in the right direction to create that code snippet? I have searched the API docs and Libraries but cant seem to get what im after.

 

 

Highlighted
Occasional Advisor

Re: Need to create new signup form and redirect back to home page after successfull signup

Disregard I was able to figure it out thanks for your help.

Highlighted
Occasional Participant

Re: Need to create new signup form and redirect back to home page after successfull signup

I am having issues with this redirect. I've incorporated the API key and the token but get and error. Please advise as to what I should do next??

Highlighted
Moderator

Re: Need to create new signup form and redirect back to home page after successfull signup

What error are you receiving and with what code?  

Dave Berard
Senior Product Manager, Constant Contact
Highlighted
Occasional Participant

Re: Need to create new signup form and redirect back to home page after successfull signup

I used the sample code from Email Sign up Form - PHP, and this is the error I get...

 

Warning: require_once(../src/Ctct/autoload.php) [function.require-once]: failed to open stream: No such file or directory in/nfs/c02/h05/mnt/38750/domains/newsudburycentre.ca/html/KIOSK/signup.php on line 10


Fatal error: require_once() [function.require]: Failed opening required '../src/Ctct/autoload.php' (include_path='.:/usr/local/php-5.3.27/share/pear') in/nfs/c02/h05/mnt/38750/domains/newsudburycentre.ca/html/KIOSK/signup.php on line 10

Highlighted
Moderator

Re: Need to create new signup form and redirect back to home page after successfull signup

The error indicates that the files required are not where they expect them to be.  Can you confirm that you exported all the files and installed them in the correct location?

Dave Berard
Senior Product Manager, Constant Contact
Developer Portal

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

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured