subscribe

suspend fun subscribe(cohortId: String? = null, subscriptionId: String? = null): SubscriptionWithQuestionnaires

Use this function to subscribe the device to your(one of your) cohort(s).

Return

Flow object containing the status of the response and the SubscriptionWithQuestionnaires object. The QAResponse will hold info about the study if the call is successful or a message about the failed call.

Parameters

cohortId

can be cohort ID (aef3...de19) or subscription ID (138e...28eb).

subscriptionId

can be cohort ID (aef3...de19) or subscription ID (138e...28eb).