Windows Form/WPF AuthenticateFromWinProgram

Highlighted
Regular Visitor

Windows Form/WPF AuthenticateFromWinProgram

Hi,

 

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

 

Thanks

3 REPLIES 3
Highlighted
Honored Contributor

Re: Windows Form/WPF AuthenticateFromWinProgram

Hello,

 

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

 

Best Regards,

Elijah G.
API Support Engineer
Highlighted
Regular Visitor

Re: Windows Form/WPF AuthenticateFromWinProgram

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" 

 

Thanks

Highlighted
Honored Contributor

Re: Windows Form/WPF AuthenticateFromWinProgram

Hello,

 

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 webservices@constantcontact.com.

 

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!

 

Sincerely,

Elijah G.
API Support Engineer
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