/oci

Package for interfacing with Owncast API

Primary LanguageJavaScript

oci.js

Package for interfacing with the Owncast APIs.

Install

Node

$ npm install oci.js
const oci = require('oci.js');

const client = new oci.Client({
    AccessToken: YOUR_ACCESS_TOKEN,
    StreamKey: YOUR_STREAM_KEY,
    OwncastUrl: YOUR_STREAM_URL,
    BotUsername: YOUR_BOTS_NAME
});

client.getChatMessages(res => {
    console.log(res);
});