@dokoo/content-api
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

sdk-js

Installation

yarn add @dokoo/sdk-js

Usage

import { Client } from '@dokoo/sdk-js'

const main = async () => {
  const client = new Client({
    token: 'xxx',
    spaceId: 'xxx'
  })

  const feed = client.feeds.getFeed('<feed-id>')
  const { hits } = await feed.get()
  // Do something with hits
  console.log(hits)
}

main()

Readme

Keywords

none

Package Sidebar

Install

npm i @dokoo/content-api

Weekly Downloads

1

Version

0.0.11

License

MIT

Unpacked Size

21.3 kB

Total Files

19

Last publish

Collaborators

  • dokoo