link
POST /link
Attach a link
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/link |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
val[url] | string | yes | Link to attach |
val[text] | string | no | Text of feed |
val[module] | string | no | Support attach link to module item feed (pages/groups) |
val[item_id] | numbwe | no | Support attach link to module item feed (pages/groups) |
custom_pages_post_as_page | number | no | Support attach link as page |
val[user_id] | number | id | Support attach link on user profile |
...
Code Block | ||||
---|---|---|---|---|
| ||||
{
"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."
]
}
|