Skip to content

Instantly share code, notes, and snippets.

@TimonVS
Last active February 19, 2016 16:19
Show Gist options
  • Select an option

  • Save TimonVS/6066e111073da9252056 to your computer and use it in GitHub Desktop.

Select an option

Save TimonVS/6066e111073da9252056 to your computer and use it in GitHub Desktop.

Item insights

Summary endpoint

URL: /items/:item_id/insights

Model response:

{
  "students": {
    "likes": Int,
    "comments": Int,
    "seen": Int
  }
}

Details endpoint

URL: /items/:item_id/insights/details

Parameters:

  • sort: String (liked, commented, seen)
  • order: String (asc, desc)
  • limit: Number
  • offset: Number

Model response:

[
  {
    user: { User },
    liked: Boolean,
    commented: Boolean,
    seen: Boolean
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment