Hello JunedA7,
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.
Based on the response that you are getting, which appears to be the html for Constant Contact’s login page, I suspect you may be trying to execute the OAuth2 authorization behind the scenes.
The Authorization Request screen can only be accessed/authorized via a browser window or a pop up browser dialog, but you should only need to authorize/connect each account once via this method.
OAuth2 Authorization Code Flow - Step 2: Get Authorization
https://v3.developer.constantcontact.com/api_guide/server_flow.html#step-2-get-authorization
While our expertise is with our API itself as opposed to its implementation within any particular programming language, we are happy to answer any questions pertaining to Constant Contact’s API endpoints, functionality, and documentation.
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 SDKs or 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.
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
Please have a look and let us know if you have any other questions!
... View more