7.2 Получение актуальных экскурсий
В методе “Экскурсии и туры”
Добавили возможность получать экскурсии, которые нельзя забронировать:
https://experience.tripster.ru/api/partners/<partner_name>/experiences/unpublished/
Если использовать параметр updated_after, можно получить все экскурсии, которые сняли с публикации после определенной даты: https://experience.tripster.ru/api/partners/<partner_name>/experiences/unpublished/?updated_after=2024-07-29
Соответственно, чтобы получить актуальный список экскурсий, нужно исключать неактуальные экскурсии этим методом.
Пример ответа:
GET /api/partners/<partner_name>/experiences/unpublished/?updated_after=2024-07-29
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept
{
"count": 88,
"next": null,
"previous": null,
"results": [
{
"id": 68285,
"status": "inactive",
"dt_updated": "2024-07-30 11:21:22.909963+00:00"
},
{
"id": 68443,
"status": "inactive",
"dt_updated": "2024-07-30 10:41:27.069512+00:00"
},
{
"id": 68643,
"status": "inactive",
"dt_updated": "2024-07-30 09:31:06.590521+00:00"
},
{
"id": 55176,
"status": "inactive",
"dt_updated": "2024-07-30 09:25:31.980306+00:00"
},
{
"id": 68078,
"status": "inactive",
"dt_updated": "2024-07-30 09:20:37.012869+00:00"
},
{
"id": 68526,
"status": "inactive",
"dt_updated": "2024-07-30 09:07:20.068367+00:00"
},
{
"id": 66779,
"status": "inactive",
"dt_updated": "2024-07-30 08:34:59.155081+00:00"
},
{
"id": 43637,
"status": "inactive",
"dt_updated": "2024-07-30 08:15:48.605879+00:00"
},
{
"id": 43640,
"status": "inactive",
"dt_updated": "2024-07-30 08:15:15.893651+00:00"
},
{
"id": 47872,
"status": "inactive",
"dt_updated": "2024-07-30 08:14:54.865119+00:00"
},
{
"id": 47874,
"status": "inactive",
"dt_updated": "2024-07-30 08:14:16.294696+00:00"
},
{
"id": 47875,
"status": "inactive",
"dt_updated": "2024-07-30 08:13:46.791777+00:00"
},
{
"id": 48211,
"status": "inactive",
"dt_updated": "2024-07-30 08:13:17.935559+00:00"
},
{
"id": 47368,
"status": "inactive",
"dt_updated": "2024-07-30 08:08:00.716379+00:00"
},
{
"id": 36125,
"status": "inactive",
"dt_updated": "2024-07-30 07:47:07.286307+00:00"
},
{
"id": 67652,
"status": "inactive",
"dt_updated": "2024-07-30 07:42:24.747770+00:00"
},
{
"id": 68641,
"status": "inactive",
"dt_updated": "2024-07-30 07:27:48.570905+00:00"
},
{
"id": 15120,
"status": "inactive",
"dt_updated": "2024-07-30 07:22:11.613554+00:00"
},
{
"id": 9332,
"status": "inactive",
"dt_updated": "2024-07-30 07:22:00.762280+00:00"
},
{
"id": 19004,
"status": "inactive",
"dt_updated": "2024-07-30 07:20:44.977958+00:00"
},
{
"id": 45277,
"status": "inactive",
"dt_updated": "2024-07-30 07:20:09.254732+00:00"
},
{
"id": 68622,
"status": "inactive",
"dt_updated": "2024-07-30 07:19:54.869154+00:00"
},
{
"id": 15015,
"status": "inactive",
"dt_updated": "2024-07-30 07:09:51.662093+00:00"
},
{
"id": 68630,
"status": "inactive",
"dt_updated": "2024-07-30 07:09:02.780376+00:00"
},
{
"id": 20888,
"status": "inactive",
"dt_updated": "2024-07-30 06:25:03.068489+00:00"
},
{
"id": 20161,
"status": "inactive",
"dt_updated": "2024-07-30 04:20:29.276430+00:00"
},
{
"id": 63176,
"status": "inactive",
"dt_updated": "2024-07-30 04:07:19.263473+00:00"
},
{
"id": 63275,
"status": "inactive",
"dt_updated": "2024-07-30 03:52:01.987492+00:00"
},
{
"id": 63277,
"status": "inactive",
"dt_updated": "2024-07-30 03:51:33.898912+00:00"
},
{
"id": 68631,
"status": "inactive",
"dt_updated": "2024-07-30 02:10:44.047416+00:00"
},
{
"id": 16095,
"status": "inactive",
"dt_updated": "2024-07-30 00:22:19.780554+00:00"
},
{
"id": 68628,
"status": "inactive",
"dt_updated": "2024-07-29 23:49:45.869173+00:00"
},
{
"id": 68627,
"status": "inactive",
"dt_updated": "2024-07-29 23:43:04.284507+00:00"
},
{
"id": 68620,
"status": "inactive",
"dt_updated": "2024-07-29 19:54:07.923298+00:00"
},
{
"id": 6192,
"status": "inactive",
"dt_updated": "2024-07-29 19:24:33.603597+00:00"
},
{
"id": 68589,
"status": "inactive",
"dt_updated": "2024-07-29 18:58:50.432419+00:00"
},
{
"id": 68613,
"status": "inactive",
"dt_updated": "2024-07-29 16:55:45.413822+00:00"
},
{
"id": 68618,
"status": "inactive",
"dt_updated": "2024-07-29 16:53:40.135729+00:00"
},
{
"id": 68615,
"status": "inactive",
"dt_updated": "2024-07-29 16:29:04.489382+00:00"
},
{
"id": 13953,
"status": "inactive",
"dt_updated": "2024-07-29 16:10:36.756012+00:00"
},
{
"id": 45527,
"status": "inactive",
"dt_updated": "2024-07-29 15:32:25.597912+00:00"
},
{
"id": 68600,
"status": "inactive",
"dt_updated": "2024-07-29 15:28:08.501979+00:00"
},
{
"id": 68608,
"status": "inactive",
"dt_updated": "2024-07-29 15:27:44.991113+00:00"
},
{
"id": 66604,
"status": "inactive",
"dt_updated": "2024-07-29 15:26:46.612468+00:00"
},
{
"id": 68550,
"status": "inactive",
"dt_updated": "2024-07-29 15:25:19.208617+00:00"
},
{
"id": 59993,
"status": "inactive",
"dt_updated": "2024-07-29 15:14:41.592198+00:00"
},
{
"id": 58445,
"status": "inactive",
"dt_updated": "2024-07-29 15:04:21.796234+00:00"
},
{
"id": 68605,
"status": "inactive",
"dt_updated": "2024-07-29 14:20:06.217666+00:00"
},
{
"id": 25001,
"status": "inactive",
"dt_updated": "2024-07-29 13:47:02.101188+00:00"
},
{
"id": 16531,
"status": "inactive",
"dt_updated": "2024-07-29 13:29:15.504717+00:00"
},
{
"id": 32098,
"status": "inactive",
"dt_updated": "2024-07-29 13:22:18.585130+00:00"
},
{
"id": 66393,
"status": "inactive",
"dt_updated": "2024-07-29 13:17:36.986437+00:00"
},
{
"id": 66628,
"status": "inactive",
"dt_updated": "2024-07-29 13:17:15.747743+00:00"
},
{
"id": 68357,
"status": "inactive",
"dt_updated": "2024-07-29 12:48:31.774561+00:00"
},
{
"id": 25715,
"status": "inactive",
"dt_updated": "2024-07-29 12:24:40.436832+00:00"
},
{
"id": 66770,
"status": "inactive",
"dt_updated": "2024-07-29 11:58:07.329404+00:00"
},
{
"id": 66943,
"status": "inactive",
"dt_updated": "2024-07-29 11:29:28.202096+00:00"
},
{
"id": 27772,
"status": "inactive",
"dt_updated": "2024-07-29 11:29:02.726751+00:00"
},
{
"id": 33112,
"status": "inactive",
"dt_updated": "2024-07-29 11:26:35.126770+00:00"
},
{
"id": 68579,
"status": "inactive",
"dt_updated": "2024-07-29 11:22:45.286009+00:00"
},
{
"id": 41752,
"status": "inactive",
"dt_updated": "2024-07-29 11:13:18.906888+00:00"
},
{
"id": 38561,
"status": "inactive",
"dt_updated": "2024-07-29 11:12:44.252236+00:00"
},
{
"id": 68595,
"status": "inactive",
"dt_updated": "2024-07-29 10:55:41.367439+00:00"
},
{
"id": 68004,
"status": "inactive",
"dt_updated": "2024-07-29 10:53:52.736552+00:00"
},
{
"id": 68531,
"status": "inactive",
"dt_updated": "2024-07-29 10:46:05.124160+00:00"
},
{
"id": 68591,
"status": "inactive",
"dt_updated": "2024-07-29 10:40:35.048963+00:00"
},
{
"id": 68587,
"status": "inactive",
"dt_updated": "2024-07-29 10:32:55.067580+00:00"
},
{
"id": 12251,
"status": "inactive",
"dt_updated": "2024-07-29 10:31:48.126347+00:00"
},
{
"id": 68590,
"status": "inactive",
"dt_updated": "2024-07-29 09:57:14.753567+00:00"
},
{
"id": 31724,
"status": "inactive",
"dt_updated": "2024-07-29 09:52:08.812175+00:00"
},
{
"id": 68582,
"status": "inactive",
"dt_updated": "2024-07-29 09:50:19.547599+00:00"
},
{
"id": 68584,
"status": "inactive",
"dt_updated": "2024-07-29 09:49:10.229050+00:00"
},
{
"id": 41530,
"status": "inactive",
"dt_updated": "2024-07-29 09:24:47.093238+00:00"
},
{
"id": 68565,
"status": "inactive",
"dt_updated": "2024-07-29 09:24:36.044973+00:00"
},
{
"id": 38357,
"status": "inactive",
"dt_updated": "2024-07-29 09:12:55.398447+00:00"
},
{
"id": 68574,
"status": "inactive",
"dt_updated": "2024-07-29 09:06:58.440885+00:00"
},
{
"id": 20144,
"status": "inactive",
"dt_updated": "2024-07-29 09:01:07.538691+00:00"
},
{
"id": 68577,
"status": "inactive",
"dt_updated": "2024-07-29 08:15:30.484014+00:00"
},
{
"id": 28531,
"status": "inactive",
"dt_updated": "2024-07-29 08:05:21.666938+00:00"
},
{
"id": 49595,
"status": "inactive",
"dt_updated": "2024-07-29 08:01:05.306918+00:00"
},
{
"id": 68572,
"status": "inactive",
"dt_updated": "2024-07-29 07:23:36.493902+00:00"
},
{
"id": 55664,
"status": "inactive",
"dt_updated": "2024-07-29 06:51:14.723661+00:00"
},
{
"id": 68562,
"status": "inactive",
"dt_updated": "2024-07-29 04:46:42.039586+00:00"
},
{
"id": 49994,
"status": "inactive",
"dt_updated": "2024-07-29 04:41:41.818938+00:00"
},
{
"id": 58190,
"status": "inactive",
"dt_updated": "2024-07-29 04:41:18.347590+00:00"
},
{
"id": 64321,
"status": "inactive",
"dt_updated": "2024-07-29 04:40:40.696773+00:00"
},
{
"id": 68523,
"status": "inactive",
"dt_updated": "2024-07-29 03:57:40.703786+00:00"
},
{
"id": 68561,
"status": "inactive",
"dt_updated": "2024-07-29 02:00:00.166896+00:00"
}
]
}