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!

_Event.getEvents(params)

Function to get the list of events.

Example Usage

{% set eventList = _Event.getEvents({'limit' : 10, 'offset' : 0}) %}

Parameters

An array with following attributes

Attribute
Type
Required
Description

limit

int

no

limit of events

offset

int

no

Offset of the events

Response Example

[
    {
        "eventGuid": "45f56282-f2c1-4012-a513-c2db8c686937",
        "title": "this is my testing event",
        "excerpt": "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked...",
      	"venue": "DMall",
        "address": {
            "address1": "5th floor",
            "address2": "NSP",
            "suburb": "NSW",
            "city": "Sydney",
            "state": "Sydney",
            "country": "Australia",
            "postcode": "58965"
        },
        "website": "http://test.com",
        "startDate": "Jun 10 2017 6:30 PM",
        "endDate": "Jun 12 2017 9:30 PM",
      	"url": "http://test.cognitives.com.au/2017/06/14/481/my-new-event",
        "createdBy": {
            "name": "test user",
            "email": "test@gmail.com"
        },
      	"media": {
            "image": [
                "https://res.cloudinary.com/cognitives/image/upload/v1497011535/nbg9xmdwjrqdzq2wzhap.jpg",
                "https://res.cloudinary.com/cognitives/image/upload/v1497939982/gqhhpibm9qwmqyfdbf2g.jpg"
            ],
            "video": [
                "https://res.cloudinary.com/cognitives/video/upload/v1497011532/q5gpjodue1oyrwrwxgcg.mp4"
            ]
        }
    }
]

Response Description

Attribute
Description

eventGuid

GUID of the event

title

event title

excerpt

event short description

venue

event Venue

address

Event Address

startDate

event start date

endDate

event end date

url

Event URL

createdBy

media

Event Media

Event Owner Details

Attribute
Description

name

Name of the event owner

email

Email of the event owner

_Event.getEvents(params)