Skip to content

Create like

Onur Akpolat edited this page Nov 4, 2016 · 1 revision

This event is being used if a user likes an object.

Endpoint

PUT https://api.tapglue.com/0.4/posts/:PostID/likes

Example

curl https://api.tapglue.com/0.4/posts/:PostID/likes \
    -u APP_TOKEN:SESSION_TOKEN \
    -H 'Accept: application/json' \
    -H "User-Agent: Tapglue Test UA" \
    -H "Content-Type: application/json"

Response

{
  "id": "16195913517109150",
  "post_id": "16195891136303750",
  "user_id": "15306973381660642",
  "created_at": "2015-12-21T11:38:56.721868229Z",
  "updated_at": "2015-12-21T11:38:56.721868229Z"
}
Clone this wiki locally