GoogleOAuth2.0withHTTP This code shows how to get a access token only (no refresh token) for the authorization code flow (with redirect URI) with HTTP/REST Approach (using Javascript) For More Info here.