GET /shows/:id/chats

Get chat messages posted on a show.

This method returns messages paginated in groups of 50. Messages are returned in reverse chronological order.

Resource URL

https://api.chew.tv/v1/shows/:id/chats
Parameters Example
Required Parameters
:id

Parent show’s unique ID

58058

Response

Successful requests will return the following JSON structure:

Properties
page

Current page number

next_url

URL to next page of results (null if page > pages)

prev_url

URL to previous page of results (null if page is 1)

pages

Number of pages in the current result set

count

Number of messages in the current result set

chats

Array of Chats

Example data
{
  "page": 1,
  "next_url": null,
  "prev_url": null,
  "pages": 1,
  "count": 4,
  "chats": [
    {
      "id": 28520,
      "object_url": "http://api.chew.tv/v1/shows/57585/chats/28520",
      "message": "Great tunes, look forward to next live set ??",
      "position": "53939.00000",
      "created_at": "2015-11-27 10:59:54",
      "user": {
        "id": 27106,
        "url": "http://chew.tv/shelley-bates",
        "object_url": "http://api.chew.tv/v1/users/27106",
        "slug": "shelley-bates",
        "name": "Shelley Bates",
        "location": null,
        "description": null,
        "created_at": "2015-11-13 18:44:49",
        "dj": false,
        "producer": false,
        "featured": false,
        "radio": false,
        "image_url": "http://image.cdn.chew.tv/shelley-bates/shelley-bates.png?",
        "cover_url": "http://image.cdn.chew.tv/shelley-bates/cover/shelley-bates_1240.png?"
      }
    },
    [...]
  ]
}