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

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.12

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago