Analytics API returns: Bad request - invalid_grant
问题 I'm using the Google Analytics API v3. I'll explain the flow of my application now I used this documentation here: https://developers.google.com/accounts/docs/OAuth2WebServer First, an OAUTH-URL is generated for the user. The URL looks like this https://accounts.google.com/o/oauth2/auth? client_id={CLIENT-ID}& redirect_uri={REDIRECT-URL}& state={CUSTOM-NUMBER}& response_type=code& access_type=offline& approval_prompt=force& scope=https://www.googleapis.com/auth/analytics When the user clicks