google-api-java-client

Set Google Calendar query parameters with google-java-api-client in Android

有些话、适合烂在心里 提交于 2019-12-11 00:38:36
问题 I'm building a URL to gain access to a users Google calendar with the google-javi-api as such: CalendarUrl url = CalendarUrl.forEventFeed("accountName", "private", "full"); which returns me this url: "https://www.google.com/calendar/feeds/user@gmail.com/private/full?prettyprint=true" I would like to set parameters to this URL with startMin and startMax parameters so the URL would eventually look like this: "https://www.google.com/calendar/feeds/default/private/full?start-min=2011-06-00T00:00

Google Cloud Storage REST API takes too much time when uploading a file

旧巷老猫 提交于 2019-12-10 21:35:32
问题 I'm trying to upload a file through Google Cloud Storage REST API. It works fine, but the task takes too much time, I think. The last test I did was uploading a 171KB sized picture, and the task was working for 71 seconds. (my upload connection is able to upload 251KB/s, by an online speed test). The code I am executing is almost equal as the one placed in storage-cmdline-sample. The only thing I modified was the mediaContent to upload (instead the RandomDataBlockInputStream, I'm trying to

Unable to retrieve Google Drive files and folders using new Drive API

扶醉桌前 提交于 2019-12-10 19:25:10
问题 I am trying to get a list of Files in a Folder from Google Drive from my Android app but have been unsuccessful so far. I'm using google-api-drive-v1-rev4-java-1.6.0-beta and google-api-client-1.9.0. I'm also building my code similar to calendar-android-sample and tasks-android-sample from the samples at http://code.google.com/p/google-api-java-client/wiki/Android. I cant seem to find how to use files() to get a list of folders or even the id of the folder I want. The tasks-android-sample

Google API java client - pageSize

我的未来我决定 提交于 2019-12-10 16:29:19
问题 Why does service.list().setPageSize(pageSize) not work? It does not return list of elements with specified pageSize . Where is the problem? EDIT Here is example of code that does not work : Appsactivity.Activities.List request = service.activities().list() .setDriveFileId(fileId) .setGroupingStrategy("driveUi") .setSource("drive.google.com") .setUserId("me") .setPageSize(pageSize); ListActivitiesResponse response = request.execute(); do { response = request.execute(); List<Activity> items =

dyld: Symbol not found: ___NSDictionary0__ when using google ServiceGenerator binary with discovery docs in XCode 7 & iOS target 9.0

不想你离开。 提交于 2019-12-10 10:12:17
问题 I'm trying to generate client API code from Google backend using Google serviceGenerator with discovery document as input. Following is the exact command : /Users/raja/Library/Developer/Xcode/DerivedData/ServiceGenerator-dycdiotwolfqnaelznaucewpppjr/Build/Products/Debug/ServiceGenerator ./userRecordApi-v1-rpc.discovery --outputDir ~/API I however, see the following error dyld: Symbol not found: ___NSDictionary0__ Referenced from: /Users/raja/Library/Developer/Xcode/DerivedData

Error in Travis trying to submit app to Google's Play Store

☆樱花仙子☆ 提交于 2019-12-10 09:55:56
问题 I started by looking into a couple of Gists I found on Github: https://gist.github.com/lpetre/87a5196d14cf4484f1f2 And this works great on my laptop, however I'm trying to set up Travis-CI to automatically build the release APK and submit it to the Play Store. The issue that I'm encountering now is on the Travis side, in that I cannot use pip to install the google_api_python_client. upon that call, I get the following: Installing collected packages: google-api-python-client, httplib2 Running

Google Credential: This developer account does not own the application

僤鯓⒐⒋嵵緔 提交于 2019-12-10 01:49:50
问题 I'm using Google client libraries and trying to make a GET request to Google Play API. GoogleCredential credential= new GoogleCredential.Builder().setTransport(netHttpTransport) .setJsonFactory(jacksonFactory) .setServiceAccountId(CLIENT_ID) .setServiceAccountScopes(SCOPE) .setServiceAccountPrivateKeyFromP12File(file) .build(); credential.refreshToken(); HttpRequestFactory requestFactory =netHttpTransport.createRequestFactory(credential); GenericUrl url = new GenericUrl(URI); HttpRequest

Google Webmasters API for Java returns empty site list

[亡魂溺海] 提交于 2019-12-09 16:19:41
问题 I have written a simple site list query code which uses Oauth with service account based on Google's documentation. The authentication key file (.p12) being used is valid as well as the account. The problem is that sites list method returns an empty list. service.sites().list().execute(); Also if I explicitly try to get sitemaps of a validated site, by calling service.sitemaps().list("my.sample.site.com").execute(); I got a 403 Forbidden - "User does not have sufficient permission for site

Access Not Configured Android Google API Key

℡╲_俬逩灬. 提交于 2019-12-09 08:59:07
问题 I am trying to use Youtube Data API v3 to search on android, though when I try to search using my API key i always get this message: { "error": { "errors": [ { "domain": "usageLimits", "reason": "accessNotConfigured", "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project." } ], "code": 403, "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project." } } I have the Youtube Data API set to

Google service object for Google Calendar API

为君一笑 提交于 2019-12-08 07:39:01
问题 I am trying to use the Google Calendar API in .NET, specifically I am trying to get a list of events. According to the examples here, in different programming languages I need to create a 'service' object and an 'event' object. However, I can't find a clear explanation of what either of these objects is or how to initiate them. Does anyone have an explanation? Or can anyone provide any information or give me a link to where this is explained? It doesn't necessarily have to be in .NET Here is