GET /like

Get list of members who liked the item

Example URI

http://example.com/restful_api/like?type_id=app&item_id=8&app_id=PHPfox_Videos&parent_module=pages

Parameters

ParameterTypeRequire ?Description
type_idstringyesType id of the item
item_idnumberyesItem id
app_idstringnoRequire if item type is app
parent_modulestringnoRequire for getting likes on app item on pages/groups

Response

{
  "status": "success",
  "data": [
    {
      "user_id": "1",
      "profile_page_id": "0",
      "user_server_id": "0",
      "user_name": "admin",
      "full_name": "Admin",
      "gender": "0",
      "user_image": "2016/12/07140d52d833bb6c304ee1f48bbe623f%s.png",
      "is_invisible": "0",
      "user_group_id": "1",
      "language_id": "en",
      "birthday": "05091988",
      "country_iso": "US"
    },
    {
      "user_id": "3",
      "profile_page_id": "0",
      "user_server_id": "0",
      "user_name": "profile-3",
      "full_name": "Neil",
      "gender": "0",
      "user_image": null,
      "is_invisible": "0",
      "user_group_id": "2",
      "language_id": null,
      "birthday": null,
      "country_iso": null
    }
  ],
  "messages": []
}

POST /like

Like an item

Example URI

http://example.com/restful_api/like

Parameters

ParameterTypeRequire ?Description
type_idstringyesType id of the item
item_idnumberyesId of the item
app_idstringnoRequired if item type is app
parent_modulestringnoRequire for adding like on app item on pages/groups

Response

{
  "status": "success",
  "data": [],
  "messages": [
    "Like successfully added."
  ]
}

DELETE /like

Unlike an item

Example URI

http://example.com/restful_api/like

Parameters

ParameterTypeRequire ?Description
type_idstringyesType id of the item
item_idnumberyesId of the item
app_idstringnoRequired if item type is app
parent_modulestringnoRequire for adding like on app item on pages/groups

Response

 {
  "status": "success",
  "data": [],
  "messages": [
    "Like successfully deleted."
  ]
}