Enter the Share Your Success Sweepstakes 2024 For the Chance to Win Great Prizes!

How to implement the OAuth 2 Authorization in C#?

JasonM15890
Rookie
0 Votes

I'm useing the V3 API for a C# ASP.net MVC project. I'm looking to add contact to a list, Is there example code for C# that might be around, how to implement the OAuth 2 Authorization, according to step 1 from https://v3.developer.constantcontact.com/api_guide/server_flow.html,
how to get the redirect url with the access_token, and how to get the authorization code, and refresh token?

and what is "Your app client secret" from Constant Contact .NET SDK API v. 3(https://github.com/mikeks/constantcontact-v3), how to get it. if you send an email, please also cc it to gan.gan@murphyandco.com, thanks.

1 REPLY 1
John__B
Employee
0 Votes

Hello JasonM15890,

 

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

The request for V3 application code samples is currently under review. However, we're currently still adding endpoints and capabilities to the V3 API, and do not plan to publish official sample apps until that process is complete. Your feedback and experience with this request is essential to improving our product, so thank you for reaching out to us regarding this matter.

 

For updates on which new features and endpoints have been released for Constant Contact's V3 API, you can stay updated by checking the Constant Contact V3 API Release Notes page:

 

V3 API - Release Notes

https://developer.constantcontact.com/api_guide/index.html

 

In the meantime, here are the example calls that are currently available for V3:

 

V3 Code Samples:

https://v3.developer.constantcontact.com/api_guide/tag_code_samples.html 

 

Additionally, you can utilize our API Reference tester to test out the functionality of our available endpoints to see how they will work once programmed within your application:

https://v3.developer.constantcontact.com/api_reference/index.html

 

The Client Secret is used to authorize requests made to the authorization server. You can obtain your application’s client secret in the Developer portal with the following steps:

 

 

Please have a look and let us know if you have any other questions!

 

Regards,


John B.
API Support Specialist
Did I answer your question? If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Resources
Developer Portal

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

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up