...
Get comments of an item
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/comment?type_id=app& |
...
item_id=9& |
...
app_id=PHPfox_Videos |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
type_id | string | yes | Type id of the item |
item_id | number | yes | Item id |
app_id | string | no | Require if item type is app |
parent_module | string | no | Require for get comments on app item on pages/groups |
limit | number | no | Limit return results |
page | number | no | Paging return results |
...
Add comment on an item
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/comment |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
val[type] | string | yes | Type id of the item |
val[item_id] | number | yes | Id of the item |
val[text] | string | yes | Comment text |
val[parent_id] | number | no | Require for adding reply on comment |
val[app_object] | string | no | Require if comment on an app item |
val[parent_module] | string | no | Parent type of the app item |
...
Get information of a specific comment
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/comment/14 |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
id | number | yes | Comment id |
...
Update comment content
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/comment/14 |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
id | number | yes | Comment id |
text | string | yes | Text to update |
...
Delete a specific comment.
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/comment/14 |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
id | number | yes | Comment id |
...