Google OAuth2.0 | Refresh Token Generate | Access token | Youtube OAuth 2.0 | Youtube Api Data Hindi

Опубликовано: 14 Октябрь 2024
на канале: Code Improve
16,323
150

In this video you will know how to create google project app step by step and auth with google.Then get access token & after that also know about how to get new token by refresh token.

Google OAuth Playlist:-
   • Youtube Developer API  

Client ID:- --
client Secret ID:- --
API Key:- --


Auth
Access Token
Refresh Token


OLD Step : 1

https://accounts.google.com/o/oauth2/...
scope=https://www.googleapis.com/auth/youtu...
access_type=offline&
include_granted_scopes=true&
state=state_parameter_passthrough_value&
redirect_uri=http://localhost&
response_type=code&
client_id=[CLIENT_ID]


OLD Step 2:--

curl \
--request POST \
--data "code=4%2F0AX4XfWhTs_h9gWLsyCE_3BtCLMgdqP6_xPw0-Trym7cwITJs4jGa9W7Kwjo-qwK-wvNLAQ&client_id=[CLIENT_ID]&client_secret=[CLIENT_SECRET]&redirect_uri=http://localhost&grant_type=authorization_code" \
https://accounts.google.com/o/oauth2/...


OLD STEP 3:-

curl \
'https://youtube.googleapis.com/youtub...[API_KEY]' \
--header 'Authorization: Bearer [TOKEN]' \
--header 'Accept: application/json' \
--compressed


Old Step last (get new access token by refresh token) :-

curl \
--request POST \
--data "client_id=[CLIENT_ID]&client_secret=FaU-Mbrw_7EbY__29QVdqbNj&refresh_token=[REFRESH_TOKEN]&grant_type=refresh_token" \
https://accounts.google.com/o/oauth2/...


Doc Ref:-
Auth:-
https://developers.google.com/youtube...

Doc:-
https://developers.google.com/youtube...