feat: Make notifier and program async
Using asyncio library, notification are now trigerred asynchronously.
This commit is contained in:
72
docs/waiting_list.json
Normal file
72
docs/waiting_list.json
Normal file
@@ -0,0 +1,72 @@
|
||||
curl 'https://sport.nubapp.com/api/v4/activities/activity-calendar/19291431/basicInfo?app_version=5.09.21^&id_application=81560887' \
|
||||
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0' \
|
||||
-H 'Accept: application/json, text/plain, */*' \
|
||||
-H 'Accept-Language: en-GB,en;q=0.8,fr-FR;q=0.5,fr;q=0.3' \
|
||||
-H 'Accept-Encoding: gzip, deflate, br, zstd' \
|
||||
-H 'Referer: https://box.resawod.com/' \
|
||||
-H 'Content-Type: application/x-www-form-urlencoded' \
|
||||
-H 'Nubapp-Origin: user_apps' \
|
||||
-H 'Origin: https://box.resawod.com' \
|
||||
-H 'Sec-GPC: 1' \
|
||||
-H 'Connection: keep-alive' \
|
||||
-H 'Sec-Fetch-Dest: empty' \
|
||||
-H 'Sec-Fetch-Mode: cors' \
|
||||
-H 'Sec-Fetch-Site: cross-site' \
|
||||
-H 'Priority: u=0' \
|
||||
-H 'TE: trailers'
|
||||
|
||||
{
|
||||
"message": "All right! Here is your data.",
|
||||
"data": {
|
||||
"activity_calendar": {
|
||||
"id_activity_calendar": 19291431,
|
||||
"name_activity": "CONDITIONING LOUVRE 3",
|
||||
"description": "\\u003Cp\\u003EWod Condi, de la simplicit\\u00e9 mais beaucoup d\\u0027intensit\\u00e9... des erg mais pas seulement, des mouvements de CrossFit qui vous permettrons d\\u0027am\\u00e9liorer vos capacit\\u00e9s a\\u00e9robies\\u003C\\/p\\u003E",
|
||||
"id_activity": 43932,
|
||||
"id_category_activity": 677,
|
||||
"start_timestamp": "2025-07-23 18:30:00",
|
||||
"end_timestamp": "2025-07-23 19:15:00",
|
||||
"n_inscribed": 12,
|
||||
"n_capacity": 12,
|
||||
"n_waiting_list": 3,
|
||||
"n_capacity_waiting_list": 8,
|
||||
"id_trainer": null,
|
||||
"is_course": false,
|
||||
"cancelled": false,
|
||||
"guest_info": {
|
||||
"can_join": true,
|
||||
"available_booking_options": [],
|
||||
"errors": 0,
|
||||
"errors_by_memberships": [],
|
||||
"join_as_normal_user": false,
|
||||
"vouchers": [],
|
||||
"voucher_autopay": false,
|
||||
"unableToBookUntilDate": null,
|
||||
"unableToBookUntilTime": null,
|
||||
"best_booking_option": {
|
||||
"type": 2,
|
||||
"price": 0,
|
||||
"membershipId": null,
|
||||
"discountId": null,
|
||||
"discountValue": null
|
||||
},
|
||||
"price": 0,
|
||||
"price_befdis": 0,
|
||||
"user_attending": false,
|
||||
"user_waiting": false
|
||||
},
|
||||
"facilities": [],
|
||||
"image": null,
|
||||
"color": "#a74cd6",
|
||||
"max_guests": 0,
|
||||
"guest_prices": {
|
||||
"1": 0,
|
||||
"2": 0,
|
||||
"3": 0
|
||||
},
|
||||
"id_language": null
|
||||
}
|
||||
},
|
||||
"success": true,
|
||||
"status": 200
|
||||
}
|
||||
Reference in New Issue
Block a user