I'm using YQL to query a Google Spreadsheet for a list of ISBN's. I'd like to take those ISBN's and use Google Books API to generate a column of Google Preview buttons for those books.
Here's a fiddle I've started:
http://jsfiddle.net/SpuXG
Now in this example from Google, ISBNs are submitted as a form and that input is used by the Google API / JSON.
http://goo.gl/b15yC
Is there a way to get Google's API to take the ISBNs from the existing JSON object from my YQL instead of the input form?
The only way I've found to do something similar is via Google Books bookshelves (not with a spreadsheet or YQL). Here's a fiddle: http://jsfiddle.net/TECHg/1/
Related
I am coding in Google Apps Script.
I have an URL like that https://www.google.com.vn/search?q=something.
I want to send a GET request to that URL and from the response, I can know the number of results that should be show in the top of the SERPs. (like the picture)
Is there any way for me to do that?
Sending a GET request to a web page will get you html response, instead you can try Google's Custom Search JSON API
And I quote:
The JSON Custom Search API lets you develop websites and applications to retrieve and display search results from Google Custom Search programmatically. With this API, you can use RESTful requests to get either web search or image search results in JSON format.
I need to retrieve the creation date of a Google Contact.
I know that I can use getLastUpdated() to get the last modified date, but I need the create date.
Is there any solution to this?
You can use Google Contacts API. From the response body you will be able to get the created date. Also this post from stackexchage suggested to use API Playground to visually walk through making a request to get the data you want from Google Contacts API.
This information is not traditionally exposed through the Google
Contacts online interface. However! You can get access to "created"
and "updates" dates and times using the Google Contacts API.
If you're not a developer, you can use the API Playground to visually
walk you through making a request to the Google Contacts API to get
the data you want.
I am currently working on a project using the google maps JS API. i would like to display the place type in a similar fashion to how a google search would result (example below).
Using the getDetails method in PlacesService (as show here), i can receive an array of types for a place, yet they are not descriptive as what a google search shows, and are not localized. is it possible to achieve using the API?
Currently, the API doesn't provide this information.
There are a couple of feature requests in the Google issue tracker that might match your requirement:
https://issuetracker.google.com/issues/35822953
https://issuetracker.google.com/issues/35827225
You can star these feature requests to add your vote and subscribe to further notifications.
I have the Place Id of a place on google maps in my app. Is there a way to put the place Id in a URL and have it directly link to the page? Or does it have to be done through the URL?
I can't seem to find anything detailing this in the docs. I've tried below, but it just gets me the standard google maps page:
https://maps.google.com/maps?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4
Recently, in May 2017, Google launched the new Google Maps URLs API. You can read about this API in the official documentation
https://developers.google.com/maps/documentation/urls/guide
So, from now on you can construct a URL for Google Maps using the place ID. In your particular case this URL will be
https://www.google.com/maps/search/?api=1&query=Google&query_place_id=ChIJN1t_tDeuEmsRUsoyG83frY4
Hope this helps!
Not directly, using the placeID you can get a variety of information in JSON or XML format, among them there are also the lat lng of the place and its address with which you can easily locate the map
google developer doc
The URL for a specific Google Place is returned by the places details API endpoint.
If for example you query:
https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJV2BQ4laeekgRFauLvdXbFXE&key=YOUR_API_KEY
You will see that in the returned JSON there is a key 'url' which points to https://maps.google.com/?cid=8148660811851344661
The correct format, at this time, to produce a general link that goes directly to correct google place is: https://maps.google.com/?cid=[place_id]&t=[maptype]
The map type parameter "t" is apparently necessary. Without it, google maps seems to perform a more general search when the link opens that is sometimes successful and sometimes not. With it, maps opens to correct place each time whether it opens in browser or in app on mobile.
Set this parameter to "m" for a street map and "k" for a satellite map.
A lot of answers on SO show the following syntax which often pulls unwanted results if two locations of the same name are nearby e.g.:
https://www.google.com/maps/place/Starbucks/#43.088554,-88.06579,17z/
If you are already using google places api, then you have the place_id, so i recommend using it to avoid ambiguity.
I have been able to retrieve little infos (mainly email and id ) in JSon using Oauth2 the url:
https://www.google.com/m8/feeds/contacts/default/full?&max-results=5&alt=json
Now I want more details like name/ phone number . Is it possible in one call with one url ?
Thanks
I think you may be using the google example code. The information you need is retrived by this url, part of the example code is wrong, it seems like the information is not retrived.
You'll find these stackoverflow links useful:
Google Contacts API XML parsing with PHP
Fetch Contacts from google