import Qonversion
Qonversion.launch(withKey: "project_key")
Qonversion.setProperty(.name, value: "Tim")
Qonversion.checkPermissions { (result, error) in
// Unlock access to your premium content
}
import com.qonversion.android.sdk.Qonversion
Qonversion.launch(this, "project_key", false)
Qonversion.setProperty(QUserProperties.Name, "Tim")
Qonversion.checkPermissions(object : QonversionPermissionsCallback {
override fun onSuccess(permissions: Map<String, QPermission>) {
// Unlock access to your premium content
}
override fun onError(error: QonversionError) {
// Handle error
}
})
import 'package:qonversion_flutter/qonversion_flutter.dart';
Qonversion.launch('project_key', isObserveMode: false);
Qonversion.setProperty(QUserProperty.name, 'Tim');
final permissions = await Qonversion.checkPermissions();
import Qonversion from 'react-native-qonversion';
Qonversion.launchWithKey('project_key');
Qonversion.setProperty(Property.NAME, 'Tim');
const permissions = await Qonversion.checkPermissions();
curl --request POST \
--url https://api.qonversion.io/v2/purchases \
--header 'Authorization: Bearer projectKey' \
--header 'Content-Type: application/json' \
--data '{"platform_product_id":"prod_NNN",' \
'"user":"user_id","currency":"USD","amount":999,' \
'"platform":"stripe","purchase_token":"sub_id"}'