XML API Examples
The following table summarizes examples of using the Google Cloud Storage XML API. Each example page provides information about how to set up your environment, what OAuth 2.0 credential type to use, and how to run the sample.
Language | OAuth 2.0 credential | API actions demonstrated |
---|---|---|
Java Examples | Service Account | The command-line example lists the contents of a bucket. The second example shows how to access Google Cloud Storage from within Google App Engine. |
Python Example | Installed Application | Common tasks like listing buckets, uploading and listing objects, and downloading objects. |
These examples demonstrate how to use OAuth 2.0 credentials for the service account and installed application scenarios. For more information, see Using OAuth 2.0 to Access Google APIs .