google-api-client

Google CardDAV API 403 Error

和自甴很熟 提交于 2019-12-13 02:16:47
问题 I've been trying to use Google's CardDAV APIs (and I've successfully gotten CalDAV access working). Unfortunately, I keep getting a 403 error when trying to discover the user's current-user-principal. FWIW, I have gone to Google's Developer Console and set up client information and it seems to work perfectly fine for CalDAV access. Here is a snippet of the HTTP traffic for CardDAV: PROPFIND https://www.googleapis.com:443/.well-known/carddav/ Depth: 0 Content-Type: text/xml Brief: T

Ruby On Rails gem dependency conflict when install “google-api-client”

我怕爱的太早我们不能终老 提交于 2019-12-13 01:29:31
问题 I added to Gemfile : gem 'google-api-client', "0.6.4" 1> execute “bundle install”, and got this error: Fetching gem metadata from https://rubygems.org/.. Resolving dependencies... Bundler could not find compatible versions for gem "addressable": In Gemfile: google-api-client (= 0.6.4) ruby depends on addressable (>= 2.3.2) ruby koala (>= 0) ruby depends on addressable (2.2.8) 2> execute “bundle update koala”, got this error: Fetching gem metadata from https://rubygems.org/.. Resolving

Owned entity causing json serialization error in Google javascript api client

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 22:13:21
问题 Getting error: java.lang.IllegalArgumentException: Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: N/A; line: -1, column: -1] and Caused by: com.google.appengine.repackaged.org.codehaus.jackson.map.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: N/A; line: -1, column: -1] Samples of my entities: @PersistenceCapable public class User { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy

How to sign out of a Google Drive account?

孤街醉人 提交于 2019-12-12 19:26:34
问题 How do I log out of the Google Drive service? I do not want to switch accounts but to log out definitively. I am working on an app that will use the user's Google Drive storage among other storage services. Therefore I need to allow the user to sign out of Google Drive. 回答1: Leaving aside I think this is a poor API implementation, this is how you log out. mGoogleApiClient.unregisterConnectionCallbacks(mConnectionCallbacksListener); mGoogleApiClient.unregisterConnectionFailedListener

Illegal state exception while calling signout through GoogleApiClient

巧了我就是萌 提交于 2019-12-12 18:31:22
问题 I wanted to implement a Google signin activity which on success opens my next activity. If the user logs out from the next activity, I want to go back to Google signin activity and signout. However when I call signout in onActivityResult I get the following exception Caused by: java.lang.IllegalStateException: GoogleApiClient is not connected yet. Here's the relevant code public class LoginActivity extends AppCompatActivity implements GoogleApiClient.OnConnectionFailedListener, View

Why I receive CERTIFICATE_VERIFY_FAILED from google adwords api?

佐手、 提交于 2019-12-12 10:58:30
问题 Why google adwords api stops on call this link: https://adwords.google.com/api/adwords/mcm/v201502/CustomerService?wsdl With this error - should I load some certificate before and how? urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)> Using Python 2.7.10. Full source code: create_adwords_client_without_yaml.py Full error code: Traceback (most recent call last): File "C:/Users/Crezary Wagner/PycharmProjects/learn-adwords/src/examples

Google Sheet API batch update issue iOS

末鹿安然 提交于 2019-12-12 09:59:29
问题 Am trying to do a batch update with google sheet API for iOS but am getting an error invalid value at 'data[0].values[0]' (type.googleapis.com/google.protobuf.ListValue), here is my code NSString *baseUrl = @"https://sheets.googleapis.com/v4/spreadsheets/"; NSString *spreadsheetId = @"1tJd4toWFxmHAEOeONauRPcuH_rWJOESLQT7TvCIK0x0"; baseUrl= [baseUrl stringByAppendingString:spreadsheetId]; baseUrl = [baseUrl stringByAppendingString:@"/values:batchUpdate/"]; NSMutableDictionary * params=[

<Android App> is having trouble with google play services

心不动则不痛 提交于 2019-12-12 06:23:12
问题 My app has following gradle configurations Min Sdk version:15 Target Sdk version:23 compile 'com.google.android.gms:play-services-drive:9.6.1' classpath 'com.google.gms:google-services:3.0.0' Android version 6.0 Google Play Services version 10.2.98 Also i registered my app on https://console.developers.google.com/apis/credentials Using the following code for drive api private void connectToDrive(){ GoogleApiClient.ConnectionCallbacks ccb = new GoogleApiClient.ConnectionCallbacks() { @Override

google-api-python-client broken because of OAuth2?

雨燕双飞 提交于 2019-12-12 03:32:15
问题 I am trying to check if a certain dataset exists in bigquery using the Google Api Client in Python. It always worked untill the last update where I got this strange error I don't know how to fix: Traceback (most recent call last): File "/root/miniconda/lib/python2.7/site-packages/dsUtils/bq_utils.py", line 106, in _get resp = bq_service.datasets().get(projectId=self.project_id, datasetId=self.id).execute(num_retries=2) File "/root/miniconda/lib/python2.7/site-packages/oauth2client/util.py",

Is NodeApi specific to Android Wear?

浪子不回头ぞ 提交于 2019-12-12 03:19:15
问题 I want to detect the connected Android Wear device in my app. I found the solution here using NodeApi. But the documentation doesn't say anything about that is it specific to Android Wear or not: Exposes an API for to learn about local or connected Nodes. Node events are delivered to all applications on a device. What is a Node here? Is it any device that connected over bluetooth or specific Android Wear device connected over bluetooth? I want to detect if the device connected is Android Wear