1.0.0-alpha.6 • Published 4 years ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
4 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

4 years ago

1.0.13

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.12

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago