How to generate authorization code programatically?

Participant

How to generate authorization code programatically?

I have successfully generated the authorization url.

 
Using this I have to generate the authorization code programatically in PHP.
By simply the authorization url I will get the code from
http://localhost:8888/?code=lN1WhAHX9ooSIfuhy0LzWJhv713O
as suggested  in the documentation. But I have to generate the authorization code programatically. Is there any solution?
1 REPLY 1
Moderator

Hello @user620331,

 

Thank you for reaching out to Constant Contact's API Support.

 

Our API documentation does have PHP code snippets for every step in the oAuth2 flow.

 

https://v3.developer.constantcontact.com/api_guide/server_flow.html#step-1-create-an-authorization-r...


Regards,
Jimmy D.
Tier II API Support Engineer
Developer Portal

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

Visit Page