A data source for Courtbot that pulls data from a Courtbook instance.
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.
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>"
}
});