myArkose object that is provided when the Arkose Labs Platform API script (as installed in Client-Side Instructions) is loaded exposes a number of public functions that are listed below. Use these to help support specific your implementation requirements. One function that must ALWAYS be called is
setConfig. This sets up the Client API e.g. callback functions.
|Function||Returns the configuration object|
|Function||Resets the current session for both Arkose Detect and Arkose Protect. This creates a new session.|
|Function||Updates the configuration object.|
|Function||Triggers the Arkose Detect or Arkose Protect API to classify the current session.|
|String||Returns the API version (e.g. 2.0.0).|
The Client API provides callbacks that can be triggered during a session. These callbacks provide integration points that manage a user's journey based on your applications logic.
The following diagram and table show and specify the conditions that trigger a Client API callback. You need to write functions for what happens when each particular callback is triggered.
This diagram shows the API callbacks sequence, along with a brief description of what triggers each callback in that sequence position. Note that
onHide can be triggered at two different sequence locations, and you must write their callback functions to handle both possibilities. Also note that a callback may not be triggered during a session. For example, if there are no internal Arkose API errors,
onError is not be triggered.
See Callbacks for more information about the specific callback functions.
Updated 5 months ago