I am trying to get a token of OAuth 2.0 from the Youtube API, so my bot can perform actions on behalf of a user.
To do this, I need to create a redirect url , like this provided by Google itself as an example ):
So far so good, my problem is that the answer is provided in redirect_uri
, like this:
http://localhost/oauth2callback#access_token=1/QbIbRMWW&token_type=Bearer&expires_in=3600
My problem is that I have no idea how I can get this data.
I would like to know if it is possible to pass the response to a variable, or return a JSON