google-api-client

Using OAuth2 with service account on gdata in python

不想你离开。 提交于 2019-11-30 00:55:44
I want to use data.photos.service.PhotosService to push and pull photos from Picasa. I got a service key file XXXXXXXX-privatekey.p12 from Google console and am now trying to authenticate using said key with google. The documentation for OAUTH2 using appengine has led me to believe that using the following would be of use: f = file(settings.SITE_ROOT + '/aurora/' + settings.PRIVATE_KEY, 'rb') key = f.read() f.close() credentials = SignedJwtAssertionCredentials(settings.SERVICE_ACCOUNT_NAME, key, scope = 'http://picasaweb.google.com/data https://www.googleapis.com/auth/userinfo.email https:/

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

老子叫甜甜 提交于 2019-11-30 00:17:50
问题 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

AbstractGoogleClient: Fatal signal 11 (SIGSEGV)

霸气de小男生 提交于 2019-11-29 21:16:06
问题 06-06 00:05:02.955: I/DEBUG(5660): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-06 00:05:02.955: I/DEBUG(5660): Build fingerprint: 'google/occam/mako:4.2.2/JDQ39/573038:user/release-keys' 06-06 00:05:02.955: I/DEBUG(5660): Revision: '11' 06-06 00:05:02.955: I/DEBUG(5660): pid: 3787, tid: 3806, name: pool-1-thread-1 >>> com.example.android <<< 06-06 00:05:02.955: I/DEBUG(5660): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000 06-06 00:05:03.055: I/DEBUG(5660

How to create a public Google Doc through the Drive API (PHP client)

心不动则不痛 提交于 2019-11-29 15:41:43
问题 This is what I've got so far, by combining this and this: require_once "google-api-php-client/src/Google_Client.php"; require_once "google-api-php-client/src/contrib/Google_DriveService.php"; require_once "google-api-php-client/src/contrib/Google_Oauth2Service.php"; //First, build a Drive service object authorized with the service accounts $auth = new Google_AssertionCredentials( DRIVE_SERVICE_ACCOUNT_EMAIL, array( DRIVE_SCOPE ), file_get_contents( DRIVE_SERVICE_ACCOUNT_KEY ) ); $client = new

Logout for GoogleApiClient in Android application

为君一笑 提交于 2019-11-29 15:23:09
Using such code it is possible to link my app and use account. if (mGoogleApiClient == null) { mGoogleApiClient = new GoogleApiClient.Builder(this) .addApi(Plus.API) .addApi(Drive.API) .addScope(Drive.SCOPE_FILE) .addScope(Drive.SCOPE_APPFOLDER) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .build(); } mGoogleApiClient.connect(); But is where any way to 'logout' from this account once activated or switch to a new one? clearDefaultAccount() doesn't work. For sign out and clear selected account use Auth.GoogleSignInApi.signOut() like this: private GoogleApiClient

How to oAuth Google API from Lambda AWS?

此生再无相见时 提交于 2019-11-29 14:46:20
问题 I am building Alexa Skill for Google calendar. The client side code works as expected on local machine because I can authenticate the local machine using the link. But, when I deploy the code on AWS Lambda there is no way that I can authenticate as I cannot input code via AWS console. I am getting trouble in setting up authentication of Google Calendar API when deployed on AWS lambda. This documentation doesn't help much to me Google Implementing Server Side Authentication 回答1: You should

How to get user's gender and date of birth by using googleapi client in android?

旧时模样 提交于 2019-11-29 10:27:18
问题 Hello all i am using google sign-in integration in my android app and everything is working fine but actually i also want to get user date of birth and his gender now does google provide this, if google provides this then what should i define in scopes inside my googleapiclient builder.My code for getting default-sign-in information is given below please tell me where should i use above two scopes to fetch them from api. GoogleSignInOptions gso = new GoogleSignInOptions.Builder

Google Calendar API batch request PHP

…衆ロ難τιáo~ 提交于 2019-11-29 08:32:17
i am trying to send a bunch of events via an Batch Request to Google Calendar. But i cant figur out how to do. https://developers.google.com/google-apps/calendar/batch doesnt help me. require_once 'google-api-php-client/src/Google_Client.php'; require_once 'google-api-php-client/src/contrib/Google_CalendarService.php'; $client = new Google_Client(); $client->setUseBatch(true); $batch = new Google_BatchRequest(); $uri = 'http://www.google.com/calendar/feeds/default/private/full/batch'; $batchContent = file_get_contents('xxxxx/google-api-php-client/batch.xml'); $batch->add($batchContent); batch

How can I format a Google Sheets spreadsheet cell with the API?

好久不见. 提交于 2019-11-29 07:48:44
My application generates a table of data and creates a new spreadsheet document in a user's Google Drive. How can I add formatting (color, font-weight, width, etc.) to individual cells? I can't seem to find any documentation, much less how I could implement this through the google-api-ruby-client . Most of my findings date back to Google API mailing lists that state it isn't supported. However, I found that another application accomplishes my desired result. An example of "Smartsheet" exporting a document to Google Drive: From Smartsheet.com: And the resulting sheet in my Google Drive:

java.net.UnknownHostException Unable to resolve host “accounts.google.com”: No address associated with hostname while inserting rows in bigquery

被刻印的时光 ゝ 提交于 2019-11-29 07:05:57
问题 Hi I am working on android app in which I have integrated BigQuery. I see we are getting a lot of exception sometimes while inserting records in BigQuery tables. We are not expertise in this but started to learn this new technology. It would be great if you guys can help me on this. java.net.UnknownHostException: Unable to resolve host "accounts.google.com": No address associated with hostname at java.net.InetAddress.lookupHostByName(InetAddress.java:424) at java.net.InetAddress