Thank you for reaching out to Constant Contact API Developer Support, and for your patience. My team is here to assist outside software developers with questions about building into Constant Contact's API.
Based on the code provided, as well as your comment on this post, it looks like you were able to resolve the grant_type error you had been running into. Also, you shouldn't need to be logged into the developer portal for the account to stay authorized if you have completed the OAuth2.0 flow to grant access to the Constant Contact account you'll be working with.
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 sample calls that are currently available for V3:
https://v3.developer.constantcontact.com/api_guide/tag_code_samples.html
If you still need assistance with this, please let us know!
... View more