Retrieves users of a club where members are managed via British Cycling’s Club Manager tool.
npm install @timcoates/bc-users
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).
npm install @timcoates/bc-users
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.
}