google-api

Using Google+ API for PHP — Need to get the users email

扶醉桌前 提交于 2020-01-13 04:28:06
问题 I'm using the Google PHP API. The documentation is rather lackluster... I want to allow users to connect their Google+ information and also use it to sign the users up in my database. In order to do that I need to get the email they use for their google account. I can't seem to figure out how to. It's easy enough in Facebook by forcing the permission when the users connect to my app. Anyone have any idea? This is the code I'm using to grab the users google+ profile and it works fine, except

Google Drive API username + password authentication

寵の児 提交于 2020-01-13 01:28:13
问题 I'm developing an application where Google Drive will be used to manage some documents. The idea is to create a document with some initial template data and provide the users access by adding them as collaborators of the document. I'm familiar with the OAuth authentication process, I used it in another part of the system to manage the users Calendar... But in this case these documents will be stored in a generic account of the company, so I can't have the approval prompt for authentication,

Java SSLException: hostname in certificate didn't match for www.googleapis.com

醉酒当歌 提交于 2020-01-12 20:56:30
问题 Environment : Mac OS X Lion & Linux Debian squeeze/sid, JDK 1.7.0 & JDK 1.6.0_27 Error : javax.net.ssl.SSLException: hostname in certificate didn't match: <www.googleapis.com/74.125.47.95> != <*.googleapis.com> OR <googleapis.com> OR <*.googleapis.com> . I'm getting this error in all the above OS/JDK combinations. Background : I am using google-api-services-customsearch and google-api-service-shopping jars to do webservice calls to Google. My calls were working correctly until a day ago.

Java SSLException: hostname in certificate didn't match for www.googleapis.com

本秂侑毒 提交于 2020-01-12 20:56:09
问题 Environment : Mac OS X Lion & Linux Debian squeeze/sid, JDK 1.7.0 & JDK 1.6.0_27 Error : javax.net.ssl.SSLException: hostname in certificate didn't match: <www.googleapis.com/74.125.47.95> != <*.googleapis.com> OR <googleapis.com> OR <*.googleapis.com> . I'm getting this error in all the above OS/JDK combinations. Background : I am using google-api-services-customsearch and google-api-service-shopping jars to do webservice calls to Google. My calls were working correctly until a day ago.

Google API Python Client - AccessTokenRefreshError

三世轮回 提交于 2020-01-12 10:11:12
问题 def get_code(request): try: user_info_service = get_service(request.user, 'oauth2', 'v2') user_info = user_info_service.userinfo().get().execute() if user_info and user_info.get('id'): request.session['cur_user'] = user_info return redirect('/me') else: raise NoUserIdException() except AccessTokenRefreshError as atrfsh: print atrfsh print traceback.print_tb(sys.exc_info()[2]) except: print "This was the exception..." print sys.exc_info() auth_uri = FLOW.step1_get_authorize_url() print auth

How can I make Google News output JSON?

早过忘川 提交于 2020-01-12 05:41:06
问题 I tried using Google's feed to JSON converter like this: http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http%3A%2F%2Fnews.google.com%2Fnews%3Foutput%3Drss%26num%3D8 The only problem is that only a maximum of 4 results can be returned. If I go directly to http://news.google.com/news?output=rss&num=8, then there are 8 results. But if I convert it to JSON, there's only 4. Is there another method of getting Google News results in the JSON format? 回答1: &num=8 should be part of the load

Connecting to Google Analytics API in a Rails app [closed]

谁都会走 提交于 2020-01-11 13:00:57
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Is there a good tutorial available re: how to interact with the Google Analytics API within a Rails app? I've found this gist, but I'm not sure if every step listed in that gist is necessary. If that is a good tutorial to follow, where can I download the "key_file" that's mentioned? I can't seem to find it

Connecting to Google Analytics API in a Rails app [closed]

点点圈 提交于 2020-01-11 13:00:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Is there a good tutorial available re: how to interact with the Google Analytics API within a Rails app? I've found this gist, but I'm not sure if every step listed in that gist is necessary. If that is a good tutorial to follow, where can I download the "key_file" that's mentioned? I can't seem to find it

Google API - Invalid Credentials

╄→гoц情女王★ 提交于 2020-01-11 12:58:33
问题 I am trying to make an iOS app where a user can rate a YouTube video using the YouTube API. To do this, the user has to be authenticated. So, I used Google's Google Sign-In to authenticate my users. I followed the implementation guide, and it seems as if the user gets signed in. I can access data from the user such as their profile image, name, etc. Because I am using the YouTube API, I need to add the YouTube scope to Google Sign-In before the user signs in. So, I do that like so...

Get Google+ ID from Google Contacts

别说谁变了你拦得住时间么 提交于 2020-01-11 12:37:53
问题 I'm pulling a user's contacts email addresses and names using the Google Contacts API. Is there a way to get those people's Google+ IDs as well? 回答1: The contacts API will return a profile link if a G+ profile is linked with the contact entry. Here's an example: <gContact:website href='http://www.google.com/profiles/1234567890' rel='profile'/> In that element's href attribute, 1234567890 is the person identifier that would match the id field of the relevant person resource from people.list of