I downloaded the sample for .Net https://github.com/constantcontact/.net-sdk. As i am using a WPF/Windows Form, what is the redirect url that i should give? Tried with localhost and internal, but always get "invalid redirect url" at the end
The easiest way to do this is to use http://localhost as the redirect. One very important thing to remember is that you must log in to the developer portal and edit the settings for your API key to ensure that the Redirect URI is the same in both locations. You can manage your API keys here: https://constantcontact.mashery.com/apps/myapps
Hi, Thanks for reply. I have made the http://localhost both at my ConstantContact API end as well as in my code configuration, but after the validation in the browser window of desktop app, it says "Invalid redirect URL"
If you are receiving this error, then that means there is a mismatch somewhere with the Redirect URI. At this point, it is probably best to have you email us so that you can provide your API key and redirect URI for us to verify that everything is working correctly. The best way to reach us to send the information to firstname.lastname@example.org.
In my experience, that error is usually correct and indicates that the redirect URI in one location does not match the other. One important thing to note is that it can take 2-3 minutes for changes to your API key in Mashery to propogate to Constant Contact's systems. This can cause a redirect URI mismatch if the value has been changed within the last few minutes in Mashery.
If the issue has not resolved itself, I would strongly suggest emailing us with the details of your request so that we can help you to resolve the issue!