@distilled.cloud/slack
v1.0.0-rc.16
Published
Keywords
Readme
@distilled.cloud/slack
Effect-native SDK for slack.
Installation
npm install @distilled.cloud/slack effectQuick start
import { Effect, Layer } from "effect";
import * as FetchHttpClient from "effect/http/FetchHttpClient";
import * as Slack from "@distilled.cloud/slack";
const program = Effect.gen(function* () {
const result = yield* Slack.admin.listAppsActivities({});
return result;
});
const Live = Layer.mergeAll(
FetchHttpClient.layer,
Slack.CredentialsFromEnv,
Slack.SlackProtocol,
);
program.pipe(Effect.provide(Live), Effect.runPromise);Auth
Required: SLACK_BOT_TOKEN, SLACK_TOKEN. Optional: SLACK_API_URL. Sent as Authorization: Bearer.
