How to generate authorization code programatically?

Highlighted
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
Highlighted
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
Developer Portal

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

Constant Contact Would Like To Hear From You!

We want to hear from customers like you about your favorite features and how they have helped your business or organization. Tell us by answering a few questions in...

Read More
Featured