@distilled.cloud/google-workspace
v1.0.0-rc.16
Published
Keywords
Readme
@distilled.cloud/google-workspace
Effect-native SDK for google-workspace.
Installation
npm install @distilled.cloud/google-workspace effectQuick start
import { Effect, Layer } from "effect";
import * as FetchHttpClient from "effect/http/FetchHttpClient";
import * as GoogleWorkspace from "@distilled.cloud/google-workspace";
const program = Effect.gen(function* () {
const result = yield* GoogleWorkspace.admin_reports_v1.listActivities({});
return result;
});
const Live = Layer.mergeAll(
FetchHttpClient.layer,
GoogleWorkspace.CredentialsFromEnv,
GoogleWorkspace.GoogleWorkspaceProtocol,
);
program.pipe(Effect.provide(Live), Effect.runPromise);Auth
Required: GOOGLE_ACCESS_TOKEN, GOOGLE_PROJECT_ID.
