...
Browse activity feeds
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/feed?page=1& |
...
limit=10 |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
page | number | no | Paging the result items |
limit | number | no | Limit the result items |
module | string | no | Support get feeds on module items |
item_id | number | no | Support get feeds on module items |
user_id | number | no | Support get feeds on users profile |
...
Create a new activity feed
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/feed |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
id | number | yes | User Id |
val[user_status] | string | yes | Feed content |
val[privacy] | number | no | Feed privacy id |
val[privacy_list] | array | no | List of custom groups id |
user_id | number | no | Support post feed on user profile |
module | string | no | Support post feed to module item |
item_id | number | no | Support post feed to module item |
custom_pages_post_as_page | number | no | Support post feed as page |
...
Get information of a specific feed
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/feed/1 |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
id | number | yes | Feed id |
...
Update a user status feed
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/feed/1 |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
id | number | yes | Feed Id |
val[user_status] | string | no | Updated status |
val[privacy] | number | no | Privacy id |
val[privacy_list] | array | no | List of custom groups id |
...
Delete a specific feed
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/feed/1 |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
id | number | yes | Feed id |
...
Share a feed item to your wall or your friends walls
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/feed/share |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
val[item_id] | number | yes | Item id of the feed |
val[module_id] | string | yes | Module id of the feed |
val[content] | string | yes | Message for sharing |
val[type] | number | yes | Options: 1 - share on your wall. 2 - share on your friends walls |
val[friends] | array | yes | List of friends id incase share feed on friends walls |
...