Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 931 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 931 Bytes

courtbot-engine-data-courtbook Build Status

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>"
	}
});