Samples by API
The following samples show basic usage of various APIs. Throughout these samples, you will find code that relies on various authentication methods.
- OAuth2 - To use the OAuth2 samples, create a credential in the cloud developer console, and save the file as
oauth2.keys.jsonin the samples directory.
- Service account - To use the service account based samples, create a new service account in the cloud developer console, and save the file as
jwt.keys.jsonin the samples directory.
- API Key - To use simple API keys, create a new API Key in the cloud developer console, then store the key in the
View and manage your Google Analytics data.
|samples/analytics||Command-line samples for producing reports with the Analytics API|
View and manage Blogger data.
|samples/blogger||Command-line samples for reading data with the Blogger API|
Lets you set key/value pairs using the GCE metadata service.
|samples/compute||Demonstrates how to use the Google Compute Engine Metadata API|
Lets you search over a website or collection of websites.
|samples/customsearch||Search from the command-line|
The Google Mirror API allows you to build web-based services that interact with Google Glass. It provides this functionality over a cloud-based API and does not require running code on Glass.
|samples/mirror||Obtains a list of locations from glass data|
With the YouTube Data API, you can add a variety of YouTube features to your application. Use the API to upload videos, manage playlists and subscriptions, update channel settings, and more.
|samples/youtube||Samples for working with playlists, search and videos.|