_User.getUserFeed(params)
Function to get articles from user feed - i.e. created by user or articles from blogs followed by user.
Example Usage
{% set userFeed = _User.getUserFeed({'offset' : 1,'limit' : 20}) %}
Parameters
An optional associative array
Parameter | Type | Required | Description |
---|---|---|---|
offset | int | no | Offset of the records |
limit | int | no | limit of the records |
Response Example
[
{
"articleId":"61",
"guid":"98a233c1-bbd2-483c-9f6d-030469934914",
"title":"Yuvraj 164* studs Punjab's dominance",
"excerpt":"A round-up from the opening day of the second round of 2016-17 Group A Ranji Trophy matches",
"url":"http://network.cognitives.com.au/@beauty/2016/11/29/61/yuvraj-164-studs-punjabs-dominance",
"editUrl":"http://network.cognitives.com.au/admin/article/edit?guid=98a233c1-bbd2-483c-9f6d-030469934914",
"status":"published",
"hasMedia":true,
"publishDate":"Nov 29 2016",
"readingTime":"1",
"label":"beauty12",
"featuredMedia":{
"guid":"3e1cd7ca-e012-4886-8a7a-4603fe9d5038",
"id":"mt1idrdvjm5l9pfp62cv",
"cloudName":"cognitives",
"path":"http://res.cloudinary.com/cognitives/image/upload/v1480443281/mt1idrdvjm5l9pfp62cv.jpg"
},
"createdBy":{
"username":"test",
"displayName":"test user",
"media":{
"guid":"a4f04e57-1feb-4105-884c-7665e76cc563",
"id":"o328r2ejlbitphpvydv5",
"cloudName":"cognitives",
"path":"http://res.cloudinary.com/cognitives/image/upload/v1473074998/o328r2ejlbitphpvydv5.jpg"
}
},
"blog":{
"id":"30",
"title":"beauty12",
"url":"http://network.cognitives.com.au/@beauty"
},
"channel":{
"id":15,
"title":"Test Channel"
},
"total":{
"view":"0",
"share":"0",
"like":"0",
"comment":"0"
}
}
]
Response Description
An array of feeds
Attribute | Description |
---|---|
articleId | ID of the article |
guid | GUID of the article |
title | Title of the article |
excerpt | Short description of the article |
url | Absolute URL of the article |
editUrl | Edit URL of the article |
status | Status of the article |
hasMedia | Whether the article has image |
publishDate | Published date of the article |
readingTime | Reading time of the article in minutes |
label | Title of the blog |
featuredMedia | Featured image of the article |
createdBy | Creator of the article |
blog | Article blog |
channel | Channel Details |
total | Stats of the article |
Creator Details
Attribute | Description |
---|---|
username | Username |
displayName | Name of the user |
media | Image of the user |
Blog Details
Attribute | Description |
---|---|
id | Blog ID |
title | Blog title |
url | Blog URL |
Channel Details
Attribute | Description |
---|---|
id | Channel ID |
title | Channel title |
Image Details
Attribute | Description |
---|---|
guid | GUID of the image |
id | Cloudinary Cloud ID of the image |
cloudName | Cloudinary Cloud name |
path | Cloudinary Cloud path of the image |
Stats Details
Attribute | Description |
---|---|
view | Article views |
share | Article shares |
like | Article likes |
comment | Article comments |
Updated about 5 years ago