_User.getArticles(userGUID, offset, limit)

Function to get the articles created by a user.

Example Usage

{% set userArticles = _User.getArticles('98a233c1-bbd2-483c-9f6d-030469934914', 0, 10) %}

Parameters

ParameterTypeRequiredDescription
userGUIDstringyesGUID of the user
offsetintnoOffset of the records
limitintnolimit of the records

Response Example

[
   {
      "articleId":"292",
      "guid":"8d00d165-6a40-490d-af03-c9f522993383",
      "title":"This is one article",
      "excerpt":"This is H1 headingThis is H1 headingThe charge, laid by ICC chief executive David Richardson, related to clause 2.2.9 of the ICC's Code of Conduct, which deals with \"changing the condition of the ball\" in breach of the Laws of Cricket. The Laws of...</span>",
      "url":"http://network.cognitives.com.au/@my-channel/2016/11/28/292/this-is-one-article",
      "publishDate":"Nov 28 2016",
      "readingTime":"1",
      "createdBy":{
         "username":"admin",
         "displayName":"admin",
         "media":{
            "guid":"f584bb92-e563-4465-aa9f-68c3ab204fe7",
            "id":"mt0jr5y3xvvm6yxgjpor",
            "cloudName":"cognitives",
            "path":"http://res.cloudinary.com/cognitives/image/upload/v1479377416/mt0jr5y3xvvm6yxgjpor.jpg"
         }
      },
      "total":{
         "share":"0"
      },
      "blog":{
         "id":"59",
         "title":"My channel",
         "url":"http://network.cognitives.com.au/@my-channel"
      },
      "channel":{
         "id":null,
         "title":null
      },
      "hasMedia":true,
      "featuredMedia":{
         "guid":"2222d804-603f-4008-90b4-69c4e1a67b77",
         "id":"wqvraz0w4w0lvigp8or5",
         "cloudName":"cognitives",
         "path":"http://res.cloudinary.com/cognitives/image/upload/v1480335633/wqvraz0w4w0lvigp8or5.jpg"
      },
      "label":"My channel"
   }
]

Response Description

An array of articles

AttributeDescription
articleIdID of the article
guidGUID of the article
titleTitle of the article
excerptShort description of the article
urlAbsolute URL 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
shareArticle shares