You can load the client library using the following script tag:
Loading an API and making a request is as easy as executing:<script src="https://apis.google.com/js/client.js?onload=CALLBACK"></script>
You can use the APIs Explorer to check all the methods available for an API, as well as the parameters for each method. For instance, use the above syntax with thegapi.client.load('API_NAME', 'API_VERSION', CALLBACK); // Returns a request object which can then be executed. // METHOD_NAME is only available once CALLBACK runs. var request = gapi.client.METHOD_NAME(PARAMETERS_OBJECT); request.execute(callback);
plus.activities.searchmethod of the Google+ API to query activities:
Antonio Fuentes is a Product Manager for the Google API Infrastructure group. He has experience launching products in the cloud computing, infrastructure, and virtualization space.
Posted by Scott Knaster, Editor