Generalizing the Redirect URI for localhost

SOLVED
Highlighted
Occasional Contributor

Generalizing the Redirect URI for localhost

This may be a dumb question but there goes:

 

My redirect URI is http://localhost:"somenumber"/rest of the URL. My problem is "somenumber" changes based upon the computer used so my team members get errors.

 

What should I put in my webconfig and in the Constant Contact Application textbox in order to make it generic so that any localhost will work?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator

Re: Generalizing the Redirect URI for localhost

Hello @DavidL7089,

 

The number listed after the localhost is the port number that the request is trying to connect to; port 8080 is the very common port for web traffic. Pretty much every computer should be able to use this port unless your network/computer has it blocked for some reason. If it is blocked then you would either need to unblock it or pick a different port to use on all computers.

 

The redirect URI can only be set to one thing per API Key. The only way to use different redirect URIs is to use multiple API Keys.


Regards,
Jimmy D.
Tier II API Support Engineer

View solution in original post

2 REPLIES 2
Highlighted
Moderator

Re: Generalizing the Redirect URI for localhost

Hello @DavidL7089,

 

The number listed after the localhost is the port number that the request is trying to connect to; port 8080 is the very common port for web traffic. Pretty much every computer should be able to use this port unless your network/computer has it blocked for some reason. If it is blocked then you would either need to unblock it or pick a different port to use on all computers.

 

The redirect URI can only be set to one thing per API Key. The only way to use different redirect URIs is to use multiple API Keys.


Regards,
Jimmy D.
Tier II API Support Engineer

View solution in original post

Highlighted
Occasional Contributor

Re: Generalizing the Redirect URI for localhost

I see. Thank you.

 

BTW, on your https://constantcontact.mashery.com/ site, you have some extra html sticking out at the bottom that looks like //]]> 

Just letting you guys know.

Developer Portal

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

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