Questions API Methods
needPushing()
Note This method can only be used in Local Device Assessment
.
Check if there is any unsynchronized local device assessment responses stored inside the current device's indexedDB
.
Examples
questionsApp.needsPushing({
security: {
consumer_key: '[CONSUMER KEY]',
domain: '[DOMAIN]',
signature: '[SIGNED REQUEST]',
timestamp: '[CURRENT TIMESTAMP]',
user_id: '[USER ID]'
},
success: function () {
console.log('Successfully synchronized all stored responses');
},
error: function (e) {
console.log('Error', e);
}
});
Arguments
-
settings object
-
security object
The security object of the request
-
success function
The success callback of the request
-
error function
The error callback of the request
-
Return value
None (undefined
).