Get user clubs

GET /1/users/{id}/clubs

Get user clubs

Path parameters

  • id string Required

    The user id.

Responses

GET /1/users/{id}/clubs
curl \
 --request GET 'https://api.localsporthero.com/1/users/{id}/clubs'
Response examples (200)
{
  "clubs": [
    {
      "id": "df2cd71c-d006-4a46-8e2a-d09503273f07",
      "name": "Arco's Angels",
      "summary": "Een leuke club helden op sokken bij elkaar.",
      "private": false,
      "headerUrl": "https://example.org/image.jpg",
      "membership": {
        "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
        "user": {
          "id": "1ab474d5-e1fa-4340-ba6a-5642e720ea6a",
          "nickname": "Stevertje",
          "fullName": "Stefan de Jong",
          "email": "stefandejong@gmail.com",
          "language": "nl",
          "startDate": "2022-05-02T11:00:00.000Z",
          "imageUrl": "https://example.org/image.jpg",
          "waitingListValue": 0,
          "notificationsEnabled": true,
          "notifyDaysBefore": [
            -1,
            1
          ],
          "private": false,
          "yourFriendship": {
            "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
            "status": "requested, accepted or blocked",
            "date": "2022-05-02T11:00:00.000Z",
            "muted": false
          },
          "theirFriendship": {
            "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
            "status": "requested, accepted or blocked",
            "date": "2022-05-02T11:00:00.000Z",
            "muted": false
          }
        },
        "role": "user or admin",
        "startDate": "2022-05-02T11:00:00.000Z"
      },
      "chatId": "df2cd71c-d006-4a46-8e2a-d09503273f05",
      "request": {
        "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
        "user": {
          "id": "1ab474d5-e1fa-4340-ba6a-5642e720ea6a",
          "nickname": "Stevertje",
          "fullName": "Stefan de Jong",
          "email": "stefandejong@gmail.com",
          "language": "nl",
          "startDate": "2022-05-02T11:00:00.000Z",
          "imageUrl": "https://example.org/image.jpg",
          "waitingListValue": 0,
          "notificationsEnabled": true,
          "notifyDaysBefore": [
            -1,
            1
          ],
          "private": false,
          "yourFriendship": {
            "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
            "status": "requested, accepted or blocked",
            "date": "2022-05-02T11:00:00.000Z",
            "muted": false
          },
          "theirFriendship": {
            "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
            "status": "requested, accepted or blocked",
            "date": "2022-05-02T11:00:00.000Z",
            "muted": false
          }
        },
        "clubId": "85362399-38e1-4255-87a0-f3f984ed16d9",
        "date": "2022-05-02T11:00:00.000Z"
      },
      "timeZoneId": "Europe/Amsterdam",
      "location": {
        "city": "Pijnacker",
        "countryCode": "NL",
        "latitude": 51.924419,
        "longitude": 4.477733
      }
    }
  ]
}