LUSU Api

This API is currently read only and you will need to login to access some functions

Please request a password from a.bardsley@lancaster.ac.uk

3.2.11

Core Methods

/core/members.json?q={NameSearch}
Returns any members matching {NameSearch} but returns a maximum of 3 records. If there is an @ it will search the email rather than name field
/core/member/{ID}.json
Returns details about a specific LUSU number
/core/groups.json
Returns all groups and basic information about them. Can be searched using param q (Case insensitive). You can provide a <em>page</em> and <em>page_size</em> to do pagination
/core/groups/{ID}.json
Returns a specific group and all of it's current members' IDs
/core/groups/{ID or IDs}/children.json
Returns a specific group or groups child groups e.g. 10,25 will return all clubs and all societies. Only 10,25 are public. You can provide a <em>page</em> and <em>page_size</em> to do pagination

HQ Methods

/hq/changes.json
Returns the last updated time for all HQ object types
/hq/events.json
Returns all future events and their categories grouped by date if ?grouped=true is passed or grouped by display date if ?grouped=pretty
/hq/events.ics
Returns all future events and their categories as an iCal file/stream
/hq/locations.json
Returns locations. You can pass ?has_offers=true and only get locations with offers. You can search with q={case insensitive search string}
/hq/locations/{ID}.json
Returns a single location
/hq/locations/top_picks.json
Returns locations that are currently top picks, a title, description and location to link to.
/hq/offers.json
Returns all currently promoted offers and their categories
/hq/offers/offer_of_the_week.json
Returns either the offer of the week or a random offer with title and description for the menu
/hq/categories.json
Returns all category, can be filtered using ?suitable_for=(events|locations)
/hq/categories/tree.json
Returns all categories is a tree,can be filtered using ?suitable_for=(events|locations)
/hq/categories/{category}/events.json
Returns all future events within this category. {category} can be an ID or the name
/hq/categories/{category}/locations.json
Returns all locations within this category. {category} can be an ID or the name
/hq/categories/{category}/offers.json
Returns all currently promoted offers within this category. {category} can be an ID or the name

BailriggFM Methods

/bailrigg_fm/memberships/groups.json
Returns the groups and details for all BailriggFM sections
/bailrigg_fm/memberships.json
Returns the last all current members, optional fields and subgroups