_Blog.getFeed(params)

Function to get the details of the blog

Example Usage

{% set blog = _Blog.getBlogFeed({'blogGuid':'d2c5396d-7741-4449-9d24-0d33de3sd530','limit' : 10, 'offset' : 0, 'dateFormat' : 'SHORT'}) %}

Parameters

An optional array with following attributes

ParameterTypeRequiredDescription
guidstringnoGUID of the blog
limitintnolimit of artilces
offsetintnooffset of the articles
dateFormatstringnodate format. Could be SHORT, LONG

Response Example

{
	"articles": [
		{
			"guid": null,
			"articleId": null,
			"socialId": "439",
			"displayOrder": "292",
			"isPinned": "0",
			"pinnedAt": null,
			"status": "1",
			"title": null,
			"excerpt": null,
			"createdDate": "Oct 26 2016",
			"userHasBlogAccess": 0,
			"isPromoted": null,
			"readingTime": null,
			"total": {
				"share": null
			},
			"blog": {
				"id": "1",
				"title": null,
				"url": "http://network.cognitives.io",
				"owner": {
					"id": "18",
					"guid": "22dd6cb6-5611-49ad-bf90-841dab7de24e",
					"name": "Firstname Lastname",
					"username": "Username",
					"email": "[email protected]",
					"bio": "",
					"display_name": "Firstname Lastname",
					"media": {
						"id": "o328r2ejlbitphpvydv5",
						"cloudName": "cognitives",
						"path": "http://res.cloudinary.com/cognitives/image/upload/v1473074998/o328r2ejlbitphpvyd.jpg"
					}
				},
				"media": {
					"cover": {
						"id": "mdro9ic1iicaq3gxkr4y",
						"cloudName": "cognitives",
						"path": "http://res.cloudinary.com/cognitives/image/upload/v1470894337/mdro9ic1iicaq3gxkr4y.jpg"
					},
					"thumb": {
						"id": "cxkdrdddbn6ckezkrp41",
						"cloudName": "cognitives",
						"path": "http://res.cloudinary.com/cognitives/image/upload/v1470038651/cxkdrdddbn6ckezkrp41.png"
					},
					"structured": {
						"url": "http://res.cloudinary.com/cognitives/image/upload/c_fill,dpr_auto,h_60,w_327/cxkdrdddbn6ckezkrp41",
						"height": 60,
						"width": 327
					}
				}
			},
			"channel": {
				"guid": null,
				"title": null
			},
			"createdBy": {
				"name": " ",
				"displayName": null,
				"media": {
					"id": null,
					"cloudName": null,
					"path": null
				}
			},
			"hasMedia": false,
			"featuredMedia": {
				"id": null,
				"cloudName": null,
				"path": null
			},
			"social": {
				"id": "439",
				"guid": "56f49bfc-d86c-4a25-be12-1d98776d3305",
				"blog": {
					"id": "1",
					"guid": "d2c5396d-7741-4449-9d24-0d33de3sd530",
					"title": "Wedding Groups"
				},
				"source": "youtube",
				"sourceRefId": "hR3sPE720ec",
				"content": "17 Things Scientists Can't Explain",
				"url": "http://www.youtube.com/embed/hR3sPE720ec?autoplay=1",
				"publishDate": "Dec 20 2016",
				"status": "1",
				"hasMedia": true,
				"user": {
					"name": "media",
					"media": {
						"path": "https://yt3.ggpht.com/-JTfWB9olQhE/AAAAAAAAAAI/AAAAAAAAAAA/uhcdSvSCI2A/s88-c-k-no-mo-rj-c0xffffff/photo.jpg"
					}
				},
				"media": {
					"path": "https://i.ytimg.com/vi/hR3sPE720ec/hqdefault.jpg",
					"type": "video",
					"videoUrl": "http://www.youtube.com/embed/hR3sPE720ec?autoplay=1"
				}
			},
			"label": null
		},
		{
			"guid": "39e67226-8fcf-4849-898c-5c12b1e118a7",
			"articleId": "283",
			"socialId": null,
			"displayOrder": "245",
			"isPinned": "0",
			"pinnedAt": null,
			"status": "1",
			"title": "My first Article",
			"excerpt": "Lorem ipsum dolor sit amet, eu vix aeque molestiae, nec ullum omnium in. Lorem ipsum dolor sit amet, eu vix aeque molestiae, nec ullum omnium in. Lorem ipsum dolor sit amet, eu vix aeque molestiae, nec ullum omnium in. Lorem ipsum dolor sit amet, eu...",
			"createdDate": "Dec 08 2016",
			"userHasBlogAccess": 1,
      "userHasEditArticleAccess": 1,
			"isPromoted": "0",
			"readingTime": "1",
			"total": {
				"share": "0"
			},
			"blog": {
				"id": "1",
				"title": "Wedding Groups",
				"url": "http://network.cognitives.com.au",
				"owner": {
					"id": "18",
					"guid": "22dd6cb6-5611-49ad-bf90-841dab7de24e",
					"name": "Firstname Lastname",
					"username": "Username",
					"email": "[email protected]",
					"bio": "",
					"display_name": "Firstname Lastname",
					"media": {
						"id": "o328r2ejlbitphpvydv5",
						"cloudName": "cognitives",
						"path": "http://res.cloudinary.com/cognitives/image/upload/v1473074998/o328r2ejlbitphpvyd.jpg"
					}
				},
				"media": {
					"cover": {
						"id": "mdro9ic1iicaq3gxkr4y",
						"cloudName": "cognitives",
						"path": "http://res.cloudinary.com/cognitives/image/upload/v1470894337/mdro9ic1iicaq3gxkr4y.jpg"
					},
					"thumb": {
						"id": "cxkdrdddbn6ckezkrp41",
						"cloudName": "cognitives",
						"path": "http://res.cloudinary.com/cognitives/image/upload/v1470038651/cxkdrdddbn6ckezkrp41.png"
					},
					"structured": {
						"url": "http://res.cloudinary.com/cognitives/image/upload/c_fill,dpr_auto,h_60,w_327/cxkdrdddbn6ckezkrp41",
						"height": 60,
						"width": 327
					}
				}
			},
			"channel": {
				"guid": null,
				"title": null
			},
			"createdBy": {
				"name": "Firstname Lastname",
				"displayName": "Firstname Lastname",
				"media": {
					"id": "o328r2ejlbitphpvydv5",
					"cloudName": "cognitives",
					"path": "http://res.cloudinary.com/cognitives/image/upload/v1473074998/o328r2ejlbitphpvyd.jpg"
				},
				"coauthors": [
					{
						"id": 298,
						"guid": "532b5c3a-5a2f-4131-9292-7cf468abdfed",
						"bio": "coauthor 1",
						"username": "sample author 1",
						"displayName": "sample author 1",
						"order": 1,
						"media": {
							"id": "e8u2jhu0nou7p7q0joec",
							"cloudName": "cognitives",
							"path": "https://res.cloudinary.com/cognitives/image/upload/v1491283200/e8u2jhu0nou7p7q0joec.png"
						}
					},
					{
						"id": 299,
						"guid": "d1cd26cc-da87-4510-a4b8-1aabcf873719",
						"bio": "coauthor 2",
						"username": "sample author 2",
						"displayName": "sample author 2",
						"order": 2,
						"media": {
							"id": "akegwxylqswycccw7jrv",
							"cloudName": "cognitives",
							"path": "https://res.cloudinary.com/cognitives/image/upload/v1491283336/akegwxylqswycccw7jrv.jpg"
						}
					}
				]
			},
			"hasMedia": false,
			"featuredMedia": {
				"id": null,
				"cloudName": null,
				"path": null
			},
			"url": "/2016/12/12/283/my-first-article",
      "absoluteUrl": "http://network.cognitives.com.au/2016/12/12/283/my-first-article",
			"editUrl": "http://network.cognitives.com.au/admin/article/edit?guid=39e67226-8fcf-4849-898c-5c12b1e118a7",
			"publishDate": "Dec 12 2016",
			"metaPublishDate": "2016-12-12",
			"metaUpdateDate": "2016-12-12",
			"label": "Wedding Groups",
			"additionalInfo": {
				"date": "16-08-2017",
				"datetime": "02-08-2017 12:00 AM",
				"addtional_description": "asda",
				"hobbies": "listening_music",
				"fav_actor": "tom_cruise,liz_hurley",
				"mother_tongue": "english",
				"big_description": "asdsadasdasddsadsa"
			}
		}
	],
	"existingNonPinnedCount": 1
}

Response Description

AttributeDescription
articlesArticles Details
existingNonPinnedCountNo. of non pinned articles

Article Details

An associative array with following attributes.

AttributesDescription
guidArticle GUID
articleIdArticle ID
socialIdArticle social id
isPinnedWhether the article is pinned
titleArticle title
excerptArticle short description
createdDateArticle created date
isPromotedWhether the article is promoted
readingTimeArticle reading time in minutes
totalArticle stat
blogBlog Details
channelChannel Details
createdBycreatedBy details
hasMediaWhether the aricle has media
featuredMediaFeatured Media
urlArticle relative url
absoluteUrlArticle absolute url
userHasEditArticleAccessChecks if current user can edit article
editUrlArticle edit url
publishDateArticle publish date
metaPublishDateArticle meta publish date
labelArticle label

Owner details

AttributeDescription
nameName of the user
display_nameUser display name
mediaUser media

Media

AttributeDescription
thumb Thumb media details
coverCover media details

Media Details

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

Blog Details

AttributeDescription
idBlog ID
titleBlog title
urlBlog URL
ownerBlog Owner
mediaBlog Media

Channel Details

AttributeDescription
guidChannel GUID
titleChannel title

Article stat

AttributeDescription
shareArticle share count

Created by

AttributeDescription
idthe id of the article creator
usernamethe username of the article creator
displayNamethe display name of the article creator
mediaArticle Media
coauthorscoauthor details

Coauthor details

AttributeDescription
idthe id of the coauthor user
usernameusername of the coauthor
displayNamethe display name od the coauthor
orderthe order that the coauthor should appear on the page
mediaArticle Media