@timcoates/bc-users
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @timcoates/bc-users

Weekly Downloads

3

Version

1.3.0

License

Apache-2.0

Unpacked Size

36 kB

Total Files

7

Last publish

Collaborators

  • timcoates