node-shiki

1.0.2 • Public • Published

node-shiki

API wrapper for the Shikimori.one.

NPM

npm i node-shiki

Example usage

const Shikimori = require('node-shiki')

const shiki = new Shikimori({
  appName: 'APPLICATION_NAME', // Default value 'null'
  token: 'ACCESS_TOKEN', // Default value 'null'
  ver2: false // Default value 'true'
})

shiki.setOptions({ apiUrl: 'API_URL' }) // Default value 'https://shikimori.one/api'

async function run() {
  const res = await shiki.post('users/:topic_id/ignore', { // Request to https://shikimori.one/api/v2/users/82468/ignore
    topic_id: 82468,
    ver2: true // Set this paramete for v2 API
  })

  console.log(res)
}

run().catch(console.error)

Package Sidebar

Install

npm i node-shiki

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

5 kB

Total Files

7

Last publish

Collaborators

  • dddoogg226