New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@nineya/halo-admin-api

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nineya/halo-admin-api

Halo admin api client.

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

Admin API Client

npm version npm node-current NPM

JavaScript SDK for Halo's Admin API,implemented with TypeScript,encapsulating parameter types and return value types to make the use of API more brief.

Installation

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

Usage

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

import { AdminApiClient, HaloRestAPIClient } from '@nineya/halo-admin-api'

// http request tool for halo rest api.
const haloRestApiClient = new HaloRestAPIClient({
  baseUrl: process.env.HALO_BASE_URL,
})

// create adminApiClient by haloRestApiCLient.
const haloAdminClient = new AdminApiClient(haloRestApiClient)

// obtaining a list of articles.
haloAdminClient.post.list().then((res) => {
  console.log(res)
})

You can also view the complete implementation of the halo-admin project: @nineya/halo-admin.

License

MIT license

Keywords

halo

FAQs

Package last updated on 20 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts