cuRl command not working

user416572
Rookie
0 Votes

Hi, I am trying to use cuRL commands in order to perform the OAuth Authorization code flow.

Below is the command I am trying 
I have set the redirect uri in my application to localhost:8888 yet when i run the below command nothing happens. 

curl -G "https://authz.constantcontact.com/oauth2/default/v1/authorize"      --data-urlencode "client_id=0ff67e90-183d-47a5-a011-9cb25ea51a55"      --data-urlencode "redirect_uri=http://localhost:8888"      --data-urlencode "response_type=code"      --data-urlencode "scope=contact_data campaign_data offline_access"      --data-urlencode "state=235o250eddsdff"

 

1 REPLY 1
Courtney_E
Moderator
0 Votes

Hello user416572,

 

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 sounds like you may be trying to execute the OAuth2 authorization behind the scenes, as I am not seing any authorization requests within our logs for your key.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.

 

If you continue to run into issues, please reach our team directly/securely via email at webservices@constantcontact.com and reference case #32983566 and provide us with the full request(s) where you are receiving the response (including URL, headers, timestamp, and request body), and the full response body so that we can better assist you in identifying the root cause of the issue.

 

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


Regards,

Courtney E.
Tier II API Support Engineer

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