Api Commands

Api commands are used to comunicate directly with our Api via javascript.

To use the Web SDK please install the snippet first.

Api commands will only work after popup is initialized (there is a callback for when it is initialized)

Command

Description

Values

Callback data

getComplied.api('policy-consent', {Id: 0, Grant: false}, function(data){ /* callback */ })

Sets the consent of a specific policy

Id (policy id) Grant (bool)

Success (bool) Message (string)

getComplied.api('thirdparty-consent', {Id: 0, Grant: false}, function(data){ /* callback */ })

Sets the consent of a specific thirdparty

Id (thirdparty id) Grant (bool)

Success (bool) Message (string)

getComplied.api('cookies-consent', {Grant: false}, function(data){ /* callback */ })

Sets the consent of the cookies

Grant (bool)

Success (bool) Message (string)