0.0.4 • Published 2 months ago
wbb-imin v0.0.4
WBB Imin
This Integration lets you query the Imin database, and display EventSeries, SessionSeries and ScheduledSessions
Blocks Provided
Response Name | Purpose |
---|---|
Imin | Example of a Response, with a set of queries |
Handler Names
The following handler names and their functions are available :
Handler Name | Purpose |
---|---|
Imin | This is the function that queries the Imin database and displays EventSeries, SessionSeries, and ScheduledSession objects |
Configuration Options
Within the function there are a number of options that can be set to configure the behaviour of the integration. The tables below show the settings that are available for each handler.
imin
Property | Required | Description |
---|---|---|
api | true | The API Key used to access the imin api |
startDate | false | This field is used to find activities that start the beginning of the epsecified date. Best used with a Date question |
endDate | false | This field is used to find activities that end before the end of the day specified date. Best used with a Date question |
showSchedule | false | If set to true, the function will display Schedules for found activities, with upcoming sessions |
showSessions | false | If set to true, the function will display upcoming Sessions for found activities |
hideFullSessions | false | If set to true, ScheduledSessions that have no more remaining capacity will not be displayed |
hideShowMore | false | If set to true, will hide the "Show More" button, displayed when more pages are available |
showUrl | false | If set to true, will show a button to the objects URL field, or the URL of the parent if none is found |
customUrl | false | If set, a button with this link will be displayed on all items. This will override any available URL on the objects fetched from the api |
urlButtonText | false | The text to display on the url button |
hideUrlWhenFull | false | If set to true, when displaying ScheduledSessions, if no remaining capacity remains, the URL button will not be displayed |
noItemsResponse | false | The Response to display if no items are found, defaults to 'menu' |
eventsMessage | false | The message to display before EventsSeries are displayed, this can include templates using the Imin api results, for example %%view.imin:currentPage%%. Defaults to "Here are the available activities. Page %%view.imin:currentPage%% of %%view.imin:totalPages%%" |
seriesMessage | false | The message displayed before displaying the available SessionSeries. This can include templates using the first SessionSeries item. Defaults to "Here are the available schedules." |
sessionMessage | false | The message displayed before displaying the available ScheduledSessions, this can be a template using the first SessionSeries item. Defaults to "Here are the upcoming sessions." |
| queries | true | The queries used to find activities, besides startDate and endDate. Both key and value of each field can be a template, for example 'startTime%%beforeOrAfter%%' : '%%timeOfDay%%' |