google-api-java-client

Creating events using the Google Calendar API and Service Account

偶尔善良 提交于 2020-08-10 22:50:04
问题 So I have setup my service account with domain wide delegation as described in this post Perform G Suite Domain-Wide Delegation of Authorit. In G Suite Admin Console I have authorized the service account to use the OAuth 2.0 scope: https://www.googleapis.com/auth/calendar. Every time I try to create an event I end up with this error GoogleJsonResponseException: 403 Forbidden { "code" : 403, "errors" : [ { "domain" : "calendar", "message" : "Service accounts cannot invite attendees without

Creating events using the Google Calendar API and Service Account

こ雲淡風輕ζ 提交于 2020-08-10 22:48:52
问题 So I have setup my service account with domain wide delegation as described in this post Perform G Suite Domain-Wide Delegation of Authorit. In G Suite Admin Console I have authorized the service account to use the OAuth 2.0 scope: https://www.googleapis.com/auth/calendar. Every time I try to create an event I end up with this error GoogleJsonResponseException: 403 Forbidden { "code" : 403, "errors" : [ { "domain" : "calendar", "message" : "Service accounts cannot invite attendees without

Having trouble getting Google Drive authorization

試著忘記壹切 提交于 2020-07-16 09:22:08
问题 I have an Android app that I am trying to (re)implement Google Drive access for. The method I'm following is Google's migration guide to the update REST API here. I have my consent page set up properly, and everything works on the iOS side of things, so I assume at very least the credentials are set up properly. I start with: GoogleSignInOptions signInOptions = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestScopes(new Scope(DriveScopes.DRIVE)) .requestEmail()

Thumbnail 404 error

纵然是瞬间 提交于 2020-06-12 05:24:12
问题 I'm trying to get the thumbnail of a file but am getting an error 404, the url that return drive is like this in some files https://docs.google.com/feeds/vt?gd=true&id=1DnoJzxnZXVERyqC5jfTwfpd8uEn&v=39&s=AMedNnoAAAAAUL0gv5da9U81UzT-L4N59b1BwNuZmzgU&sz=s220 but in others is https://lh6.googleusercontent.com/ACwqFdvBX0NUJO6SR9fyemnCnSel-TpCZTaddu9CEkZqxtQpJY84cP_cFj64CA6=s220 the last one is from picasa and works, so apparently the url's that works are from picasa, how can i get the url's of

I can't find the dependency for com.google.api.client.util.Preconditions using Maven

 ̄綄美尐妖づ 提交于 2020-04-18 10:15:23
问题 I'm new with Google Calendar API. What I'm trying to do here is to post an Event to the Google Calendar with the e-mail given by the user. My problem now is, when I tried to do the configuration, I get this exception: Caused by: java.lang.ClassNotFoundException: com.google.api.client.util.Preconditions I have tried different versions of the google api but I can't find which jar contains this class. The part on my code that's causing this exception is this : GoogleAuthorizationCodeFlow flow =

Google Tasks Authentication with 2 legged oauth error: 401 Unauthorized

北城以北 提交于 2020-04-18 06:56:14
问题 i am using this code to get an Authentication for Google tasks Api import com.google.api.client.http.*; import com.google.api.client.http.javanet.NetHttpTransport; import com.google.api.client.json.jackson.JacksonFactory; import com.google.api.services.tasks.*; import com.google.api.client.auth.oauth.OAuthHmacSigner; import com.google.api.client.util.ArrayMap; import com.google.api.client.auth.oauth.OAuthParameters; import com.google.api.services.tasks.model.TaskList; import com.google.api

Google Tasks Authentication with 2 legged oauth error: 401 Unauthorized

为君一笑 提交于 2020-04-18 06:55:35
问题 i am using this code to get an Authentication for Google tasks Api import com.google.api.client.http.*; import com.google.api.client.http.javanet.NetHttpTransport; import com.google.api.client.json.jackson.JacksonFactory; import com.google.api.services.tasks.*; import com.google.api.client.auth.oauth.OAuthHmacSigner; import com.google.api.client.util.ArrayMap; import com.google.api.client.auth.oauth.OAuthParameters; import com.google.api.services.tasks.model.TaskList; import com.google.api

User Sign-out: clearing the default Google account does not cause the account picker to show up in Android app

做~自己de王妃 提交于 2020-02-02 10:32:31
问题 I followed the below link to implement a "sign out" button in my android app, which uses a Google API client. However, upon connecting the google api again, the user is not presented with an account picker. It looks like the value of her/his original choice is somehow still cached perhaps. I've been trying to figure this out for a few hours. Any and all ideas very welcome. Thank you. https://developers.google.com/+/mobile/android/sign-in if (mGoogleApiClient.isConnected()) { Plus.AccountApi

User Sign-out: clearing the default Google account does not cause the account picker to show up in Android app

家住魔仙堡 提交于 2020-02-02 10:32:28
问题 I followed the below link to implement a "sign out" button in my android app, which uses a Google API client. However, upon connecting the google api again, the user is not presented with an account picker. It looks like the value of her/his original choice is somehow still cached perhaps. I've been trying to figure this out for a few hours. Any and all ideas very welcome. Thank you. https://developers.google.com/+/mobile/android/sign-in if (mGoogleApiClient.isConnected()) { Plus.AccountApi