This is a lower-level API. Lower-level APIs are not recommended for most projects, and may not be available on all plans. See our page on recommended deployment patterns for more information.
Public Method Questions API

push()

Note This method can only be used in Local Device Assessment.

Synchronize all unsynchronized local device assessment responses stored inside the current device's indexedDB.

Examples

questionsApp.push({
    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).

Was this article helpful?