Auto-generated Dart libraries for accessing Google APIs.
First, obtain OAuth 2.0 access credentials. This can be done using the googleapis_auth
package. Your application can access APIs on behalf of a user or using a service account.
After obtaining credentials, an API from the googleapis
package can be accessed with an authenticated HTTP client.
The following command line application lists files in Google Drive by using a service account.
Create a pubspec.yaml
file with the googleapis_auth
and googleapis
dependencies.
... dependencies: googleapis: any googleapis_auth: any
Create a service account in the Google Cloud Console and save the credential information.
Then create a Dart application to list files in a spececific project. In the example below, files from the dart-on-cloud
project are listed.
// bin/list_files.dart import 'package:googleapis/storage/v1.dart'; import 'package:googleapis_auth/auth_io.dart'; final _credentials = new ServiceAccountCredentials.fromJson(r''' { "private_key_id": ..., "private_key": ..., "client_email": ..., "client_id": ..., "type": "service_account" } '''); const _SCOPES = const [StorageApi.DevstorageReadOnlyScope]; void main() { clientViaServiceAccount(_credentials, _SCOPES).then((http_client) { var storage = new StorageApi(http_client); storage.buckets.list('dart-on-cloud').then((buckets) { print("Received ${buckets.items.length} bucket names:"); for (var file in buckets.items) { print(file.name); } }); }); }
The following is a list of APIs that are currently available inside this package.
Accesses the latest features for managing Ad Exchange accounts, Real-Time Bidding configurations and auction metrics, and Marketplace programmatic deals.
Official API documentation: https://developers.google.com/ad-exchange/buyer-rest/reference/rest/
The App Engine Admin API enables developers to provision and manage their App Engine applications.
Official API documentation: https://cloud.google.com/appengine/docs/admin-api/
The App Engine Admin API enables developers to provision and manage their App Engine applications.
Official API documentation: https://cloud.google.com/appengine/docs/admin-api/
The App Engine Admin API enables developers to provision and manage their App Engine applications.
Official API documentation: https://cloud.google.com/appengine/docs/admin-api/
Groups and counts similar errors from cloud services and applications, reports new errors, and provides access to error groups and their associated errors.
Official API documentation: https://cloud.google.com/error-reporting/
The Google Cloud Resource Manager API provides methods for creating, reading, and updating project metadata.
Official API documentation: https://cloud.google.com/resource-manager
Manages the execution of large numbers of distributed requests. Cloud Tasks is in Alpha.
Official API documentation: https://cloud.google.com/cloud-tasks/
Creates and manages users and groups for accessing Google Compute Engine virtual machines.
Official API documentation: https://cloud.google.com/compute/docs/access/user-accounts/api/latest/
Manages Google Cloud Dataflow projects on Google Cloud Platform.
Official API documentation: https://cloud.google.com/dataflow
An end-to-end development suite for conversational interfaces (e.g., chatbots, voice-powered apps and devices).
Official API documentation: https://cloud.google.com/dialogflow-enterprise/
The Google Data Loss Prevention API provides methods for detection of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.
Official API documentation: https://cloud.google.com/dlp/docs/
The Google Data Loss Prevention API provides methods for detection of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.
Official API documentation: https://cloud.google.com/dlp/docs/
Configures and serves authoritative DNS records.
Official API documentation: https://developers.google.com/cloud-dns
Official API documentation: https://cloud.google.com/firestore
Provides natural language understanding technologies to developers. Examples include sentiment analysis, entity recognition, entity sentiment analysis, and text annotations.
Official API documentation: https://cloud.google.com/natural-language/
Provides natural language understanding technologies to developers. Examples include sentiment analysis, entity recognition, entity sentiment analysis, and text annotations.
Official API documentation: https://cloud.google.com/natural-language/
Writes log entries and manages your Stackdriver Logging configuration.
Official API documentation: https://cloud.google.com/logging/docs/
Manages OS login configuration for Google account users.
Official API documentation: https://cloud.google.com/compute/docs/oslogin/rest/
Manages OS login configuration for Google account users.
Official API documentation: https://cloud.google.com/compute/docs/oslogin/rest/
Registers, manages, indexes, and searches beacons.
Official API documentation: https://developers.google.com/beacons/proximity/
Provides reliable, many-to-many, asynchronous messaging between applications.
Official API documentation: https://cloud.google.com/pubsub/docs
[Deprecated. Please use Instance Group Manager in Compute API] Provides groups of homogenous Compute Engine instances.
Official API documentation: https://developers.google.com/compute/docs/instance-groups/manager/v1beta2
[Deprecated. Please use compute.instanceGroupManagers.update method. replicapoolupdater API will be disabled after December 30th, 2016] Updates groups of Compute Engine instances.
Official API documentation: https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service
The Resource View API allows users to create and manage logical sets of Google Compute Engine instances.
Official API documentation: https://developers.google.com/compute/
The Resource View API allows users to create and manage logical sets of Google Compute Engine instances.
Official API documentation: https://developers.google.com/compute/
The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions.
Official API documentation: https://cloud.google.com/deployment-manager/runtime-configurator/
Converts audio to text by applying powerful neural network models.
Official API documentation: https://cloud.google.com/speech/
Creates and configures Cloud SQL instances, which provide fully-managed MySQL databases.
Official API documentation: https://cloud.google.com/sql/docs/reference/latest
Creates and configures Cloud SQL instances, which provide fully-managed MySQL databases.
Official API documentation: https://cloud.google.com/sql/docs/reference/latest
Accesses a Google App Engine Pull Task Queue over REST.
Official API documentation: https://developers.google.com/appengine/docs/python/taskqueue/rest
Reads and publishes results from Firebase Test Lab.
Official API documentation: https://firebase.google.com/docs/test-lab/
TPU API provides customers with access to Google TPU technology.
Official API documentation: https://cloud.google.com/tpu/
Cloud Video Intelligence API.
Official API documentation: https://cloud.google.com/video-intelligence/docs/