Like a Post or Reply

Endpoint allows to like existing post or Reply

Create new like for post or reply

POST https://api.whisk.com/v2/reaction

Method allows to create a like for reply or for post. Like will be added to object.

Headers

NameTypeDescription

Authorization*

String

User Access token to authorize the API usage. For more information, see Authentication

Request Body

NameTypeDescription

like*

Boolean

Shows whether its like or dislike

reaction*

Object

Image object. Contain list of parameters related to reaction.

reply

String

If object is a reply

target*

Object

An object for like attribute

post

String

If object is a post

{}

Request body

{
  "target": {
    "reply": "string",
    "post": "string"
  },
  "reaction": {
    "like": true
  }
}

Sample request and response

Last updated