google-api-client

Is DataApi Reliable and Practically Real Time? Extremely Delayed [duplicate]

可紊 提交于 2019-12-24 17:03:35
问题 This question already has an answer here : WearListenerService onDataChanged strange behavior (1 answer) Closed 4 years ago . I have had an Android Wear app on the market for about 10 months now and it's stopped working (Not sure when it stopped working). I'm trying to update my wearable application with some statistics that I record in my mobile app. As I say, this used to work fine and reliably. I even added the timestamp to this so it was unique as the onDataChanged is only called if data

logout from Google+ from other activity

时光怂恿深爱的人放手 提交于 2019-12-24 13:17:33
问题 I have recently implemented the Google+ API. I managed to succesfully authenticated and move forward to the main activity. My issue is that I would like to include a "LogOut" option in the action bar menu and when the user comes back he will be prompted to login again. I read several answers however I wasnt able to implement them. can you please suggest the best way to implement this solution and suggest a good example? Thanks, 回答1: So I manage to solve the issue, i created the below base

Google client API - limit oauth authentication to my domain

大城市里の小女人 提交于 2019-12-24 08:56:04
问题 Has anyone had any experience of using the Google Client API to authorise against their domain by restricting the domain a user can login with? The titbit that is required appears to be a qs parameter: hd='[Domain name]' but there's nothing similar in the OAuth2Parameters parameters object var oap = new OAuth2Parameters { AccessToken = Current == null ? null : Current.AccessToken, RefreshToken = Current == null ? null : Current.RefreshToken, ClientId = GoogleClientId, ClientSecret =

javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake while inserting rows in bigquery

好久不见. 提交于 2019-12-24 03:04:12
问题 Hi I am working on android app in which I have integrated bigquery. I see sometimes we are getting a lot of SSL exceptions while inserting data to big query tables. I don't know how to handle this . Please help what exactly is the cause of this problem. Here is the same thread but no answer Bigquery SSL error while doing streaming insert api call javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java

Google drive api v3 response null

随声附和 提交于 2019-12-24 01:39:32
问题 I want to try upload file google drive and my code is here: public static File UploadFile(DriveService service, string fileName, string filePath, string description, string parent) { var fileMetadata = new File { Name = fileName, MimeType = GetMimeType(fileName), Description = description, OriginalFilename = fileName, }; FilesResource.CreateMediaUpload request; using (var stream = new System.IO.FileStream(filePath, System.IO.FileMode.Open)) { request = service.Files.Create(fileMetadata,

Reports API 503 Backend Error

混江龙づ霸主 提交于 2019-12-23 14:54:22
问题 For the past couple of weeks the batch task I use to retrieve User Usage Reports from the Reports API has been failing with the following response: com.google.api.client.googleapis.json.GoogleJsonResponseException: 503 OK { "code" : 503, "errors" : [ { "domain" : "global", "message" : "Backend Error", "reason" : "backendError" }], "message" : "Backend Error" } Is anyone else seeing this error? Seems like an internal error on the API. Is there anything I can do on my end to avoid this problem?

Reports API 503 Backend Error

空扰寡人 提交于 2019-12-23 14:54:09
问题 For the past couple of weeks the batch task I use to retrieve User Usage Reports from the Reports API has been failing with the following response: com.google.api.client.googleapis.json.GoogleJsonResponseException: 503 OK { "code" : 503, "errors" : [ { "domain" : "global", "message" : "Backend Error", "reason" : "backendError" }], "message" : "Backend Error" } Is anyone else seeing this error? Seems like an internal error on the API. Is there anything I can do on my end to avoid this problem?

Why does Google's Custom Search API say that I'm missing an access token when using the Ruby client?

社会主义新天地 提交于 2019-12-23 12:19:47
问题 I'm trying to use Google's Custom Search API through the Google API Ruby client. I have setup my API key through the Google API console, and have also created my CSE. Based on the documentation, it seems that, as long as I provide an API key (which I am doing), I shouldn't need an OAuth2 authentication token to call the list method. However, when I try to execute the code below, I get the following error: ArgumentError: Missing access token. What am I missing? Here's my code: # create client

'LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient)' not returning any location if GPS is off

烂漫一生 提交于 2019-12-23 05:32:51
问题 I'm trying to get user's current location and for that I'm following this tutorial. I'm running the following code on a device running Android Lollipop so there's no issue of runtime permission here. Here's my code ( Update 1.0 ): @Override public void onConnected(@Nullable Bundle bundle) { Log.d("onConnected", "called"); mLocationRequest = new LocationRequest(); mLocationRequest.setInterval(1000); mLocationRequest.setFastestInterval(1000); mLocationRequest.setPriority(LocationRequest

Ruby Google Calendar Integration Watch Event / Push Notification

眉间皱痕 提交于 2019-12-23 03:39:14
问题 The following snippet of code print events for a calendar id, all the calendar configured and try to set a watch notification on a calendar. Everything works but the the watch event method. I'm getting this error: apis/core/http_command.rb:212:in `check_status': Unauthorized (Google::Apis::AuthorizationError) thi seems strange since the calendars and events retrieve is working fine. service = Google::Apis::CalendarV3::CalendarService.new service.client_options.application_name = APPLICATION