dd-weblib

1.0.2 • Public • Published

Daydream Web Integration Library

API

const DDWL = require("dd-weblib")  
const events = new DDWL(baseurl, password)

// Push an event
events.push("COMMAND", "dd-help").then(() => {
    console.log("Pushed an event.")
}).catch(e => {
    console.error(e)
})

// Get all events
events.getAll().then(events => {
    console.log("Events:", events)
}).catch(e => {
    console.error(e)
})

Readme

Keywords

Package Sidebar

Install

npm i dd-weblib

Weekly Downloads

3

Version

1.0.2

License

BSL-1.0

Unpacked Size

84 kB

Total Files

6

Last publish

Collaborators

  • sp46