google-api-client

Google Youtube API Insert Comment always returns error response 403 - “Insufficient Permission” - domain “global”

心不动则不痛 提交于 2019-12-06 08:52:49
I followed the docs and code samples from documentation guide i.e., here: https://developers.google.com/youtube/v3/docs/commentThreads/insert But when I execute the script it always returns a response with error code: 403 message: "Insufficient Permission" Here's complete response object: { "error": { "errors": [ { "domain": "global", "reason": "insufficientPermissions", "message": "Insufficient Permission" } ], "code": 403, "message": "Insufficient Permission" } } I spent alot of time in debugging and surfing on internet to find out how to fix the problem but didn't get any resource where I

User Sign-out: clearing the default Google account does not cause the account picker to show up in Android app

南笙酒味 提交于 2019-12-06 08:24:25
I followed the below link to implement a "sign out" button in my android app, which uses a Google API client. However, upon connecting the google api again, the user is not presented with an account picker. It looks like the value of her/his original choice is somehow still cached perhaps. I've been trying to figure this out for a few hours. Any and all ideas very welcome. Thank you. https://developers.google.com/+/mobile/android/sign-in if (mGoogleApiClient.isConnected()) { Plus.AccountApi.clearDefaultAccount(mGoogleApiClient); mGoogleApiClient.disconnect(); } I've had many problems using

Access Google Plus Contacts google-api-ruby-client and omniauth-google-oauth2

∥☆過路亽.° 提交于 2019-12-06 07:41:55
问题 I want to get contact from Google Plus. I am using gem "omniauth" gem "omniauth-google-oauth2" for authentication and gem "google-api-client" for comunicate with google apis. So far authentication is working fine and I got access_token after authentication. Now problem is I couldn't find a way to get list of people in my circle (My Google Plus Contact). Is there any way to do this. Specifically I need to know is there any gem more like "fb_graph" for google? I found this trick https://plus

Faraday conflicts in google_drive and google-api-client

二次信任 提交于 2019-12-06 07:22:50
I'd like to be able to use both the google-api-client gem to do service to service authentication and the google_drive api to access spreadsheets. Unfortunately, these gems seem to conflict due to requiring different versions of Faraday in their dependencies. Anyone know how to solve this? Error if google_drive is required first: specification.rb:1637:in `raise_if_conflicts': Unable to activate google-api-client-0.4.4, because faraday-0.8.1 conflicts with faraday (~> 0.7.0) (Gem::LoadError) Error if google/api_client comes first: specification.rb:1637:in `raise_if_conflicts': Unable to

Google Custom Search API - Engine Retrieving Engine Data Fails

空扰寡人 提交于 2019-12-06 07:19:52
问题 I need to do CRUD on Custom Search Engines. From documentation, it looks pretty straight forward. I keep getting 401 responses though. I am using Google.Apis.Oauth2.v2 to get a token: String serviceAccountEmail = "blahblahblah@developer.gserviceaccount.com"; var certificate = new X509Certificate2(@"key.p12", "blah", X509KeyStorageFlags.Exportable); var credential = new ServiceAccountCredential( new ServiceAccountCredential.Initializer(serviceAccountEmail) { Scopes = new[] { "https://www

Google Sheet API batch update issue iOS

烈酒焚心 提交于 2019-12-06 05:39:56
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=[[NSMutableDictionary alloc]initWithObjectsAndKeys:@"USER_ENTERED",@"valueInputOption", nil]; NSURL *postURL=

Google Drive API - ImportError: cannot import name util

依然范特西╮ 提交于 2019-12-06 03:51:00
问题 I'm trying to follow this tutorial: https://developers.google.com/drive/v3/web/quickstart/python#step_1_turn_on_the_api_name However when I run it I get the following error: Traceback (most recent call last): File "test.py", line 5, in <module> from apiclient import discovery File "/Library/Python/2.7/site-packages/apiclient/__init__.py", line 16, in <module> from googleapiclient import channel File "/Library/Python/2.7/site-packages/googleapiclient/channel.py", line 62, in <module> from

Google Android Drive api sign in fails on installed version

时光总嘲笑我的痴心妄想 提交于 2019-12-05 23:05:24
I have developed an android application that uses the GoogleDrive api, When under debug or running the debug version, the application works fine, and correctly authenticates to the attached google account..etc. When I build a release version, (with my signed keys), and install the apk file, when I run, the Googleapiclient fails to "connect", using the same google account that works under debug, giving me a "Sign in Failed" message, after it tries once to resolve. solution was here https://developers.google.com/drive/android/get-started I need to create a seperate OAuth 2.0 client ID for the

setAssertionCredentials on google-api-php-client 2.0

女生的网名这么多〃 提交于 2019-12-05 21:41:02
I updated from 1.1.5 to 2.0 and I cannot get it to login. I followed the UPGRADE.md instructions, on how to upgrade from using "setAssertionCredentials", but I can't get it to work. BEFORE: $client = new Google_Client(); $client->setApplicationName('API Project'); $client->setAssertionCredentials( new Google_Auth_AssertionCredentials( GAPI_SERVICE_ACCOUNT, array($service), file_get_contents(GAPI_KEYFILE) ) ); if ($client->getAuth()->isAccessTokenExpired()) { $client->getAuth()->refreshTokenWithAssertion(); }; $client->setClientId(GAPI_CLIENT_ID); $service = Google_Service_Webmasters($client);

Upload public object to Google Cloud Storage with public link

本秂侑毒 提交于 2019-12-05 18:23:47
I've searched everywhere on this but I cannot find a solution, how can I upload a public object to my google cloud storage, I want to have it so once the image is uploaded it can be viewed by anyone in the world. It seems I can only get this done if I manually click the public link in google storage, but I want to have it so I can automatically make these objects public through googles api . The web interface doesn't provide a way to make the objects being uploaded public automatically, but you can do one of two things: If you want to just make objects publicly readable during one particular