Skip to content

A comprehensive suite of Google SDKs that are idiomatically clean Scala 3 for Play Framework applications

License

Notifications You must be signed in to change notification settings

dboresjo/play-google-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

play-google-api

A comprehensive suite of Google SDKs that are idiomatically clean Scala 3 for Play Framework applications

Google API Description
abusiveexperiencereport Views Abusive Experience Report data, and gets a list of sites that have a significant number of abusive experiences.
acceleratedmobilepageurl Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).
accessapproval An API for controlling access to data by Google personnel.
accesscontextmanager An API for setting attribute based access control to requests to Google Cloud services. Warning: Do not mix v1alpha and v1 API usage in the same access policy. The v1alpha API supports new Access Context Manager features, which may have different attributes or behaviors that are not supported by v1. The practice of mixed API usage within a policy may result in the inability to update that policy, including any access levels or service perimeters belonging to it. It is not recommended to use both v1 and v1alpha for modifying policies with critical service perimeters. Modifications using v1alpha should be limited to policies with non-production/non-critical service perimeters.
addressvalidation The Address Validation API allows developers to verify the accuracy of addresses. Given an address, it returns information about the correctness of the components of the parsed address, a geocode, and a verdict on the deliverability of the parsed address.
adexchangebuyer2 Accesses the latest features for managing Authorized Buyers accounts, Real-Time Bidding configurations and auction metrics, and Marketplace programmatic deals.
adexperiencereport Views Ad Experience Report data, and gets a list of sites that have a significant number of annoying ads.
admin Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.
admob The AdMob API allows publishers to programmatically get information about their AdMob account.
adsense The AdSense Management API allows publishers to access their inventory and run earnings and performance reports.
adsenseplatform
advisorynotifications An API for accessing Advisory Notifications in Google Cloud
airquality The Air Quality API.
alertcenter Manages alerts on issues affecting your domain. Note: The current version of this API (v1beta1) is available to all Google Workspace customers.
alloydb AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases.
analytics Views and manages your Google Analytics data.
analyticsadmin Manage properties in Google Analytics. Warning: Creating multiple Customer Applications, Accounts, or Projects to simulate or act as a single Customer Application, Account, or Project (respectively) or to circumvent Service-specific usage limits or quotas is a direct violation of Google Cloud Platform Terms of Service as well as Google APIs Terms of Service. These actions can result in immediate termination of your GCP project(s) without any warning.
analyticsdata Accesses report data in Google Analytics. Warning: Creating multiple Customer Applications, Accounts, or Projects to simulate or act as a single Customer Application, Account, or Project (respectively) or to circumvent Service-specific usage limits or quotas is a direct violation of Google Cloud Platform Terms of Service as well as Google APIs Terms of Service. These actions can result in immediate termination of your GCP project(s) without any warning.
analyticshub Exchange data and analytics assets securely and efficiently.
analyticsreporting Accesses Analytics report data.
androiddeviceprovisioning Automates Android zero-touch enrollment for device resellers, customers, and EMMs.
androidenterprise Manages the deployment of apps to Android Enterprise devices.
androidmanagement The Android Management API provides remote enterprise management of Android devices and apps.
androidpublisher Lets Android application developers access their Google Play accounts. At a high level, the expected workflow is to "insert" an Edit, make changes as necessary, and then "commit" it.
apigateway
apigee Use the Apigee API to programmatically develop and manage APIs with a set of RESTful operations. Develop and secure API proxies, deploy and undeploy API proxy revisions, monitor APIs, configure environments, manage users, and more. Note: This product is available as a free trial for a time period of 60 days.
apigeeregistry
apikeys Manages the API keys associated with developer projects.
apim Enables users to discover shadow APIs in existing Google Cloud infrastructure.
appengine Provisions and manages developers' App Engine applications.
apphub
area120tables
artifactregistry Store and manage build artifacts in a scalable and integrated service built on Google infrastructure.
assuredworkloads
authorizedbuyersmarketplace The Authorized Buyers Marketplace API lets buyers programmatically discover inventory; propose, retrieve and negotiate deals with publishers.
backupdr
baremetalsolution Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.
batch An API to manage the running of Batch resources on Google Cloud Platform.
beyondcorp Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity solutions.
biglake The BigLake API provides access to BigLake Metastore, a serverless, fully managed, and highly available metastore for open-source data that can be used for querying Apache Iceberg tables in BigQuery.
bigquery A data platform for customers to create, manage, share and query data.
bigqueryconnection Allows users to manage BigQuery connections to external data sources.
bigquerydatapolicy Allows users to manage BigQuery data policies.
bigquerydatatransfer Schedule queries or transfer external data from SaaS applications to Google BigQuery on a regular basis.
bigqueryreservation A service to modify your BigQuery flat-rate reservations.
bigtableadmin Administer your Cloud Bigtable tables and instances.
billingbudgets 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.
binaryauthorization The management interface for Binary Authorization, a service that provides policy-based deployment validation and control for images deployed to Google Kubernetes Engine (GKE), Anthos Service Mesh, Anthos Clusters, and Cloud Run.
blockchainnodeengine
blogger The Blogger API provides access to posts, comments and pages of a Blogger blog.
books The Google Books API allows clients to access the Google Books repository.
businessprofileperformance The Business Profile Performance API allows merchants to fetch performance reports about their business profile on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access.
calendar Manipulates events and other calendar data.
certificatemanager
chat The Google Chat API lets you build Chat apps to integrate your services with Google Chat and manage Chat resources such as spaces, members, and messages.
checks The Checks API contains powerful and easy-to-use privacy and compliance APIs that interact with the Checks product and its underlying technology.
chromemanagement The Chrome Management API is a suite of services that allows Chrome administrators to view, manage and gain insights on their Chrome OS and Chrome Browser devices.
chromepolicy The Chrome Policy API is a suite of services that allows Chrome administrators to control the policies applied to their managed Chrome OS devices and Chrome browsers.
chromeuxreport The Chrome UX Report API lets you view real user experience data for millions of websites.
civicinfo Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses.
classroom Manages classes, rosters, and invitations in Google Classroom.
cloudasset The Cloud Asset API manages the history and inventory of Google Cloud resources.
cloudbilling Allows developers to manage billing for their Google Cloud Platform projects programmatically.
cloudbuild Creates and manages builds on Google Cloud Platform.
cloudchannel The Cloud Channel API enables Google Cloud partners to have a single unified resale platform and APIs across all of Google Cloud including GCP, Workspace, Maps and Chrome.
cloudcontrolspartner Provides insights about your customers and their Assured Workloads based on your Sovereign Controls by Partners offering.
clouderrorreporting Groups and counts similar errors from cloud services and applications, reports new errors, and provides access to error groups and their associated errors.
cloudfunctions Manages lightweight user-provided functions executed in response to events.
cloudidentity API for provisioning and managing identity resources.
cloudkms Manages keys and performs cryptographic operations in a central cloud service, for direct use by other cloud resources and applications.
cloudprofiler Manages continuous profiling information.
cloudresourcemanager Creates, reads, and updates metadata for Google Cloud Platform resource containers.
cloudscheduler Creates and manages jobs run on a regular recurring schedule.
cloudshell Allows users to start, configure, and connect to interactive shell sessions running in the cloud.
cloudsupport Manages Google Cloud technical support cases for Customer Care support offerings.
cloudtasks Manages the execution of large numbers of distributed requests.
cloudtrace Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenTelemetry.
composer Manages Apache Airflow environments on Google Cloud Platform.
config Creates and manages Google Cloud Platform resources and infrastructure.
connectors Enables users to create and manage connections to Google Cloud services and third-party business applications using the Connectors interface.
contactcenteraiplatform
contactcenterinsights
container Builds and manages container-based applications, powered by the open source Kubernetes technology.
containeranalysis This API is a prerequisite for leveraging Artifact Analysis scanning capabilities in both Artifact Registry and with Advanced Vulnerability Insights (runtime scanning) in GKE. In addition, the Container Analysis API is an implementation of the Grafeas API, which enables storing, querying, and retrieval of critical metadata about all of your software artifacts.
content Manage your product listings and accounts for Google Shopping
contentwarehouse
css Programmatically manage your Comparison Shopping Service (CSS) account data at scale.
customsearch Searches over a website or collection of websites
datacatalog A fully managed and highly scalable data discovery and metadata management service.
dataflow Manages Google Cloud Dataflow projects on Google Cloud Platform.
dataform Service to develop, version control, and operationalize SQL pipelines in BigQuery.
datafusion 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.
datalabeling Public API for Google Cloud AI Data Labeling Service.
datalineage
datamigration Manage Cloud Database Migration Service resources on Google Cloud Platform.
datapipelines Data Pipelines provides an interface for creating, updating, and managing recurring Data Analytics jobs.
dataplex Dataplex API is used to manage the lifecycle of data lakes.
dataportability The Data Portability API lets you build applications that request authorization from a user to move a copy of data from Google services into your application. This enables data portability and facilitates switching services.
dataproc Manages Hadoop-based clusters and jobs on Google Cloud Platform.
datastore Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application.
datastream
deploymentmanager The Google Cloud Deployment Manager v2 API provides services for configuring, deploying, and viewing Google Cloud services and APIs via templates which specify deployments of Cloud resources.
developerconnect Connect third-party source code management to Google
dialogflow Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices).
digitalassetlinks Discovers relationships between online assets such as websites or mobile apps.
discovery Provides information about other Google APIs, such as what APIs are available, the resource, and method details for each API.
discoveryengine Discovery Engine API.
displayvideo Display & Video 360 API allows users to automate complex Display & Video 360 workflows, such as creating insertion orders and setting targeting options for individual line items.
dlp Discover and protect your sensitive data. A fully managed service designed to help you discover, classify, and protect your valuable data assets with ease.
dns
documentai 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.
domains Enables management and configuration of domain names.
doubleclickbidmanager DoubleClick Bid Manager API allows users to manage and create campaigns and reports.
drive The Google Drive API allows clients to access resources from Google Drive.
driveactivity Provides a historical view of activity in Google Drive.
drivelabels An API for managing Drive Labels
essentialcontacts
eventarc Build event-driven applications on Google Cloud Platform.
factchecktools
fcm FCM send API that provides a cross-platform messaging solution to reliably deliver messages at no cost.
fcmdata Provides additional information about Firebase Cloud Messaging (FCM) message sends and deliveries.
file The Cloud Filestore API is used for creating and managing cloud file servers.
firebase The Firebase Management API enables programmatic setup and management of Firebase projects, including a project's Firebase resources and Firebase apps.
firebaseappcheck Firebase App Check works alongside other Firebase services to help protect your backend resources from abuse, such as billing fraud or phishing.
firebaseappdistribution
firebasedatabase The Firebase Realtime Database API enables programmatic provisioning and management of Realtime Database instances.
firebasedynamiclinks Programmatically creates and manages Firebase Dynamic Links.
firebasehosting The Firebase Hosting REST API enables programmatic and customizable management and deployments to your Firebase-hosted sites. Use this REST API to create and manage channels and sites as well as to deploy new or updated hosting configurations and content files.
firebaseml Access custom machine learning models hosted via Firebase ML.
firebaserules Creates and manages rules that determine when a Firebase Rules-enabled service should permit a request.
firebasestorage The Cloud Storage for Firebase API enables programmatic management of Cloud Storage buckets for use in Firebase projects
firestore Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development.
fitness The Fitness API for managing users' fitness tracking data.
games The Google Play games service allows developers to enhance games with social leaderboards, achievements, game state, sign-in with Google, and more.
gamesConfiguration The Google Play Game Services Publishing API allows developers to configure their games in Game Services.
gamesManagement The Google Play Game Management API allows developers to manage resources from the Google Play Game service.
gkebackup Backup for GKE is a managed Kubernetes workload backup and restore service for GKE clusters.
gkehub
gkeonprem
gmail The Gmail API lets you view and manage Gmail mailbox data like threads, messages, and labels.
gmailpostmastertools The Postmaster Tools API is a RESTful API that provides programmatic access to email traffic metrics (like spam reports, delivery errors etc) otherwise available through the Gmail Postmaster Tools UI currently.
groupsmigration The Groups Migration API allows domain administrators to archive emails into Google groups.
groupssettings Manages permission levels and related settings of a group.
healthcare Manage, store, and access healthcare data in Google Cloud Platform.
homegraph
iam Manages identity and access control for Google Cloud resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. Enabling this API also enables the IAM Service Account Credentials API (iamcredentials.googleapis.com). However, disabling this API doesn't disable the IAM Service Account Credentials API.
iamcredentials Creates short-lived credentials for impersonating IAM service accounts. Disabling this API also disables the IAM API (iam.googleapis.com). However, enabling this API doesn't enable the IAM API.
iap Controls access to cloud applications running on Google Cloud Platform.
identitytoolkit Help the third party sites to implement federated login.
ids Cloud IDS (Cloud Intrusion Detection System) detects malware, spyware, command-and-control attacks, and other network-based threats. Its security efficacy is industry leading, built with Palo Alto Networks technologies. When you use this product, your organization name and consumption levels will be shared with Palo Alto Networks.
indexing Notifies Google Web Search when your web pages change.
integrations
jobs Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters.
keep The Google Keep API is used in an enterprise environment to manage Google Keep content and resolve issues identified by cloud security software.
kgsearch Searches the Google Knowledge Graph for entities.
kmsinventory
language Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers.
libraryagent A simple Google Example Library API.
licensing The Google Enterprise License Manager API lets you manage Google Workspace and related licenses for all users of a customer that you manage.
lifesciences Cloud Life Sciences is a suite of services and tools for managing, processing, and transforming life sciences data.
localservices
logging Writes log entries and manages your Cloud Logging configuration.
looker
managedidentities The Managed Service for Microsoft Active Directory API is used for managing a highly available, hardened service running Microsoft Active Directory (AD).
manufacturers Public API for managing Manufacturer Center related data.
marketingplatformadmin The Google Marketing Platform Admin API allows for programmatic access to the Google Marketing Platform configuration data. You can use the Google Marketing Platform Admin API to manage links between your Google Marketing Platform organization and Google Analytics accounts, and to set the service level of your GA4 properties.
meet Create and manage meetings in Google Meet.
memcache Google Cloud Memorystore for Memcached API is used for creating and managing Memcached instances in GCP.
merchantapi Programmatically manage your Merchant Center Accounts.
metastore The Dataproc Metastore API is used to manage the lifecycle and configuration of metastore services.
migrationcenter A unified platform that helps you accelerate your end-to-end cloud journey from your current on-premises or cloud environments to Google Cloud.
ml An API to enable creating and using machine learning models.
mybusinessaccountmanagement The My Business Account Management API provides an interface for managing access to a location on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access.
mybusinessbusinessinformation The My Business Business Information API provides an interface for managing business information. Note - If you have a quota of 0 after enabling the API, please request for GBP API access.
mybusinesslodging The My Business Lodging API enables managing lodging business information on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access.
mybusinessnotifications The My Business Notification Settings API enables managing notification settings for business accounts. Note - If you have a quota of 0 after enabling the API, please request for GBP API access.
mybusinessplaceactions The My Business Place Actions API provides an interface for managing place action links of a location on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access.
mybusinessqanda The My Business Q&A API allows questions and answers to be posted for specific listings. Note - If you have a quota of 0 after enabling the API, please request for GBP API access.
mybusinessverifications The My Business Verifications API provides an interface for taking verifications related actions for locations.
netapp Google Cloud NetApp Volumes is a fully-managed, cloud-based data storage service that provides advanced data management capabilities and highly scalable performance with global availability.
networkconnectivity This API enables connectivity with and between Google Cloud resources.
networkmanagement The Network Management API provides a collection of network performance monitoring and diagnostic capabilities.
networksecurity
networkservices
notebooks Notebooks API is used to manage notebook resources in Google Cloud.
oauth2 Obtains end-user authorization grants for use with other Google APIs.
ondemandscanning A service to scan container images for vulnerabilities.
oracledatabase The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases.
orgpolicy The Organization Policy API allows users to configure governance rules on their Google Cloud resources across the resource hierarchy.
osconfig OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances.
oslogin You can use OS Login to manage access to your VM instances using IAM roles.
pagespeedonline The PageSpeed Insights API lets you analyze the performance of your website with a simple API. It offers tailored suggestions for how you can optimize your site, and lets you easily integrate PageSpeed Insights analysis into your development tools and workflow.
paymentsresellersubscription
people Provides access to information about profiles and contacts.
places
playcustomapp API to create and publish custom Android apps
playdeveloperreporting
playgrouping playgrouping.googleapis.com API.
playintegrity The Play Integrity API helps you check that you're interacting with your genuine app on a genuine Android device powered by Google Play services. The Play Integrity API has replaced SafetyNet Attestation and Android Device Verification.
policyanalyzer
policysimulator Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. A Replay is a type of simulation that lets you see how your members' access to resources might change if you changed your IAM policy. During a Replay, Policy Simulator re-evaluates, or replays, past access attempts under both the current policy and your proposed policy, and compares those results to determine how your members' access might change under the proposed policy.
policytroubleshooter
pollen The Pollen API.
privateca The Certificate Authority Service API is a highly-available, scalable service that enables you to simplify and automate the management of private certificate authorities (CAs) while staying in control of your private keys.
prod_tt_sasportal
publicca The Public Certificate Authority API may be used to create and manage ACME external account binding keys associated with Google Trust Services' publicly trusted certificate authority.
pubsublite
rapidmigrationassessment The Rapid Migration Assessment service is our first-party migration assessment and planning tool.
readerrevenuesubscriptionlinking readerrevenuesubscriptionlinking.googleapis.com API.
realtimebidding Allows external bidders to manage their RTB integration with Google. This includes managing bidder endpoints, QPS quotas, configuring what ad inventory to receive via pretargeting, submitting creatives for verification, and accessing creative metadata such as approval status.
recaptchaenterprise Help protect your website from fraudulent activity, spam, and abuse without creating friction.
recommendationengine Note that we now highly recommend new customers to use Retail API, which incorporates the GA version of the Recommendations AI funtionalities. To enable Retail API, please visit https://console.cloud.google.com/apis/library/retail.googleapis.com. The Recommendations AI service enables customers to build end-to-end personalized recommendation systems without requiring a high level of expertise in machine learning, recommendation system, or Google Cloud.
recommender
redis Creates and manages Redis instances on the Google Cloud Platform.
reseller Perform common functions that are available on the Channel Services console at scale, like placing orders and viewing customer information
resourcesettings The Resource Settings API allows users to control and modify the behavior of their GCP resources (e.g., VM, firewall, Project, etc.) across the Cloud Resource Hierarchy.
retail Vertex AI Search for Retail API is made up of Retail Search, Browse and Recommendations. These discovery AI solutions help you implement personalized search, browse and recommendations, based on machine learning models, across your websites and mobile applications.
run Deploy and manage user provided container images that scale automatically based on incoming requests. The Cloud Run Admin API v1 follows the Knative Serving API specification, while v2 is aligned with Google Cloud AIP-based API standards, as described in https://google.aip.dev/.
runtimeconfig 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.
safebrowsing Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. The Safe Browsing APIs are for non-commercial use only. If you need to use APIs to detect malicious URLs for commercial purposes – meaning “for sale or revenue-generating purposes” – please refer to the Web Risk API.
sasportal
script Manages and executes Google Apps Script projects.
searchads360 The Search Ads 360 API allows developers to automate downloading reports from Search Ads 360.
searchconsole The Search Console API provides access to both Search Console data (verified users only) and to public information on an URL basis (anyone)
secretmanager Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security.
securitycenter Security Command Center API provides access to temporal views of assets and findings within an organization.
servicecontrol Provides admission control and telemetry reporting for services integrated with Service Infrastructure.
servicedirectory Service Directory is a platform for discovering, publishing, and connecting services.
sheets Reads and writes Google Sheets.
siteVerification Verifies ownership of websites or domains with Google.
smartdevicemanagement Allow select enterprise partners to access, control, and manage Google and Nest devices programmatically.
solar Solar API.
spanner Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service.
speech Converts audio to text by applying powerful neural network models.
sqladmin API for Cloud SQL database instance management
storage Stores and retrieves potentially large, immutable data objects.
storagetransfer Transfers data from external data sources to a Google Cloud Storage bucket or between Google Cloud Storage buckets.
streetviewpublish Publishes 360 photos to Google Maps, along with position, orientation, and connectivity metadata. Apps can offer an interface for positioning, connecting, and uploading user-generated Street View images.
sts The Security Token Service exchanges Google or third-party credentials for a short-lived access token to Google Cloud resources.
tagmanager This API allows clients to access and modify container and tag configuration.
tasks The Google Tasks API lets you manage your tasks and task lists.
testing Allows developers to run automated tests for their mobile applications on Google infrastructure.
texttospeech Synthesizes natural-sounding speech by applying powerful neural network models.
toolresults API to publish and access results from developer tools.
tpu TPU API provides customers with access to Google TPU technology.
trafficdirector
transcoder This API converts video files into formats suitable for consumer distribution. For more information, see the Transcoder API overview.
travelimpactmodel Travel Impact Model API lets you query travel carbon emission estimates.
vault Retention and eDiscovery for Google Workspace. To work with Vault resources, the account must have the required Vault privileges and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the View All Matters privilege. For example, to download an export, an account needs the Manage Exports privilege and the matter shared with them.
verifiedaccess API for Verified Access chrome extension to provide credential verification for chrome devices connecting to an enterprise network
versionhistory Version History API - Prod
videointelligence Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API.
vision Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.
vmmigration Use the Migrate to Virtual Machines API to programmatically migrate workloads.
vmwareengine The Google VMware Engine API lets you programmatically manage VMware environments.
vpcaccess API for managing VPC access connectors.
walletobjects API for issuers to save and manage Google Wallet Objects.
webfonts The Google Web Fonts Developer API lets you retrieve information about web fonts served by Google.
webrisk
websecurityscanner Scans your Compute and App Engine apps for common web vulnerabilities.
workflowexecutions Execute workflows created with Workflows API.
workflows Manage workflow definitions. To execute workflows and manage executions, see the Workflows Executions API.
workloadmanager Workload Manager is a service that provides tooling for enterprise workloads to automate the deployment and validation of your workloads against best practices and recommendations.
workspaceevents The Google Workspace Events API lets you subscribe to events and manage change notifications across Google Workspace applications.
workstations Allows administrators to create managed developer environments in the cloud.
youtube The YouTube Data API v3 is an API that provides access to YouTube data, such as videos, playlists, and channels.
youtubeAnalytics Retrieves your YouTube Analytics data.
youtubereporting Schedules reporting jobs containing your YouTube Analytics data and downloads the resulting bulk data reports in the form of CSV files.

Packages:

Each SDK is provided as a separate package. To compose the package name replace XXXXX with the name from the API list above.

libraryDependencies += "com.boresjo" %% "play-google-XXXXX-api" % "0.1.0",

Example:

/** import common package */
import com.boresjo.play.api.*
/** import the package for the google API, in this case tasks */
import com.boresjo.play.api.google.tasks

/** A simple controller example */
class MyController @Inject()(val controllerComponents: ControllerComponents, oauth2: OAuth2Client, tasksApi: tasks.Api) extends BaseController {

  /** this method redirects to the google oauth2 login & authorisation page */ 
  def index() = Action { implicit request: Request[AnyContent] =>
    oauth2.accessRequest(tasksApi.scopes*)("/oauth2-callback")
  }

  /** handles the callback from the google and converts the supplied code into an OAuth2 token */
  def oauth2callback(code: String, scope: String) = Action.async { implicit request: Request[AnyContent] =>
    oauth2.requestToken(code)("/oauth2-callback").map { (token: OAuth2Token) =>
      import OAuth2Token.given
      TemporaryRedirect("http://localhost:9000/ok").withSession("google" -> Json.stringify(Json.toJson(token)))
    }
  }

  /** a simple example of how to use the google tasks API */
  def ok = Action.async { implicit request: Request[AnyContent] =>
    request.session.get("google").map { token =>
      val tokenRepository = oauth2.SimpleTokenRepository(OAuth2Token(token))
      given RequestSigner = new DefaultRequestSigner(tokenRepository)

      for (
        text <- tasksApi.tasklists.list().map { taskLists =>
          taskLists.items.get.map(i => s"${i.id}: ${i.title}").mkString("\n")
        };
        nextToken <- tokenRepository.getCurrent()
      ) yield {
        Ok(text).withSession("google" -> Json.stringify(Json.toJson(nextToken)))
      }
    }.getOrElse {
      Future.successful(Unauthorized("No token"))
    }
  }
}

About

A comprehensive suite of Google SDKs that are idiomatically clean Scala 3 for Play Framework applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages