Not able to get access token

mowgli
Member

Not able to get access token

I follow these steps to get access token using post man. for v3 

 

1. Loginto https://app.constantcontact.com/pages/dma/portal/
2. create app and generate secretcode
3. make below request through browser after changing client_id
https://api.cc.email/v3/idfed?client_id=7391d41d-15f8-4767-a8e5-a43d1fa5f1bb&redirect_uri=https://lo...

4. Enable f12 for browser debug mode it will show the url in debug mode
something like https://localhost?code=Btm-DfwTesRXTplmOCEGpBI6CTD_GTL1FPclEAEt

5. Open PostMan and select request type as Post and make the below request after changing the Basic Auth and code parameter
Basic <client_id>:<secret_key>(base64encode)
https://idfed.constantcontact.com/as/token.oauth2?code=GfqUoci56ZQF7jV9tFXVslgXRJjUzLDsYVPBcgDJ&redi...

 

 

Im getting this json error message.

{
"error_description": "unable to parse Authorization header javax.security.auth.login.LoginException: HTTP Basic username has invalid content com.pingidentity.common.security.InvalidInputException: Value for parameter \"Authorization\" is invalid. Value doesn't match regular expression: .*",
"error": "invalid_client"
}

 

 

1 REPLY 1
Courtney_E
Moderator

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.

 

It looks like we’ve already reached out to you directly via email regarding this issue to request some additional information in order to assist with troubleshooting. If you still need assistance with this, please let us know!


Regards,

Courtney E.
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.
Developer Portal

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

Visit Page