Skip to content

TimCoates/bc-users

Repository files navigation

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:

  • A British Cycling Membership number.
  • The password for that Membership number, used to log in here.
  • The Club ID, as found when searching for the club here.

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.
}

About

Repo for an npm package to retrieve users of a club where members are managed via British Cycling's Club Manager tool.

Resources

License

Stars

Watchers

Forks

Packages

No packages published