@distilled.cloud/hostinger
v1.0.0-rc.17
Published
Keywords
Readme
@distilled.cloud/hostinger
Effect-native SDK for hostinger.
Installation
npm install @distilled.cloud/hostinger effectQuick start
import { Effect, Layer } from "effect";
import * as FetchHttpClient from "effect/http/FetchHttpClient";
import * as Hostinger from "@distilled.cloud/hostinger";
const program = Effect.gen(function* () {
const result = yield* Hostinger.domainsGetDomainListV1({});
return result;
});
const Live = Layer.mergeAll(
FetchHttpClient.layer,
Hostinger.CredentialsFromEnv,
Hostinger.HostingerProtocol,
);
program.pipe(Effect.provide(Live), Effect.runPromise);Auth
Required: HOSTINGER_API_KEY. Optional: HOSTINGER_API_BASE_URL. Sent as Authorization: Bearer.
