Im trying to get Authorization code for send push notifications throug new Firebase cloud messaging API. For this pourpose i need to get OAuth2.0 token. The problem its im only do a REST calls and im trying to do this from POSTMAN.
I making post to this URL: https://accounts.google.com/o/oauth2/auth?client_id=xxxxxx&response_type=token&redirect_uri=xxxxxxxx&scope=https://www.googleapis.com/auth/cloud-platform&include_granted_scopes=true
But google return cant load the page without javascript permissions (In postman). When I put this URL in navigator open a login page from google... I want to make a REST call and have the message from that call return the authorization code and then request the temporary token, not send me to a Google login page. What can I do?
I cant use Ouath client from java or something similar, only REST calls.
Thanks you for your time.
How can I make the call to receive the authorization code for after requesting the temporary token to perform Push notifications through Firebase?