This page shows how to get started with the Cloud Client Libraries for the Advisory Notifications API. Read more about the client libraries for Cloud APIs, including the older Google API Client Libraries, in Client Libraries Explained.
Install the client library
For more information, see Setting Up a C# Development Environment.If you are using Visual Studio 2017 or higher, open nuget package manager window and type the following:
If you are using .NET Core command-line interface tools to install your dependencies, run the following command:
dotnet add package Google.Cloud.AdvisoryNotifications.V1
For more information, see Setting Up a Go Development Environment.
go get cloud.google.com/go/advisorynotifications
For more information, see Setting Up a Java Development Environment.If you are using Maven, add this to your pom.xml file:
<dependency> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-advisorynotifications</artifactId> <version>0.2.0</version> </dependency>
If you are using Gradle, add this to your dependencies:
compile group: 'com.google.cloud', name: 'google-cloud-advisorynotifications', version: '0.2.0'
If you are using SBT, add this to your dependencies:
libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.2.0"
For more information, see Setting Up a Node.js Development Environment.
npm i @google-cloud/advisorynotifications
For more information, see Using PHP on Google Cloud.
composer require google/cloud-advisorynotifications
For more information, see Setting Up a Python Development Environment.
pip install google-cloud-advisorynotifications
For more information, see Setting Up a Ruby Development Environment.
gem install google-cloud-advisory_notifications-v1
Set up authentication
When you use client libraries, you use Application Default Credentials (ADC) to authenticate. For information about setting up ADC, see Provide credentials for Application Default Credentials. For information about using ADC with client libraries, see Authenticate using client libraries.