cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate authorization code programatically?

Occasional Contributor

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?
Tags (1)
1 REPLY 1
Moderator

Re: How to generate authorization code programatically?

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