google-api

Google Maps GeoCoding always uses browser language

会有一股神秘感。 提交于 2020-01-02 10:06:47
问题 I am using the google ajax api loader and want to get all the information in german so I am loading the maps api like this google.load("maps", "2", {language : "de"}); I have tried deu, ger, de, de_DE and even en and ja_JPbut no success. For those who don't understand my problem: http://dl.getdropbox.com/u/5910/Jing/2008-11-24_2018.png you can try it at http://apps.komola.de/gmaps.htm the address is english on the english browser and german on the german browser 回答1: This API doc indicates

How to draw a grid over google maps in android?

半城伤御伤魂 提交于 2020-01-02 09:57:12
问题 I want to create a grid like What3Words app did. Once the camera zooms past a certain level the grid shows up and scales in size as the user zooms. I've tried TileOverlay and successfully created a grid. The problem was that the grid redraws itself with every zoom. I want the grid rather than redrawn, to be scaled with the zoom level. I've then moved on to GroundOverlay and used an already drawn grid and I found two issues: The image quality is worse than the original and, like the

Alamofire with google geocoding api

痴心易碎 提交于 2020-01-02 09:10:51
问题 In one of my apps I need to geocode address string. At first I considered using CLGeocoder . However, after I tried it I stumbled upon a problem which I described in this question. The solution was to use Google's Geocoding APIs instead. I have now switched to them and managed to get them working by having the following functions: func startConnection(){ self.data = NSMutableData() let urlString = "https://maps.googleapis.com/maps/api/geocode/json?address=\(searchBar.text!)&key=MYKEY" let

Google Calendar API in Ruby using Service Account

旧时模样 提交于 2020-01-02 08:47:07
问题 I'm trying to access the Google Calendar API in Ruby using a Service Account (e.g., server-to-server communication). I'm having difficulty finding a good tutorial/example of how to do this. I have created a service account, and downloaded a JSON private key file. How can I authenticated with the Calendar API using this JSON file and make a request for calendar information? The Ruby API examples don't contain examples for apps that aren't running on a Google Apps domain. To summarize, I'm

gdata Unknown authorization header - started 12/11/13

僤鯓⒐⒋嵵緔 提交于 2020-01-02 08:25:20
问题 The google calendar sync had been working fine for a long time now suddenly starting yesterday we started getting the following error. I saw that this has happened in the past and google engineers (SRE) had to apply a patch to fix this. com.google.gdata.util.AuthenticationException: Unknown authorization header 回答1: Google Account Authentication APIs ( ClientLogin, AuthSub and OAuth 1.0 ) are deprecated as per deprecation policy. http://googledevelopers.blogspot.com/2012/04/changes-to

Gmail API quota usage check

删除回忆录丶 提交于 2020-01-02 08:04:13
问题 We are developing a project working with Gmail API, it might exceed the API limit on this page https://developers.google.com/gmail/api/v1/reference/quota API Limit Daily Usage 1,000,000,000 quota units per day Per User Rate Limit 250 quota units per user per second "Exceeding a rate limit will cause an HTTP 403 or HTTP 429 Too Many Requests response and your app should respond by retrying with exponential backoff." So we can we make a call from script, to check the number of API call left

Google oauth2 access token expires in 1 hour. I want to make it 1 day

萝らか妹 提交于 2020-01-02 07:51:55
问题 I have created a project with Google OAuth2 credentials for use with Google calendar. However the access toke expires in every 1 hour. Can someone please help me change the expire time to 1 day. I have use this code to access the google calendar events: $client = new Google_Client(); $client->setApplicationName("Client_Library_Examples"); $client->setClientId($client_id); $client->setClientSecret($client_secret); $client->setRedirectUri($redirect_uri); $client->setAccessType('offline');

Google oauth2 access token expires in 1 hour. I want to make it 1 day

纵饮孤独 提交于 2020-01-02 07:51:12
问题 I have created a project with Google OAuth2 credentials for use with Google calendar. However the access toke expires in every 1 hour. Can someone please help me change the expire time to 1 day. I have use this code to access the google calendar events: $client = new Google_Client(); $client->setApplicationName("Client_Library_Examples"); $client->setClientId($client_id); $client->setClientSecret($client_secret); $client->setRedirectUri($redirect_uri); $client->setAccessType('offline');

Upload public object to Google Cloud Storage with public link

匆匆过客 提交于 2020-01-02 06:58:36
问题 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 . 回答1: The web interface doesn't provide a way to make the objects being uploaded public automatically,

How to get user profile on Google API using the JAVA library?

怎甘沉沦 提交于 2020-01-02 04:25:06
问题 I have a Java ClientRequest to the Google API that returns a json containing the profile based in an access_token. The URL is: https://www.googleapis.com/oauth2/v1/userinfo?access_token=ya29.1.AADtN_VALuuUTBm8ENfNTz8s... And the response is: { "id": "111223344556677889900", "email": "myemail@gmail.com", "verified_email": true, "name": "My Name", "given_name": "My", "family_name": "Name", "link": "plus.google.com/111223344556677889900", "picture": "photo.jpg", "gender": "male", "locale": "en"