Log in
Log in with USB
Inloggen met vingerafdruk wordt binnenkort mogelijk.
Last change: July 6, 2020
Current version: 1.5.0
The dataModelAPI module makes it easier to store data using the dataModel headless API.
webanizr.send('dataModelAPI', data, params, callback); webanizr.collect('dataModelAPI', params, callback);
The dataModelAPI module accepts the following parameters:
The type af data. Should correspond to an available type in the datamodel.
The type of action to be performed by the module. Valid options are:
storeitem: store an single item using the dataModel headless API
queueitem: queue an item to list of items to be stored by the dataModel Headless API
When no action type is defined, the storeitem action will be performed.
If set to true, the queue will be send to the server when the last item is added to the queue. For storeitem this is implied, so there is no need to set it to true for this action.
If set to true, debug information is displayed in the browser console.
The log level for the headless dataModel API. If this parameter is not set, but mode__debug is set to true, the value will be 300.
The security token that allows the module to perform the given tasks on the server.
Context for this request to identify the correct items to create / update
The callback to call after the action is performed. This can be after adding to the queue, or after recieving the feedback from the server.
The dataModelAPI module accepts the following parameters:
The type af data. Should correspond to an available type in the datamodel.
The security token that allows the module to perform the given tasks on the server.
An additional query string providing some context on exactly which data you are requesting.
If set to true, debug information is displayed in the browser console.
The log level for the headless dataModel API. If this parameter is not set, but mode__debug is set to true, the value will be 300.
The callback to call after the data is retreived. The retrieved data is send to the callback function.