Cognitives

Cognitives.io Documentation

Welcome to the Cognitives developer hub. You'll find comprehensive guides and documentation to help you start working with Cognitives as quickly as possible, as well as support if you get stuck. Let's jump right in!

_Article.get(params)

Function to get single article details.

Example Usage

{% set article = _Article.get({"articleGuid": "d2c5396d-7741-4449-9d24-0d33de3pp530"}) %}

Parameters

Parameter
Required
type
Description

params[articleGUID]

yes

string

GUID of the article

Params Details

Response Example

{
	"id": "1",
	"guid": "d2c5396d-7741-4449-9d24-0d33de3sd530",
	"title": "Blog title",
	"shortDescription": "aplle",
	"type": "blog",
  "canonicalUrl": "http://test.cognitives.io/@test-blog/2017/09/08/53726/article-title",
	"url": "http://network.cognitives.com.au",
	"featuredColor": "#9c10b3",
	"isDefault": "1",
	"status": "1",
	"userHasBlogAccess": 1,
	"isBlogOwner": true,
	"owner": {
		"id": "18",
		"guid": "22dd6cb6-5611-49ad-bf90-841dab7de24e",
		"name": "Firstname Lastname",
		"username": "username",
		"email": "test@gmail.com",
		"bio": "Info about user",
		"display_name": "Firstname Lastname",
		"media": {
			"id": "o328r2ejlbitphpvydv5",
			"cloudName": "cognitives",
			"path": "http://res.cloudinary.com/cognitives/image/upload/v1473074998/o328r2ejlbitphpvyd.jpg"
		}
	},
	"media": {
		"thumb": {
			"id": "cxkdrdddbn6ckezkrp41",
			"cloudName": "cognitives",
			"path": "http://res.cloudinary.com/cognitives/image/upload/v1470038651/cxkdrdddbn6ckezkrp.png"
		},
		"cover": {
			"id": "mdro9ic1iicaq3gxkr4y",
			"cloudName": "cognitives",
			"path": "http://res.cloudinary.com/cognitives/image/upload/v1470894337/mdro9ic1iicaq3gxkr.jpg"
		},
		"structuredMedia": {
			"url": "http://res.cloudinary.com/cognitives/image/upload/c_fill,dpr_auto,h_60,w_327/cxkdrdddbn6ckezkrp41",
			"height": 60,
			"width": 327
		}
	},
	"total": {
		"view": "10",
		"article": "25",
		"followers": "2",
		"following": "0"
	},
	"createdDate": "Dec 01 2016",
	"settings": {
		"guid": "d2c5396d-7741-4449-9d24-0d33de3sd530",
		"GoogleAnalyticsID": "aaaa-ssss-dddd-ffff-gggg",
		"contact": {
			"email": "test@gmail.com",
			"name": "test",
			"phone": "1234567890",
			"address": "address",
			"country": "Australia",
			"state": "Melbourne",
			"city": "sydney",
			"postcode": "11111"
		},
		"location": {
			"latitude": "",
			"longitude": "",
			"googlePlaceId": ""
		},
		"social": {
			"facebook": "http://facebook.com",
			"twitter": "http://twitter.com",
			"google": "http://google.com",
			"linkedin": "http://linkedin.com",
			"youtube": "http://youtube.com",
			"vimeo": "http://vimeo.com",
			"pinterest": "http://pinterest.com",
			"website": "http://test.com"
		}
	},
	"blogHeaderMenu": [
		{
			"id": "2584",
			"guid": "330ccbcb-bfd8-452d-b172-61cc630f115c",
			"blog_id": "1",
			"parent_id": null,
			"label": "Cricket",
			"menu_type": "header",
			"type": "blog",
			"menu_blog_id": "2",
			"menu_page_id": null,
			"position": "1",
			"status": "1",
			"updated_at": "1479811796",
			"created_at": "1479811796",
			"blogGuid": "d2c5396d-7743-4449-9d24-0d33de3sd530",
			"blogTitle": "Cricket",
			"blogStatus": "1",
			"is_default": null,
			"pageGuid": null,
			"pageTitle": null,
			"pageStatus": null,
			"pageExternalLink": null,
			"link": "http://network.cognitives.com.au/@cricket",
			"isExternal": 0,
			"children": []
		},
		{
			"id": "2585",
			"guid": "f70596e8-0aba-447a-b55d-d8c6d1318fba",
			"blog_id": "1",
			"parent_id": null,
			"label": "beauty",
			"menu_type": "header",
			"type": "blog",
			"menu_blog_id": "30",
			"menu_page_id": null,
			"position": "2",
			"status": "1",
			"updated_at": "1479811796",
			"created_at": "1479811796",
			"blogGuid": "3c5da4d4-1894-4140-9fb6-3d8827e345f9",
			"blogTitle": "beauty",
			"blogStatus": "1",
			"is_default": null,
			"pageGuid": null,
			"pageTitle": null,
			"pageStatus": null,
			"pageExternalLink": null,
			"link": "http://network.cognitives.com.au/@beauty",
			"isExternal": 0,
			"children": [
				{
					"id": "2586",
					"guid": "209d1fd9-8dc5-4728-a729-98b5a65e43d2",
					"blog_id": "1",
					"parent_id": "2585",
					"label": "beauty one",
					"menu_type": "header",
					"type": "blog",
					"menu_blog_id": "30",
					"menu_page_id": null,
					"position": "1",
					"status": "1",
					"updated_at": "1479811796",
					"created_at": "1479811796",
					"blogGuid": "3c5da4d4-1894-4140-9fb6-3d8827e345f9",
					"blogTitle": "beauty one",
					"blogStatus": "1",
					"is_default": null,
					"pageGuid": null,
					"pageTitle": null,
					"pageStatus": null,
					"pageExternalLink": null,
					"link": "http://network.cognitives.com.au/@beauty",
					"isExternal": 0
				}
			]
		}
	],
	"blogFooterMenu": [
		{
			"id": "1684",
			"guid": "a7931664-6fff-43fb-b7d8-a8f309590cdf",
			"blog_id": "1",
			"parent_id": null,
			"label": "aaaaa Blog",
			"menu_type": "footer",
			"type": "blog",
			"menu_blog_id": "49",
			"menu_page_id": null,
			"position": "1",
			"status": "1",
			"updated_at": "1478843151",
			"created_at": "1478843151",
			"blogGuid": "7c425ca3-1c0a-40c2-a7c0-c1866228adf7",
			"blogTitle": "Footer Blog",
			"blogStatus": "1",
			"is_default": null,
			"pageGuid": null,
			"pageTitle": null,
			"pageStatus": null,
			"pageExternalLink": null,
			"link": "http://network.cognitives.com.au/@footer",
			"isExternal": 0,
			"children": []
		}
	],
	"additionalInfo": {
		"addtional_description": "05-07-2017 12:00 AM",
		"hobbies": "reading_books",
		"fav_actor": "tom_cruise,liz_hurley",
		"mother_tongue": "english",
		"big_description": "admin blog description",
		"media": "https://cog-development.s3-ap-southeast-2.amazonaws.com/media/10/2017/Jul/26/L5Gn5aBzKEAdAwe2WeDf.jpg"
	}
}

Response Description

Attribute
Description

id

ID of the article

guid

GUID of the article

title

Title of the article

slug

slug of the article

excerpt

short description of the article

content

full description of the article

url

absolute url of the article

shortUrl

short url of the article

externalUrl

external url of the article

type

type of the article

source

source of the article from where it has been created

isPromoted

whether the article is promoted or not

publishedAt

published date of the article in unix timestamp

publishedDate

published date of the article in human readable form

status

status of the article

updatedAt

updated date of the article in readable form

openGraphMediaId

ID of the open graph image of the article

readingTime

reading time of the article in minutes

label

blog title of the article

articleLayoutFileName

name of the layout of the article

Meta Details

Attribute
Description

title

meta title of the article

keywords

meta keywords of the article,

description

meta description of the article

Opengraph Details

Attribute
Description

title

Opengraph title

dsecription

Opengraph description

Owner Details

Attribute
Description

id

id of the owner user

username

username of the owner

displayName

display name of the owner

Media Details

Attribute
Description

id

Cloudinary cloud id of the image

cloudName

Cloudinary cloud name

path

Cloudinary cloud path of the image

Coauthor Details

id

id of the coauthor user

username

username of the coauthor user

bio

bio description of the coauthor

displayName

display name of the coauthor

order

the position the the coauthor should appear on the page

Blog Details

Attribute
Description

title

name of the blog

id

id of the blog

guid

guid of the blog

url

absolute url of the blog

Article Details

Attribute
Description

view

total views of the article

share

total shares of the article

like

total likes of the article

comment

total comments of the article

Social Details

Attribute
Description

facebook

Facebook share count of the article

googleplus

Google+ share count of the article

linkedin

LinkedIn share count of the article

stumbleupon

Stumble Upon share count of the article

Article Media Details

Attribute
Description

guid

guid of the media

height

height of the media

width

width of the media

id

Cloudinary cloud id of the media

type

type of media

cloudName

Cloudinary cloud name

path

Cloudinary cloud path of the media

caption

caption of the media

isSystemVideo

if the video is system uploaded or social media video

_Article.get(params)