sendRequest
fun sendRequest(action: String, payload: Map<String, Any>, timeout: Long = DEFAULT_TIMEOUT, completion: (Result<Map<String, Any?>>) -> Unit)
Sends a custom request from the user of the SDK to the experience. Will wait for a response to come back, and call completion callback on result
Parameters
action
User specified request action
payload
Key-value payload with user specific data to be sent
timeout
request timeout value in milliseconds, default 5s
completion
Request result callback