0.0.11 • Published 3 years ago
@dokoo/content-api v0.0.11
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()