_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

ParameterTypeRequiredDescription
offsetintnoOffset of the records
limitintnolimit 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

AttributeDescription
articleIdID of the article
guidGUID of the article
titleTitle of the article
excerptShort description of the article
urlAbsolute URL of the article
editUrlEdit URL of the article
statusStatus of the article
hasMediaWhether the article has image
publishDatePublished date of the article
readingTimeReading time of the article in minutes
labelTitle of the blog
featuredMediaFeatured image of the article
createdByCreator of the article
blogArticle blog
channelChannel Details
totalStats of the article

Creator Details

AttributeDescription
usernameUsername
displayNameName of the user
media Image of the user

Blog Details

AttributeDescription
idBlog ID
titleBlog title
urlBlog URL

Channel Details

AttributeDescription
idChannel ID
titleChannel title

Image Details

AttributeDescription
guidGUID of the image
idCloudinary Cloud ID of the image
cloudNameCloudinary Cloud name
pathCloudinary Cloud path of the image

Stats Details

AttributeDescription
viewArticle views
shareArticle shares
likeArticle likes
commentArticle comments