0.0.2 • Published 7 years ago

speechkit-state v0.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

speechkit-state Build Status

Check if the state of SpeechKit article has been processed

Install

$ yarn add speechkit-state

Usage

const speechkitState = require('speechkit-state')

await speechkitState(<token>, <newsSiteId>, <articleId>)
// => true

API

speechkitState(token, newsSiteId, articleId, options)

Returns a promise

token

Type: string Description: Your SpeechKit token Required

newsSiteId

Type: string Description: The id of your site you want to fetch all articles for. This can also be your news_sites external id Required

articleId

Type: string Description: The id of the article you want to request.

options

Type: object

pooling

Type: boolean Default: false

It will pool the API until it the article is processed

Related

License

MIT © Bu Kinoshita