Google.Apps.Events.Subscriptions.V1
Google.Apps.Events.Subscriptions.V1
is a.NET client library for the Google Workspace Events API.
Note:
This documentation is for version 1.0.0-beta03
of the library.
Some samples may not work with other versions.
Installation
Install the Google.Apps.Events.Subscriptions.V1
package from NuGet. Add it to
your project in the normal way (for example by right-clicking on the
project in Visual Studio and choosing "Manage NuGet Packages...").
Please ensure you enable pre-release packages (for example, in the
Visual Studio NuGet user interface, check the "Include prerelease"
box). Some of the following samples might only work with the latest
pre-release version (1.0.0-beta03
) of Google.Apps.Events.Subscriptions.V1
.
Authentication
The Google Workspace Events API is intended to be used with user
credentials. Follow the OAuth2.0 guide for the .NET client
libraries
for more details on how to obtain a UserCredential
(specifying
appropriate scopes for the calls you wish to make) and then
construct the client using a builder to specify the credential:
var client = new SubscriptionsServiceClientBuilder
{
Credential = userCredential
}.Build();
Getting started
All operations are performed through SubscriptionsServiceClient.