Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Events are appointments, meetings etc . An event may be repeated, eg. it may occur every friday in a month, or on the 1st of every month in a year and so on. The instance of an event on a given date is simply called an instance. The id field in an event object refers to the event, whereas the instanceid field refers to an instance.

GetEventTypes

Get a list of the event types.

Input

Output

typescollection[ eventtype ]A collection of all event types
defaultnumberThe MB ID of the default event type


CreateUpdateEvent

Creates or updates an event in Microbizz.

If an event with the given event id already exists, then the event will be overwritten.

If the event provided has an event id of 0, a new event will be created and a new event id will be provided.

Input

eventeventThe event to create/update

Output

eventeventThe event object as it is in Microbizz after the update

DeleteEventByID

Delete an event in Microbizz.

Input

eventidnumberThe Microbiz ID of an event
allusersbooleanIf 0 then current user will be removed from the event. If 1 then all users will be removed from the event.

Output

---

An event can only be deleted if the current user is attached to the event.


DeleteEventInstanceByInstanceID

Delete an instance (i.e. date) of a repeated event.

Input

instanceidstringThe Microbizz instance ID of an event for a date

Output

---

GetEventsByUserAndDate

Get a list of events in Microbizz.

This can be quite slow if fromdate and enddate are not the same. May return same event more than once if fromdate and enddate are not the same; the event objects will then have the same value in the id field but will have different values in the instanceid field.

Input

fromdatedate
todatedate
useridnumber

Output

calendarentriescollection[ event ]A collection of events

GetMyStodos

Read a list of relevant reminders (“stodos”).

Input

None--

Output

stodoscollection [ stodo ]List of reminders

StodoAccept

Accept or postpone a reminder (“stodo”).

Input

stodoidnumberThe ID of a reminder
useridnumberNot used but required for historic reasons, just set to 0
postponenumberNumber of minutes to postpone the reminder; if not included, or if 0, then the reminder is accepted.

  • No labels