Skip to content

//sorisdk/com.iplateia.sorisdk/SORIApiClient

SORIApiClient

[androidJvm]
open class SORIApiClient(applicationId: String, secretKey: String, sessionId: String)

Constructors

SORIApiClient[androidJvm]
constructor(applicationId: String, secretKey: String, sessionId: String)

Functions

NameSummary
authenticate[androidJvm]
suspend fun authenticate(): AuthResult
This function performs an authentication request to the Sori API and retrieves a token, updated status, and URL from the response. It authenticates the user with the Sori API using the provided application ID, secret key, and session ID.
downloadAudioPack[androidJvm]
suspend fun downloadAudioPack(fileUrl: String): String
This function downloads an updated audio pack from a given URL returns the local file path where the audio pack is saved.
postActivity[androidJvm]
suspend fun postActivity(materialId: String): SORICampaign?
This function posts an activity to the Sori API and retrieves a campaign object from the response.
visitActionUrl[androidJvm]
suspend fun visitActionUrl(url: URL): URL?