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

SOLVED
Go to solution
MichaelM127
Frequent Participant

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

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

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
MichaelM127
Frequent Participant

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.

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

MichaelM127
Frequent Participant

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.

 

 

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

BrendaF13
Regular Participant

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

What error are you receiving and with what code?  

Dave Berard
Senior Product Manager, Constant Contact
BrendaF13
Regular Participant

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

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
BrendaF13
Regular Participant

Are you refering to the constant contact PHP SDK files??

I've downloaded these and installed them... do I need to make any changes to them??

This is the error i get now... 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. )

 

Sounds like you don't have a valid API key created for using our PHP SDK.  Have you followed the steps to get started here: http://developer.constantcontact.com/get-started.html

Dave Berard
Senior Product Manager, Constant Contact
BrendaF13
Regular Participant

Yes I just double checked everything... using all the right keys and tokens.

I'd recommend emailing your code which is not working to webservices@constantcontact.com so we can look at your exact issue directly. 

Dave Berard
Senior Product Manager, Constant Contact
Developer Portal

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

Visit Page