Google API Explorer: Where is the "fields" parameter editor? - google-apis-explorer

The API explorer used to have a handy feature that let you "build" a fields parameter by checking the parts of the struct you wanted included. I found this useful, but it is no longer on the documentation pages with the API requests themselves. Where did this go?

It still exists in the standalone APIs Explorer: https://developers.google.com/apis-explorer.
It hasn't been added to the in-page APIs Explorer yet.

Related

Google Chrome Net-internals (NetLog) API

Per https://dev.chromium.org/for-testers/providing-network-details
I'm looking for a JavaScript API that triggers a similar functionality of chrome://net-export/ in Google Chrome; for example, I need an API that triggers "Start Logging to Disk" without need to use the UI.
Can someone point me where can I find the API (if exists)?
Thanks a million,
Mughrabi

iOS google places api key not working

I want to implement autocomplete feature for google places.
I have created a project on google with places api service enabled.I am using iOS key for getting json data but getting following JSON response
{
"predictions" : [],
"status" : "REQUEST_DENIED"
}
I am also trying same request in safari with browser key, but still I am getting same response.
Please help.
Though this question has been answered by the creator itself, but I would like to tell few more points in detail as many people face this issue.
If you are using Google Pods / SDK then create iOS Key / Android Key whichever you want depending on your implementation.
If you are planning to use places API for autocomplete,
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Amoeba&types=establishment&location=21.76999,-122.44696&radius=500&key=[YOUR_API_KEY]
then the API Keys for iOS / Android will not work, for this case you would need to create a Browser Key from google console.
NOTE: If you want to use places API in your project don't forget to enable
from
Google Developer Console as shown below:
After this run your project / API you will get JSON response.
solved it..every parameter was OK but I sent sensor=false in the URL when I was using laptop.

Google Maps iOS SDK - Search for places

I'm new to both iOS programming & the Google Maps iOS SDK, so apologies if this is a basic question.
I want to include a Google map, in an app and give users the ability to search for various places (restaurants, bars, gyms, etc) within a certain radius of a marker.
I know this is possible using the javascript api, but can it be done using the maps iOS SDK? I have read all of the information here and have searched Stack Overflow & Google but I can't really find anything that gives me any pointers.
Within the documentation, Google say that using a URL Scheme you can launch a native iOS app and pass in parameters for searches, directions etc. Is this what I need to be using, or is that more tailored to a webapp?
Any help, advice, or pointers to tutorials (other than the ones provided by Google) would be massively appreciated.
Cheers
The Google Maps URL Scheme can currently only be used to open the Google Maps app to search for a location or for directions. It can't search for places. Also, if your own app did this, then it would shut down your app and switch to the maps app, which may not be what you want. It will also only work if the user has installed the Google Maps app.
You would probably want to use the Google Places API to make http requests from your native app. You can request a response in either JSON or XML format. Then you'll need to parse the response, and use it to add markers to a GMSMapView using the Google Maps SDK for iOS.
This blog post describes this library which the blog post's author wrote to wrap the Google Places API. You wouldn't need most of this code, but it might give you an idea of where to start. This class is the main one which handles the requests to the places API.
Note that this library uses a third-party JSON parser - SBJsonParser. As of version 5.0 iOS includes a native JSON parser, NSJSONSerialization. So if your app's minimum supported iOS version is 5.0 or higher, you don't need to use a third-party library.

Migrating to Drive SDK from DocumentsList API V3

I just came to know that DocumentsList API is depricated. So i thought of migrating my app to Drive and saw this page. I mostly use urls like https://docs.google.com/feeds/default/private/full/. So is it enough to replace them with new URL's like this https://www.googleapis.com/drive/v2/files/ ?
Just wanted to confirm is that all i need to takecare or am I missing anything. My App uses OAuth2 for authorization. Do I need to change anything in there too?
If you are constructing the requests yourself, you have to replace the URLs but also take into account that the responses from the Drive API will be JSON-formatted and not XML-formatted as in the Documents List API.
If instead you are using one of the Google-provided client libraries, you have to start using a newer client library, that you can download from https://developers.google.com/drive/downloads.
The migration guide is mostly a guide that maps methods from the Documents List API into methods of the Drive API and should be used as reference to know what is available and where.
Oauth 2.0 is fine. You can even use the same tokens you already have for Documents List v3.

'GOverlay is undefined' javascript error in IE 7, in spite of having loaded the Google Maps API

Despite loading the Google Maps API, via this url:
http://maps.gstatic.com/intl/en_ALL/mapfiles/276b/maps2.api/main.js
I'm getting the above error.
Why is it that when I download that URL in my browser and do a find for 'GOverlay' I'm getting zero matches?
Have Google removed this from their API or something, causing all my code to break?
GOverlay is an essential part of the Google Maps API implementation, see the V2 documentation for GOverlay here.
The reason for you not finding "GOverlay" when searching through the Javascript file you provided is simply that the Google Maps API consists of several Javascript files, not all of the code is in main.js. Additionally the code is obfuscated which could mean the build GOverlay by concatenating some crazy strings.
On a basic note: Why do you want to use some static JS file? The offical way to use the Google Maps API is using a key, which you have to obtain by registering with your Google account. So actually the URL you should be using is:
http://maps.google.com/maps?file=api&v=2&key=abcdefg
Or use the AJAX loader as seen on the Google Maps V2 documentation here.
The code is actually loaded asynchronously.
Post a link to your page - it is more than likely that there's some issue with your code.