google-api-client

Can I receive a boudingPoly for LABEL_DETECTION results?

℡╲_俬逩灬. 提交于 2019-12-03 08:32:32
How can this be completed with the Google Vision-API please? send image to vision-api request: 'features': [{': 'LABEL_DETECTION','maxResults': 10,}] receive the labels in particular the one I'm interest in is a "clock" receive the boundingPoly so that I know the exact location of the clock within the image having received the boundingPoly I would want to use it to create a dynamic AR marker to be tracked by the AR library Currently it doesn't look like Google Vision-API supports a boudingPoly for LABELS hence the question if there is a way to solve it with the Vision-API. Currently Label

Google Drive API: list files with no parent

可紊 提交于 2019-12-03 06:55:08
The files in Google domain that I administer have gotten into a bad state; there are thousands of files residing in the root directory. I want to identify these files and move them to a folder underneath "My Drive". When I use the API to list the parents for one of these orphaned files, the result is an empty array. To determine if a file is orphaned, I can iterate over all the files in my domain, and request the list of parents for each. If the list is empty, I know that the file is orphaned. But this is hideously slow. Is there anyway to use the Drive API to search for files that have no

How do I retrieve Google Analytics report data using v3 of their .NET api?

試著忘記壹切 提交于 2019-12-03 06:54:09
I've been trying to retrieve Google analytics reports using their provided .NET api and have really been scratching my head over how I actually retrieve anything using the newest version, v3, which is available here: http://code.google.com/apis/analytics/docs/gdata/v3/gdataLibraries.html For example, I'd like to retrieve a report query like this one: https://www.google.com/analytics/feeds/data?dimensions=ga:browser&end-date=2012-01-25&ids=ga:ACCOUNTID&metrics=ga:visits&start-date=2011-12-25 I'm able to return reports just fine using version 2 which uses GData, but was hoping to get version 3

How to integrate google+ sign in my android app?

和自甴很熟 提交于 2019-12-03 03:51:57
Hello all actually i need to sign in people from google+ through my app now i read documentation on google where it isstated that To allow users to sign in, integrate Google Sign-In into your app. When you initialize the GoogleApiClient object, request the PLUS_LOGIN and PLUS_ME scopes mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Plus.API) .addScope(Scopes.PLUS_LOGIN) .addScope(Scopes.PLUS_ME) .build(); Now i am confused that whether should i use above code only or implement google sign-in first and after that

Rare NullPointerException in GoogleApiClient using Firebase

白昼怎懂夜的黑 提交于 2019-12-03 02:12:14
I am using GoogleApiClient to login users using their Google account. Basically, I am using Firebase Auth with Google sign in. But I am getting this crash on some devices every single day . When I test on some of my own devices (OnePlus 3, Nexus 5X, Moto G, etc) I never see this crash. Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase(java.util.Locale)' on a null object reference at com.google.android.gms.internal.zzamy.zzd(Unknown Source) at com.google.android.gms.internal.zzamv.n(Unknown Source) at com.google

onDataChanged() not being called on android wear

社会主义新天地 提交于 2019-12-02 23:33:26
问题 I'm trying to use Data Items to send a few strings through to my wear, but my wear never seems to receive any signal, because onDataChanged() is never called. I even set a time stamp to ensure the data is always different whenever it is sent. Is there a specific way I have to install the app onto both devices to get it to work? I'm just clicking run and selecting my phone, then switching modules and doing the same for my wear device. Here is the code from my main activity on my phone: public

Access a Protected Google Apps Script Web Service via a Native Client (.Net) using OAuth

纵饮孤独 提交于 2019-12-02 20:11:59
问题 My .Net Client Application (Winform) allows users to use a Browser Control to Authenticate on Google. I am able to retrieve the access_token in the response (I follow the instructions here). Once I get this access_token, how can I use it to 'GET' (or POST) to a protected Google Apps Script. For instance, if I have a web service URL https://script.google.com/macros/s/XYXYXYXYXYX, that is set to run as the Authenticated User. Is there a way that I can download the URL using the access_token

Authorization issue with cron crawler inserting data into Google spreadsheet using Google API in Ruby

守給你的承諾、 提交于 2019-12-02 19:16:34
问题 My project is to crawl the certain web data and put them into my Google spreadsheet every morning 9:00. And it has to get the authorization to read & write something. That's why the code below is located at the top. # Google API CLIENT_ID = blah blah CLIENT_SECRET = blah blah OAUTH_SCOPE = blah blah REDIRECT_URI = blah blah # Authorization_code def get_authorization_code client = Google::APIClient.new client.authorization.client_id = CLIENT_ID client.authorization.client_secret = CLIENT

onDataChanged() not being called on android wear

痞子三分冷 提交于 2019-12-02 12:22:32
I'm trying to use Data Items to send a few strings through to my wear, but my wear never seems to receive any signal, because onDataChanged() is never called. I even set a time stamp to ensure the data is always different whenever it is sent. Is there a specific way I have to install the app onto both devices to get it to work? I'm just clicking run and selecting my phone, then switching modules and doing the same for my wear device. Here is the code from my main activity on my phone: public class HomeActivity extends Activity{ public static String TAG = "HomeActivity"; private GoogleApiClient

How to partial download google drive files using java REST Client API?

痴心易碎 提交于 2019-12-02 10:03:39
Using the sample code (Drive Java REST API V3) below, I am trying to download a portion of a file from google drive. Drive.Revisions.Get get = service.revisions().get(fileId, revisionId) .setFields(FilterConstants.OBJECT_REVISION); MediaHttpDownloader downloader = get.getMediaHttpDownloader(); downloader.setContentRange(fromByte, toByte); inputStream = get.executeMediaAsInputStream(); But this is not working for me. Can someone help me how to resolve this issue? The following code works for me. The trick was to set Range header correctly private byte[] getBytes(Drive drive, String downloadUrl,