Skip to content

//sorisdk/com.iplateia.sorisdk/SORIApiClient/postActivity

postActivity

[androidJvm]
suspend fun postActivity(materialId: String, skipNetworkCheck: Boolean = false): SORICampaign?

This function posts an activity to the Sori API and retrieves a campaign object from the response.

Return

A SORICampaign object containing campaign details, or null if the request fails

Parameters

androidJvm

materialIdThe ID of the material to post
skipNetworkCheckSkip network availability check (for internal retry)

Throws

NetworkUnavailableExceptionif network is not available