bc-users

Retrieves users of a club where members are managed via British Cycling’s Club Manager tool.

Installation

npm install @timcoates/bc-users

Prerequisites

You need the following details to use this package:

NB: The membership number must have access to the Club Membership details here: https://www.britishcycling.org.uk/dashboard/club/membership?club_id= (Club ID goes here).

Useful links

Documentation

British Cycling website

Git Repo

Issues

Usage

Installation

npm install @timcoates/bc-users

Use

let BCClient = require("@timcoates/bc-users");

let logging = true;  // Optional. Defaults to no logging.
let client = new BCClient([username], [password], logging);
let result = await client.authenticate();

if(result) {
	let people: structures.bcPerson[] = await client.getMembers([BC_CLUBID]);
	// people is now an array of the club members' details.
}