I am working with an API that uses OAuth2, this is my first time working with this kind of authorization, using Postman I can generate an Access token just fine, but I would like to generate it manually using PHP cURL with the refresh token, because I don't want to go to postman everyday and generate a new Access token everytime it has expired.

Is there anyway to do this using PHP cURL? If so, could anyone help me out?

I have googled quite a bit, but can't find a solution to my problem.

0 Answers