0.0.1 • Published 2 years ago

@open-pcot/open-pcot-api v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

open-pcot-api

Javascript API Client for Planning Center Online

Documentation

Definitely still a work-in-progress, but you can view the generated JSDoc Documentation here: open-pcot-api Documentation

Test Example

const { Client } = require("open-pcot-api");

(async () => {
	// To log in with a Personal Access Token
	const accessTokenConfig = {
		clientID: "",
		clientSecret: "",
	};
	const client = await new Client().login("accessToken", accessTokenConfig);

	// To log in with an oAuth Token
	const oAuthConfig = {
		oAuthCode: "",
		clientID: "",
		clientSecret: "",
		redirectURI: "",
		refreshToken: "",
	};
	const client = await new Client().login("oAuth", oAuthConfig);
})();