GET /v2/lodgings/{id}/icalendar
Returns icalendar of all unavailable stays of specified lodging.
Resource information
Authentication |
No |
Response Formats |
ics |
HTTP Method |
GET |
Response Object |
Calendar
|
API Version |
v2 |
Resource parameters
Query Parameter |
Type |
Cached Query |
Mandatory |
Description |
limit |
String
|
No (queries are slower with this parameter than without, use it with caution) |
No |
Only unavailabilities whose arrival day is before or equal to this day will be returned (format:
"YYYYMMDD") |
duration |
list<String>
|
No (queries are slower with this parameter than without, use it with caution) |
No |
List of desired duration. Only unavailabilities whose stay duration is in list will be returned |
Example Request
https://api.poplidays.com/v2/lodgings/886/icalendar
Example Response
ics
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
PRODID:-//Poplidays.com//EN
BEGIN:VEVENT
UID:6b988dde-b04e-4e0c-9748-43134a38d8bd
DTSTAMP:20140522T065458Z
DTSTART:20140718T210000Z
DTEND:20140725T210000Z
SUMMARY:RESERVED
END:VEVENT
END:VCALENDAR