I downloaded the .NET SDK from GitHub on 10/17 (and this morning as well... https://github.com/constantcontact/.net-sdk) and discovered that the CTCTWrapper is not handling response.StatusCode properly in the RestClient.cs HttpRequest method. It is looking for a 200 StatusCode as success; however, there are quite a few methods (most if not all of the Create methods) that have other status codes that indicate success (201 for Creates and 204 for some deletes as examples).
I've fixed my solution to account for these and I'm willing to share my corrections with others. Is there someone I can pass my updates to? Or is the link that I used incorrect for the v2 service contract?
I also added the is_permission_reminder_enabled field to the EmailCampaign.cs file because I found that was missing.
We recently updated the SDK with the status code fixes, but we are definitely interested in any other bugs that you have found and corrected. The best way to submit changes is to fork our repository on Github, make the changes in your fork of the repository, and then submit a pull request back to the Constant Contact repository. This method allows us to easily see what has changed and quickly test changes so that they can be merged into the existing code.
If you have any problems doing this, please let us know!
You can post a new message in the Community or find us on Twitter Mon-Fri 8am-8pm ET, Sat 10am-8pm ET, & Sun 10am-6pm ET. We've got real people waiting to help you out. Click below to start a conversation!