1.0.0-alpha.6 • Published 3 years ago

@guching/admin-api v1.0.0-alpha.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Installation

npm install @halo-dev/admin-api --save

Usage

Here is a simple code for obtaining a list of articles.

import { AdminApiClient, HaloRestAPIClient } from "@halo-dev/admin-api";
// http request tool for halo rest api.
const haloRestApiClient = new HaloRestAPIClient({
  baseUrl: process.env.HALO_BASE_URL,
  auth: { adminToken: "halo admin token" },
});
// create adminApiClient by haloRestApiCLient.
const haloAdminClient = new AdminApiClient(haloRestApiClient);
// obtaining a list of articles.
haloAdminClient.post.list().then((res) => {
  console.log(res);
});

Specific use example reference example

License

MIT license

1.0.0-alpha.6

3 years ago

1.0.13

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.12

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago