User clubs
/users/{UserID}/clubs (Level 2)
GET
https://api.englandsquash.com/users/{UserID}/clubs
Requires Level 2 access. Returns a list of clubs linked to a specified user.
Path Parameters
Name
Type
Description
memberID
string
Specify the memberID of the user for which you want to see a list of associated clubs (exact match)
EnglandSquashID
string
Specify the EnglandSquashID of the user for which you want to see a list of associated clubs (exact match)
Headers
Name
Type
Description
APIToken
string
API key required to authenticate your request
{
"clubID": "CB02107",
"name": "Test Club",
"email": "[email protected]",
"phoneNumber": "0161 231 4499",
"countyID": "39",
"countyName": "Other",
"address1": "Rowsley Street",
"address2": "",
"town": "Manchester",
"postcode": "M11 3FF"
},
{
"clubID": " CB99999",
"name": "Another Test Club",
"email": "[email protected]",
"phoneNumber": "",
"countyID": "39",
"countyName": "Other",
"address1": "123 Main St",
"address2": "",
"town": "Preston",
"postcode": "PR999 1AB"
}
Note that a UserID must be specified within the path of the URI, but can be either EnglandSquashID or memberID
Last updated