_User.getUserArticles(userGUID, offset, limit)
Function to get the articles created by a user.
Example Usage
{% set userArticles = _User.getUserArticles('98a233c1-bbd2-483c-9f6d-030469934914', 0, 10) %}
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
userGUID | string | yes | GUID of the user |
offset | int | no | Offset of the records |
limit | int | no | limit 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 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 |
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 |
---|---|
share | Article shares |
Updated about 5 years ago