google-api-client

SSL Error in Rails 3.2.3 while using Google Oauth2 client to access API

时光总嘲笑我的痴心妄想 提交于 2019-12-04 13:08:05
I'm fairly new to OAuth2 and I'm trying to access a user's Blogger account through the Google API with Omniauth and the Google API client. I'm using the following: Rails 3.2.3 Ruby 1.9.3 oauth2 (0.8.0) omniauth (1.1.1) omniauth-google-oauth2 (0.1.13) google-api-client (0.4.6) When I first tried to authenticate a user with Google credentials, I received the following error: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed However, when I added the specific path to my CA certs in the initializer, the error went away: provider :google_oauth2, ENV[

When should I disconnect GoogleApiClient (Android)

ぐ巨炮叔叔 提交于 2019-12-04 13:04:21
In my android app, I have 3 login options. Google+, Facebook, and my own login option. I've implemented all 3. I've implemented Google+ login using the steps outlined here. Server side access is enabled. I get the one time authorization code and pass it to my own api. Once I've received the authorization code, is there any reason to keep GoogleApiClient connected? I have a similar question for Facebook Session here. There is no reason to keep connected to the GoogleApiClient unless you plan on directly calling one of its APIs later. Once you have the authorization code, you can close the

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

我的梦境 提交于 2019-12-04 11:52:20
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.google.com/u/0/_/socialgraph/lookup/visible/o=%5Bnull%2Cnull%2C%22_UID_%22%5D&rt=j Just need to put "UID"

Rare NullPointerException in GoogleApiClient using Firebase

情到浓时终转凉″ 提交于 2019-12-04 09:13:58
问题 I am using GoogleApiClient to login users using their Google account. Basically, I am using Firebase Auth with Google sign in. But I am getting this crash on some devices every single day . When I test on some of my own devices (OnePlus 3, Nexus 5X, Moto G, etc) I never see this crash. Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase(java.util.Locale)' on a null object reference at com.google.android.gms.internal

Google Drive API - ImportError: cannot import name util

余生长醉 提交于 2019-12-04 08:51:08
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 googleapiclient import errors File "/Library/Python/2.7/site-packages/googleapiclient/errors.py", line 25,

Android Wear CapabilityApi cannot find handheld capabilities

北战南征 提交于 2019-12-04 07:42:25
I'm attempting to use MessageAPI to communicate back and forth between my handheld app and wearable app. I can't get the communication to work. I can confirm the devices are connected, but when my code executes, it acts like neither app has registered the Capability I am requesting. notifications are successfully sent from handheld to the wear device Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await() returns a list showing the handheld or wearable is indeed connected Wearable.CapabilityApi.getAllCapabilities(mGoogleApiClient, CapabilityApi.FILTER_ALL).await() returns an empty list :-

Google Adsense Services Account

↘锁芯ラ 提交于 2019-12-04 05:16:53
问题 I have the problem with Google Adsense API. I used Services Account to authen, and this is my code: require_once dirname(__FILE__) . '/google-api-php-client/Google_Client.php'; require_once dirname(__FILE__) . '/google-api-php-client/contrib/Google_AdSenseService.php'; require_once dirname(__FILE__) . '/google-api-php-client/contrib/Google_Oauth2Service.php'; $SERVICE_ACCOUNT_PKCS12_FILE_PATH = dirname(__FILE__) . '/keyfile.p12'; // create client object and set app name $client = new Google

youtube api v3 search by developer tag

。_饼干妹妹 提交于 2019-12-04 02:07:35
问题 my app upload video to youtube, i need user see what other user upload (or in another word search by developer tag). i'm use this way https://developers.google.com/youtube/v3/docs/videos/insert to upload videos. i saw this link to show how to do this but in version 2.0, i'm use v3 https://developers.google.com/youtube/2.0/developers_guide_protocol_uploading_videos#Assigning_Developer_Tags i need simple explanation how to attach developer tag in v3 thanks ahead 回答1: You can set categoryId

pull queues authorization from compute

心不动则不痛 提交于 2019-12-04 01:06:12
问题 I'm trying to access a pull queue from google compute with the compute OAuth token using python from oauth2client import gce from apiclient.discovery import build import httplib2 credentials = gce.AppAssertionCredentials('') http = httplib2.Http() http=credentials.authorize(http) credentials.refresh(http) service = build('taskqueue', 'v1beta2', http=http) tq=service.taskqueues() tq.get(project=MY_APPENGINE_PROJECT, taskqueue=PULL_QUEUE_NAME, getStats=True).execute() I keep getting HttpError

Get all email addresses of user using Google API

我怕爱的太早我们不能终老 提交于 2019-12-03 13:58:35
For my own gmail account, I have multiple email addresses associated with it. For example, I have an email address from my university that is associated with my gmail, and I can send emails from my gmail as if they are coming from my university email address. I'm reading up on the Google APIs, and I see that I can get a user's gmail address, but can I also get any other email address that is associated with their gmail account? When a user logs in to my site, I'd like to present them with a list of the gmail-associated email addresses and let them select the one they would like to use. EDIT: