1.0.1 • Published 6 months ago

@cloudbourn/scheduler-sdk v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@cloudbourn/scheduler-sdk

Create and manage jobs in a Cloudbourn Scheduler such as lingering.io

npm version Issues

Usage

const { setAuthorization, jobs } = require('@cloudbourn/scheduler-sdk')

setAuthorization('my-api-key')

const storedJob = await jobs.add({
  endpoint: 'https://webhook.site/abc-123-def-456',
  method: 'POST',
  body: {
    test: 'yes'
  },
  scheduleAt: new Date().toJSON()
})

The HTTP client defaults to communicating with https://api.lingering.io. To override:

const { setBaseUrl } = require('@cloudbourn/scheduler-sdk')

setBaseUrl('http://example.com/scheduler-api')
1.0.1

6 months ago

1.0.0

1 year ago