GET /v2/bookings/{id}/comm

Returns list of communications of specified booking. Body response contains data in the JSON or XML format.

Resource information

Authentication Yes
Response Formats xml, json
HTTP Method GET
Response Object List of all communication objects related to the booking
API Version v2

Example Request

https://api.poplidays.com/v2/bookings/123123/comm

Example Response

xml response body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<allcomm>
    <comm>
        <msg>some message to add</msg>
        <stamp>2013-12-10-14:57</stamp>
    </comm>
    <comm>
        <stamp>2013-12-06-16:40</stamp>
    </comm>
    <comm>
        <stamp>2013-12-06-16:25</stamp>
    </comm>
    <comm>
        <stamp>2013-12-06-16:24</stamp>
    </comm>
    <comm>
        <msg>fghdbncvbnvcvb</msg>
        <stamp>2013-12-06-14:45</stamp>
    </comm>
</allcomm>

json response body

{"allcomm": [
    {
        "msg": "new message",
        "stamp": "2013-12-10-17:19"
    },
    {
        "msg": "some message to add",
        "stamp": "2013-12-10-16:58"
    },
    {
        "msg": "some message to add",
        "stamp": "2013-12-10-16:16"
    },
    {
        "msg": "some message to add",
        "stamp": "2013-12-10-16:12"
    },
    {
        "msg": "some message to add",
        "stamp": "2013-12-10-16:07"
    },
    {
        "msg": "some message to add",
        "stamp": "2013-12-10-16:05"
    },
    {
        "msg": "some message to add",
        "stamp": "2013-12-10-15:02"
    }
]}