Members
Two operations return the signed-in member's own data. Both need your key and a member
token from the login. They belong to the members group.
- A member can never read another member's record or calendar: the token decides who is asked about.
- Responses carry
Cache-Control: private, no-store. Do not cache them in a shared place. - A member can also mark their availability and read published teamsheets: see Selection.
- A valid login of someone who is not a member of the club answers
403 not_a_member. A missing or bad token answers401 member_token_requiredor401 member_token_invalid.
getMe
GET /v1/clubs/{clubId}/me, or lb.getMe(clubId). The caller's own record, including their own contact
details. It is read-only: members change their details on the lovebowls site.
| Field | Meaning |
|---|---|
id, name, firstName, lastName | who they are (firstName, lastName may be null) |
pictureUrl | their picture, or null |
email, phones | their contact details (email may be null; phones may be empty) |
dateOfBirth, age, gender | YYYY-MM-DD, whole years, male or female; each may be null |
handicap, cardNumber | as held by the club, or null |
nonPlaying | true for a non-playing member |
roles | officer roles in this club: fixtureSecretary, selector, admin, secretary, eventsManager. Empty for an ordinary member. New values may be added |
const me = await lb.getMe("CLUB_ID");
console.log(me.name, me.roles.includes("selector") ? "(selector)" : "");
getMyCalendar
GET /v1/clubs/{clubId}/me/calendar?from=&to=, or lb.getMyCalendar(clubId, { from?, to? }). The
member's own calendar, as on the lovebowls site: the fixtures they marked themselves available for, were
selected for or withdrew from, every club event, and their away periods. Ordered by start, not paged.
Range. from (inclusive) and to (exclusive) go together or not at all. With neither you get the
club's current season. A range may not exceed 400 days; otherwise 400 invalid_request.
Each item:
| Field | Meaning |
|---|---|
kind | fixture (a fixture or club event) or away (a period the member marked as away) |
start, end | ISO date-times in UTC. end is for an away period and null for a fixture |
fixture | the fixture, as in Fixtures; null for away |
me | the member's own status on that fixture; null for away |
The me status:
| Field | Meaning |
|---|---|
available | they marked themselves available |
withdrawn | they withdrew |
selected | selected. Only true once the teamsheet is published |
confirmed | whether they confirmed the selection; null when not selected |
reserve | selected as a reserve |
position, positionName | 1 to 4 and its name, such as Skip; null when not selected |
rink | the rink or team, such as Team 2; null when not selected |
const { items } = await lb.getMyCalendar("CLUB_ID", { from: "2027-04-01", to: "2027-10-01" });
for (const e of items.filter((e) => e.kind === "fixture")) {
const s = e.me;
const text = s?.selected ? `selected, ${s.rink ?? ""} ${s.positionName ?? ""}` : s?.reserve ? "reserve" : s?.available ? "available" : "not marked";
console.log(e.start, e.fixture.opponent ?? e.fixture.eventName, text);
}
Ignore fields and enumeration values you do not know: the API only adds within v1.