Skip to content

Instantly share code, notes, and snippets.

View modder2's full-sized avatar
🏂
Riding and developing...

Alexander Kravchenko modder2

🏂
Riding and developing...
  • Sportbank UA
  • Ukraine, Kiev
View GitHub Profile
@modder2
modder2 / README.md
Last active July 9, 2022 19:27
Get Yahoo OAuth2 refresh token from console (server-side installed application flow) on PHP

Get Yahoo OAuth2 refresh token

This PHP script helps you to get OAuth2 refresh token from console for your Yahoo API app (server-side installed application flow), e.g. for Yahoo Gemini or Yahoo Social APIs apps.

The access token expires but the refresh token doesn't, and should be stored for later use. Using the refresh token you can get a new access token.

See Explicit Grant Flow in Yahoo OAuth 2.0 Guide.

Step 1. Creating OAuth2 credentials