Easily fetch events from IAȘI events platform and display them on your website.
const events = new Events(args);
events.fetch(args, callback);
new Events({
// Container to render fetched eventsw
// If missing, events will be rendered in a new <div> element
container: '#events',
// Fetch all events containing search keyword/phrase
search: 'keywords',
// Fetch all events published under a given profile
publisher: 1,
// Fetch all events organized at a given venue
venue: 'venue'
});
events.fetch({}, events => {
return events.map(i => {
return `<div><img src="${i.cover}"/><h3><a href="${i.url}">${i.name}</a></h3></div>`;
}).join('');
});