_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

AttributeTypeRequiredDescription
limitintnolimit of events
offsetintnoOffset 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": "[email protected]"
        },
      	"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

AttributeDescription
eventGuidGUID of the event
titleevent title
excerptevent short description
venueevent Venue
addressEvent Address
startDateevent start date
endDateevent end date
urlEvent URL
createdByEvent Owner
mediaEvent Media

Event Owner Details

AttributeDescription
nameName of the event owner
emailEmail of the event owner