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.

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.

FieldMeaning
id, name, firstName, lastNamewho they are (firstName, lastName may be null)
pictureUrltheir picture, or null
email, phonestheir contact details (email may be null; phones may be empty)
dateOfBirth, age, genderYYYY-MM-DD, whole years, male or female; each may be null
handicap, cardNumberas held by the club, or null
nonPlayingtrue for a non-playing member
rolesofficer 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:

FieldMeaning
kindfixture (a fixture or club event) or away (a period the member marked as away)
start, endISO date-times in UTC. end is for an away period and null for a fixture
fixturethe fixture, as in Fixtures; null for away
methe member's own status on that fixture; null for away

The me status:

FieldMeaning
availablethey marked themselves available
withdrawnthey withdrew
selectedselected. Only true once the teamsheet is published
confirmedwhether they confirmed the selection; null when not selected
reserveselected as a reserve
position, positionName1 to 4 and its name, such as Skip; null when not selected
rinkthe 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.