google-api-java-client

Write to GoogleSheet via API with Java

大城市里の小女人 提交于 2019-12-29 01:34:10
问题 I am trying to write a value to a cell with Google Sheet API with Java. For reading I used guide from Java Quickstart which worked fine for me. For writing to Google Sheet I use: service.spreadsheets().values().update(spreadsheetId, "Sheet1!A4:H", response).execute(); This function outputs the following error while run: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden { "code" : 403, "errors" : [ { "domain" : "global", "message" : "Request had insufficient

Error: 'The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.'

こ雲淡風輕ζ 提交于 2019-12-27 12:15:29
问题 I am getting the following error while accessing Google Play Developer API using a service account: The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console. The service account email and .p12 file were generated using the service account option in APIs&Auth -> Credentials . The Application in the Google Play Developer API was linked to the project using the project id as mentioned in google's docs. However, I am still getting this

Google Apps Marketplace API customerLicense with OAuth2

雨燕双飞 提交于 2019-12-25 10:56:20
问题 We are migrating our Google Apps Marketplace Apps to OAuth2 authentication. We have figured out some of difference in migration process such as replace OAuth1 two-legged authentication with Service Account OAuth2 strategy to impersonate domain and perform some background task. In our current OAuth1 apps we have some queries to customerLicense service to check if some domain removed our App from Marketplace. I have seen this is not possible to do with OAuth2 by the moment. Is there any Service

Google Apps Marketplace API customerLicense with OAuth2

不想你离开。 提交于 2019-12-25 10:54:11
问题 We are migrating our Google Apps Marketplace Apps to OAuth2 authentication. We have figured out some of difference in migration process such as replace OAuth1 two-legged authentication with Service Account OAuth2 strategy to impersonate domain and perform some background task. In our current OAuth1 apps we have some queries to customerLicense service to check if some domain removed our App from Marketplace. I have seen this is not possible to do with OAuth2 by the moment. Is there any Service

upload video to youtube from android using google-api-java-client 1.14.1 or ytd-android-0.2

♀尐吖头ヾ 提交于 2019-12-25 05:38:26
问题 Further to my earlier question which is not answered using youtube data in android project my goal is to upload YouTube video, and after get the URL, then do a search by key developer. I spent three days and not found yet aworking code for Android. i try this code that Initially appears to be superior : How to upload a video to YouTube in Android? that link to this file https://code.google.com/p/ytd-android/downloads/list but i recive toast that write : "Request made to myytdDomain failed.

Requested scopes not allowed

痞子三分冷 提交于 2019-12-25 04:34:24
问题 I'm trying to fetch a user from Google Directory API with the following request: Collection<String> SCOPES = Arrays.asList("https://www.googleapis.com/auth/admin.directory.user.readonly", "https://www.googleapis.com/auth/admin.directory.user"); URL url = getClass().getResource("privatekey.p12"); GoogleCredential credential = new GoogleCredential.Builder() .setJsonFactory(request.getJsonFactory()) .setServiceAccountId("foobar.com") .setServiceAccountScopes(SCOPES) .setTransport(new

Google Calendar API - No constructor found

陌路散爱 提交于 2019-12-25 04:15:33
问题 I'm start to use Google Calendar API. But when I try the Set Up in the link https://developers.google.com/google-apps/calendar/instantiate I have a big problem. I try to implement the constructor Calendar service = new Calendar(httpTransport, accessProtectedResource, jsonFactory); but this ins't in the library, this constructor not exists. Can anybody help me to found a new solution for this problem? Thanks 回答1: Make sure you are referring to the Calendar service class defined in com.google

Authentication to upload files in my drive using Google drive API client library for Java

只谈情不闲聊 提交于 2019-12-25 01:34:29
问题 I have spring+maven based java application having rest web service. For each call to this rest webservice, I want my application to upload a file to my google drive account. I found this. How can I authentication account before uploading in my application? Do I need Google OAuth2.0 for web application server application? or Authentication method in quick start guide for java will do for my application? I am new to OAuth. Is there any complete guide on google drive authentication and using

Cannot compile a simple Google api Android app with Eclipse

久未见 提交于 2019-12-25 00:07:20
问题 I am trying to build a simple OAuth Client for Android in Eclipse. I followed the instructions from code.google.com/p/google-api-java-client/wiki/Setup Downloaded the zip file and added google-api-client-1.6.0-beta.jar to my build path in Eclipse. All the 13 dependencies now show up under Referenced Libraries as shown below. The code is simple. I have just done the following changes to the default Activity. public class Testing1Activity extends Activity { /** Called when the activity is first

Google Directory API return access_denied when call groups().list().execute()

余生颓废 提交于 2019-12-24 14:19:37
问题 Library : google-api-services-admin-directory_v1-rev11-1.16.0-rc.jar API Console : Service Account Domain 3rd party OAuth Client Access Setting https://www.googleapis.com/auth/admin.directory.group https://www.googleapis.com/auth/admin.directory.user Getting users list is work, but groups list return error (access_denied) Source scopeList.add(DirectoryScopes.ADMIN_DIRECTORY_USER); scopeList.add(DirectoryScopes.ADMIN_DIRECTORY_GROUP); scopeList.add(DirectoryScopes.ADMIN_DIRECTORY_GROUP_MEMBER)