So a couple of weeks ago I started following this tutorial on the google API in java. https://developers.google.com/calendar/api/quickstart/java. The first day it worked perfectly but after that I just kept getting these errors and I don't know what I have to do.
I am using the same code as in the tutorial but I keep getting this error:
Exception in thread "main" com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request POST https://oauth2.googleapis.com/token { "error": "invalid_grant", "error_description": "Bad Request" }I am running this code on IntellIJ.
I have tried to create new Credentials, refresh the client secret, I have tried to publish the app and add new emails to test the it but nothing works.
I have been searching for a while now and I am still nowhere.
|
||||||