courtbot-engine-data-courtbook
v1.1.4
Published
A data source for courtbot that pulls data from courtbook.
Downloads
7
Readme
courtbot-engine-data-courtbook
A data source for Courtbot that pulls data from a Courtbook instance.
Configuration
An environment variable must be defined with one or more API tokens. This token is used by a Courtbook instance to talk with a Courtbot instance.
Usage
From your instance of Courtbot, you just need to register this Courtbot extension with a few configuration settings:
import courtbookData from 'courtbot-engine-data-courtbook';
courtbookData({
courtbookUrl: "https://courtbook",
oauthConfig: {
tokenUrl: "https://oauth-provider/url",
audience: "https://oauth-provider/audience",
clientId: "<client_id>",
clientSecret: "<client_secret>"
}
});