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 specific 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 Authorized Buyers accounts, Real-Time Bidding configurations and auction metrics, and Marketplace programmatic deals.
Official API documentation: https://developers.google.com/authorized-buyers/apis/reference/rest/
Manages alerts on issues affecting your domain.
Official API documentation: https://developers.google.com/admin-sdk/alertcenter/
Provisions and manages developers' App Engine applications.
Official API documentation: https://cloud.google.com/appengine/docs/admin-api/
Store and manage build artifacts in a scalable and integrated service built on Google infrastructure.
Official API documentation: https://cloud.google.com/artifacts/docs/
Allows users to manage BigQuery connections to external data sources.
Official API documentation: https://cloud.google.com/bigquery/
The Cloud Billing Budget API stores Cloud Billing budgets, which define a budget plan and the rules to execute as spend is tracked against that plan.
Official API documentation: https://cloud.google.com/billing/docs/how-to/budget-api-overview
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/
Creates, reads, and updates metadata for Google Cloud Platform resource containers.
Official API documentation: https://cloud.google.com/resource-manager
An implementation of the Grafeas API, which stores, and enables querying and retrieval of critical metadata about all of your software artifacts.
Official API documentation: https://cloud.google.com/container-analysis/api/reference/rest/
A fully managed and highly scalable data discovery and metadata management service.
Official API documentation: https://cloud.google.com/data-catalog/docs/
Manages Google Cloud Dataflow projects on Google Cloud Platform.
Official API documentation: https://cloud.google.com/dataflow
Cloud Data Fusion is a fully-managed, cloud native, enterprise data integration service for quickly building and managing data pipelines. It provides a graphical interface to increase time efficiency and reduce complexity, and allows business users, developers, and data scientists to easily and reliably build scalable data integration solutions to cleanse, prepare, blend, transfer and transform data without having to wrestle with infrastructure.
Official API documentation: https://cloud.google.com/data-fusion/docs
Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices).
Official API documentation: https://cloud.google.com/dialogflow/
Service to parse structured information from unstructured or semi-structured documents using state-of-the-art Google AI such as natural language, computer vision, translation, and AutoML.
Official API documentation: https://cloud.google.com/document-ai/docs/
Official API documentation: https://developers.google.com/fact-check/tools/api/
The Firebase Management API enables programmatic setup and management of Firebase projects, including a project's Firebase resources and Firebase apps.
Official API documentation: https://firebase.google.com
The Firebase Hosting REST API enables programmatic and customizable deployments to your Firebase-hosted sites. Use this REST API to deploy new or updated hosting configurations and content files.
Official API documentation: https://firebase.google.com/docs/hosting/
Access custom machine learning models hosted via Firebase ML.
Official API documentation: https://firebase.google.com
Deploy and manage infrastructure for global multiplayer gaming experiences.
Official API documentation: https://cloud.google.com/solutions/gaming/
Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers.
Official API documentation: https://cloud.google.com/natural-language/
Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers.
Official API documentation: https://cloud.google.com/natural-language/
Cloud Life Sciences is a suite of services and tools for managing, processing, and transforming life sciences data.
Official API documentation: https://cloud.google.com/life-sciences
Google Cloud Memorystore for Memcached API is used for creating and managing Memcached instances in GCP.
Official API documentation: https://cloud.google.com/memorystore/
You can use OS Login to manage access to your VM instances using IAM roles.
Official API documentation: https://cloud.google.com/compute/docs/oslogin/
You can use OS Login to manage access to your VM instances using IAM roles.
Official API documentation: https://cloud.google.com/compute/docs/oslogin/
Official API documentation: https://developers.google.com/spectrum-access-system/
Provides reliable, many-to-many, asynchronous messaging between applications.
Official API documentation: https://cloud.google.com/pubsub/docs
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/
Official API documentation: https://developers.google.com/spectrum-access-system/
Service Directory is a platform for discovering, publishing, and connecting services.
Official API documentation: https://cloud.google.com/service-directory
Converts audio to text by applying powerful neural network models.
Official API documentation: https://cloud.google.com/speech-to-text/docs/quickstart-protocol
API for Cloud SQL database instance management
Official API documentation: https://developers.google.com/cloud-sql/
API to publish and access results from developer tools.
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/