List of notification for this player
GET {{baseUrl}}/{{version}}/notifications/user/{{user_id}}
It returns the list of notifications associated with a player. On the TeamSportz platform, the player has the possibility of receiving notifications.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | A valid JWT token |
RESPONSES
status: OK
{"error":false,"code":200,"message":"The player latest 20 notifications","result":[{"notification_id":9712,"user_id":261894,"org_id":null,"team_id":501,"general_interest":null,"notification_title":"Test Game4","notification_body":"Please notify your availabity","notification_data":"{\"type\":\"event\",\"id\":3013,\"user\":{\"guest_id\":16201,\"team_id\":501,\"event_id\":3013,\"user_id\":261894,\"guest_attending\":null,\"profile_id\":261894,\"profile_first_name\":\"Ouakhila\",\"profile_last_name\":\"Torou\",\"profile_avatar\":\"https:\\/\\/files.teamsportz.app\\/avatars\\/261894_1692287433.jpeg\",\"profile_position\":null,\"profile_reg_number\":null,\"profile_role\":\"Player\",\"profile_number\":3,\"profile_reg_file\":null,\"team_name\":\"Nanri\",\"avg_rating\":\"3\"},\"data\":{\"team_id\":100,\"start_date\":\"2023-10-11T09:15:00.000000Z\",\"end_date\":\"2023-10-11T20:12:15.000000Z\",\"opponent\":\"The opponent name\",\"name\":\"Test Game4\",\"is_recurring\":0,\"recurring_info\":null,\"type\":\"Game\"}}","read_at":null,"deleted_at":null,"created_at":"2023-10-09T14:44:43.000000Z","updated_at":"2023-10-09T14:44:43.000000Z","pusher_notification_id":"pubid-63803f21-abee-4c70-a06d-8dd065d01f61","notification_type":"notifications","notification_type_id":3013,"from_user_id":null}]}