Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
php
php
{
  "status": "success",
  "data": [[
    {
      "feed_id": "53",
      "app_id": "0",
      "privacy": "0",
      "privacy_comment": "0",
      "type_id": "custom",
      "user_id": "1",
      "parent_user_id": "0",
      "item_id": "1",
      "time_stamp": "1480906860",
      "feed_reference": "0",
      "parent_feed_id": "0",
      "parent_module_id": null,
      "time_update": "1480906860",
      "content": null,
      "total_view": "0",
      "can_post_comment": true,
      "feed_link": "http://example.com/admin/",
      "feed_title": "",
      "feed_info": "updated his/her profile information.",
      "feed_icon": "<img src=\"http://example.com/PF.Base/theme/frontend/default/style/default/image/misc/page_edit.png\">",
      "enable_like": false,
      "likes": [],
      "total_likes": 0,
      "feed_is_liked": false,
      "feed_like_phrase": ""
    },
    {
      "feed_id": "49",
      "app_id": "0",
      "privacy": "0",
      "privacy_comment": "0",
      "type_id": "user_status",
      "user_id": "1",
      "parent_user_id": "0",
      "item_id": "15",
      "time_stamp": "1480678171",
      "feed_reference": "0",
      "parent_feed_id": "0",
      "parent_module_id": null,
      "time_update": "1480678171",
      "content": null,
      "total_view": "0",
      "can_post_comment": true,
      "feed_status": "Good morning everyone",
      "feed_title": "",
      "feed_link": "http://example.com/admin/?status-id=15",
      "feed_is_liked": false,
      "feed_icon": "<img src=\"http://example.com/PF.Base/theme/frontend/default/style/default/image/misc/application_add.png\">",
      "enable_like": true,
      "likes": [],
      "feed_like_phrase": ""
    },
  &#93;],
  "messages": []
}

POST /feed

...

Code Block
php
php
{
   "status": "success",
   "data": {
     "feed_id": "4",
     "privacy": "1",
     "privacy_comment": "0",
     "type_id": "pages_comment",
     "user_id": "8",
     "parent_user_id": "2",
     "item_id": "2",
     "time_stamp": "1480908963",
     "parent_feed_id": "0",
     "parent_module_id": null,
     "time_update": "1480908963",
     "content": null,
     "total_view": "0",
     "can_post_comment": true,
     "feed_status": "Hi all, we will have a party tonight!!!",
     "feed_link": "http://example.com/pages/2/wall/comment-id_2/",
     "feed_is_liked": false,
     "feed_icon": "<img src=\"http://example.com/PF.Base/theme/frontend/default/style/default/image/misc/comment.png\">",
     "enable_like": true,
     "likes": [],
     "feed_like_phrase": ""
   },
   "messages": &#91;[
     "Feed comment successfully added."
   &#93;]
 }

GET /feed/:id

Get information of a specific feed

...

Code Block
php
php
{
  "status": "success",
  "data": {
    "feed_id": "55",
    "app_id": "0",
    "privacy": "0",
    "privacy_comment": "0",
    "type_id": "blog",
    "user_id": "1",
    "parent_user_id": "0",
    "item_id": "3",
    "time_stamp": "1480909502",
    "parent_feed_id": "0",
    "parent_module_id": null,
    "time_update": "1480909502",
    "content": null,
    "total_view": "0",
    "can_post_comment": true,
    "feed_title": "Santa Claus is Coming to Town &#91;lyrics&#93;[lyrics]",
    "feed_info": "posted a blog.",
    "feed_link": "http://example.com/blog/3/santa-claus-is-coming-to-town-lyrics/",
    "feed_is_liked": false,
    "feed_icon": "<img src=\"http://example.com/PF.Base/theme/frontend/default/style/default/image/module/blog.png\">",
    "enable_like": true,
    "likes": [],
    "feed_like_phrase": ""
  },
  "messages": []
}

...

Code Block
php
php
{
  "status": "success",
  "data": {
    "feed_id": "61",
    "app_id": "0",
    "privacy": "4",
    "privacy_comment": "0",
    "type_id": "user_status",
    "user_id": "1",
    "parent_user_id": "0",
    "item_id": "17",
    "time_stamp": "1480995719",
    "feed_reference": "0",
    "parent_feed_id": "0",
    "parent_module_id": null,
    "time_update": "1480995719",
    "content": null,
    "total_view": "0",
    "can_post_comment": true,
    "feed_status": "Hello December",
    "feed_title": "",
    "feed_link": "http://example.com/admin/?status-id=17",
    "feed_is_liked": false,
    "feed_icon": "<img src=\"http://example.com/PF.Base/theme/frontend/default/style/default/image/misc/application_add.png\">",
    "enable_like": true,
    "likes": [],
    "feed_like_phrase": ""
  },
  "messages": &#91;[
    "Feed successfully updated."
  &#93;]
}

DELETE /feed/:id

Delete a specific feed

...

Code Block
php
php
{
  "status": "success",
  "data": [],
  "messages": &#91;[
    "Feed successfully deleted."
  &#93;]
}

POST /feed/share

Share a feed item to your wall or your friends walls

...

Code Block
php
php
{
  "status": "success",
  "data": &#91;[
    {
      "feed_id": "65",
      "app_id": "0",
      "privacy": "0",
      "privacy_comment": "0",
      "type_id": "feed_comment",
      "user_id": "1",
      "parent_user_id": "7",
      "item_id": "5",
      "time_stamp": "1480997941",
      "feed_reference": "0",
      "parent_feed_id": "62",
      "parent_module_id": "PHPfox_Videos",
      "time_update": "1480997941",
      "content": null,
      "total_view": "0",
      "can_post_comment": true,
      "feed_status": "great Song for Christmas",
      "feed_link": "http://example.com/profile-7/?comment-id=5",
      "feed_is_liked": false,
      "feed_icon": "<img src=\"http://example.com/PF.Base/theme/frontend/default/style/default/image/misc/comment.png\">",
      "enable_like": true,
      "likes": [],
      "feed_like_phrase": ""
    }
  &#93;],
  "messages": &#91;[
    "Successfully shared this item on your friends wall."
  &#93;]
}