Introduction
The DataSapien platform exposes 2 sets of programmatic APIs. The Mobile SDKs and the JavaScript SDK for scripts authored on the Orchestrator.
The Mobile SDKs are intended to be used to integrate DataSapien into your mobile application. They are available for Android, iOS, Flutter, and React Native. Mobile SDKs expose identical APIs for the available services. This allows for the same business logic to be implemented across all platforms.
The JavaScript SDK is intended to be used to create scripts on the Orchestrator to be executed by the DataSapien SDK. JavaScript SDK exposes global functions in addition to the APIs exposed by the mobile SDKs. These global functions provide control over the scripts execution and expose additional utilities for use within the scripts. For example, onSuccess function is used to signal the completion of the script step within the journey flow.
There is no JavaScript SDK that can be embedded into a browser based application. DataSapien JavaScript API is purely intended for the scripts authored to be executed by the DataSapien SDK.