镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
enumcoPublic

About

enum TypeScript API Client

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

enum TypeScript API Client

TypeScript client for the enum API.

Installation

npm install @enumco/client

Usage

import { createClient } from "@enumco/client";

const client = createClient({ token: "your-api-token" });

const { users } = await client.users.listUsers({});
const { organization } = await client.organizations.getOrganization({ id: "org-123" });
const { project } = await client.projects.getProject({ id: "proj-456" });

Services

Property Service
client.users UserService
client.organizations OrganizationService
client.projects ProjectService
client.regions RegionService
client.dns DnsService
client.kubernetes.clusters KubernetesClusterService
client.storage.users ObjectStorageUserService
client.storage.accessKeys ObjectStorageAccessKeyService
client.storage.buckets ObjectStorageBucketService
client.storage.policies ObjectStorageUserPolicyService
client.serviceAccounts ServiceAccountService

Options

Option Description
token Bearer token for authentication
baseUrl Override the API endpoint (default: https://api.enum.co)

Documentation

See enum Docs.

License

Apache License 2.0

About

enum TypeScript API Client

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages