Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Attach a link

Example URI

http://example.com/restful_api/link

Parameters

ParameterTypeRequire ?Description
val[url]stringyesLink to attach
val[text]stringnoText of feed
val[module]stringnoSupport attach link to module item feed (pages/groups)
val[item_id]numbwenoSupport attach link to module item feed (pages/groups)
custom_pages_post_as_pagenumbernoSupport attach link as page
val[user_id]numberidSupport attach link on user profile

Response

{
  "status": "success",
  "data": {
    "feed_id": "15",
    "privacy": "0",
    "privacy_comment": "0",
    "type_id": "link",
    "user_id": "1",
    "parent_user_id": "1",
    "item_id": "17",
    "time_stamp": "1481887454",
    "parent_feed_id": "0",
    "parent_module_id": null,
    "time_update": "1481887454",
    "content": null,
    "total_view": "0",
    "can_post_comment": true,
    "feed_title": "[OFFICIAL VIDEO] Hallelujah - Pentatonix - YouTube",
    "feed_status": "Great song for Christmas",
    "feed_link": "http://example.com/admin/?link-id=17",
    "feed_is_liked": false,
    "feed_icon": "<img src=\"http://example.com/PF.Base/theme/frontend/default/style/default/image/feed/link.png\">",
    "enable_like": true,
    "likes": [],
    "feed_like_phrase": ""
  },
  "messages": [
    "Link successfully attached."
  ]
}
  • No labels