...
See 2105: Accept permission. If consentID
is currently cached in localStorage
, it is updated.
rs.sdk.terms.acceptTerms(termsID, sourceID, version?, consents?, cbSuccess?, cbError?)
...
consents: An array of consentIDs. Defaults to all consents for this version of the terms.
See 2102: Accept terms. If any consents are currently cached in localStorage
they are removed.
rs.sdk.terms.hasAccepted(termsID, latest?, cbSuccess?, cbError?)
...
cbSuccess: Sends true
or false
depending on whether the authenticated entity has accepted these terms
rs.sdk.terms.hasConsented(consentID, cacheHours?, cbSuccess?, cbError?)
cacheHours: Defaults to 1
. Number of hours that this result should be cached in localStorage
.
cbSuccess: Sends true
or false
depending on whether the authenticated entity has accepted this consent
Fetch acceptance status of this consent. If there is an unexpired result cached in localStorage
then that is returned instead of sending a new request. When cacheHours
is 0
then nothing is read from localStorage
and the result is not cached.
rs.sdk.terms.get(termsID?, cbSuccess?, cbError?)
...
See 2107: Withdraw permission. If consentID
is currently cached in localStorage
, it is updated.
rs.sdk.terms.withdrawTerms(termsID, sourceID, reason, cbSuccess?, cbError?)
See 2104: Withdraw terms acceptance. If any consents are currently cached in localStorage
they are removed.
rs.sdk.terms.renderVersionText(htmlContainerID, sourceID, termsID, version?, textKey?, cbSuccess?, cbError?, cbAcceptSuccess?, cbAcceptError?)
...