google-api

Enable Google API for “googleapis.com/auth/userinfo”

扶醉桌前 提交于 2019-12-24 15:23:20
问题 I am developing a Google Chrome Extension. I would like to be able to access the user profile info, using the data from these endpoints: https://www.googleapis.com/auth/userinfo https://www.googleapis.com/oauth2/v1/userinfo I don't seem to have access to these resources. From my web searches, it looks like I may need to enable a library API in the Google Developers Console. But I looked there and cannot find an appropriate API to enable. Does anyone know which API I should enable? 回答1: If you

Google Maps API, How to Get Services (text Search) in Whole City or the whole portion of map that is in view

女生的网名这么多〃 提交于 2019-12-24 14:53:54
问题 When I did a Text Search with var request = { location: placeobject, radius: 50000, query: placetypes // types: placetypes }; infowindow = new google.maps.InfoWindow(); var service = new google.maps.places.PlacesService(map); But All I Get is the chunk of services clogged near the location i send, but how to specify text search to mark all such services in the whole city or a wider region to be searched. Screenshot of what i get is 回答1: You can't get "the whole city". textSearch and

Is there a way to enable advanced google services in the Google Developers Console by script?

喜欢而已 提交于 2019-12-24 14:43:13
问题 again! I created an embedded in spreadsheet script that use UrlShortener.Url.insert feature. My client wants to be able to make a new instances of this spreadsheet to share it with colleagues. I've implemented this feature, but when I begin to test new instance it's turned out that I have to enable URL Shortener API in my Google Developers Console. I wonder if I can bypass this manual work using my script or only I can do is to provide client with instructions how to do it? Update: Sandy Good

OAuthWebSecurity Migrating from OpenID 2.0 to OpenID Connect

微笑、不失礼 提交于 2019-12-24 14:39:56
问题 Google had earlier announced the deprecation and discontinuation of openID 2.0 on April 2015. Unfortunately for most people like me, our existing applications already have a bunch of codes written based on this service using OAuthWebSecurity from DotNetOpenAuth nuget package. Is there an update to this change on this nuget package that will assist to migrate to this new update rather than abandoning all my past efforts by searching for alternatives such as OWIN as explained in http://www.asp

Google Calendar v3 Error “The requested minimum modification time lies too far in the past. [410]”

时光总嘲笑我的痴心妄想 提交于 2019-12-24 14:27:29
问题 We are using the Google Calendar v3 API to return a list of events for a user that have been updated since a point in time. In the v2 API there was no limitation on setting this date in the past. If we set the UpdatedMin to a date too far back (like 2 months) then the error is thrown "The requested minimum modification time lies too far in the past. [410]" If we set ShowDeleted to false then we do not get the error. I cannot find any reference to a limitation here. Does anybody know the

How to test Google Plus account existance

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 12:51:40
问题 I am building a website where a user could specify his social accounts links, I am trying to find a way to test if a google plus account actually exists (social account validation). I've seen that it is actually possible to test using the GET people/userId but what about curtom urls ? For example if a user has a google.com/+JohnDoe , how would you figure it out? I didn't find anything in the google docs. 回答1: It's the same API. GET people/userId and GET people/+JohnDoe both work. 回答2: i think

Why do I get invalid JSON payload when calling google cloud vision API from appcelerator?

爷,独闯天下 提交于 2019-12-24 12:48:34
问题 I was trying to use Google vision API v1 by Alloy Appcelerator I create a request HTTPClient and call API https://vision.googleapis.com/v1/images:annotate?key=MY_APP_KEY But i have get response text from google : { error = { code = 400; details = ( { "@type" = "type.googleapis.com/google.rpc.BadRequest"; fieldViolations = ({ description = "Invalid JSON payload received. Unknown name \"request\": Cannot bind query parameter. Field 'request' could not be found in request message."; }); } );

Where is the authorization information exactly stored?

限于喜欢 提交于 2019-12-24 12:34:58
问题 https://developers.google.com/google-apps/calendar/quickstart/php#step_1_enable_the_api_name Under the notes section of Google Calendar API it says that: "Authorization information is stored on the file system, so subsequent executions will not prompt for authorization." 回答1: The credentials file's location is specified in the CREDENTIALS_PATH variable. use the expandHomeDirectory function to get the exact location. $credentialsPath = expandHomeDirectory(CREDENTIALS_PATH); echo

Android Studio import google api failed

僤鯓⒐⒋嵵緔 提交于 2019-12-24 12:34:11
问题 When I set google api at Gradle, appear an error dialog Error:(30, 13) Failed to resolve: com.google.api-client:google-api-client-android:1.21.0 my classes want to import import com.google.api.client.util.Lists; and build.Gradle(Module:app) -> dependencies compile 'com.google.api-client:google-api-client-android:1.21.0' What can I do. 回答1: First of all you have to launch the sdk manager and download and install the following files located under "extras": Android support repository , Google

Fetch Google Contacts for iOS application if User already logged in

我只是一个虾纸丫 提交于 2019-12-24 12:33:47
问题 In my application we kept option to login through gmail/facebook. I have requirement to get gmail contacts. I have seen GData library in which "GDataServiceGoogleContact" object is creating with username and password. My requirement is if i already login with gmail(using google plus SDK),how to fetch contacts by url "https://www.google.com/m8/feeds/groups/default/full". or is there any option using iOS google plus SDK. 来源: https://stackoverflow.com/questions/26868519/fetch-google-contacts-for