Invite friendsΒΆ

You can invite other users on behalf of the user you’re authenticated as by using IUserActionsService and calling:

  • inviteUser
val myEnvironment = MyEnvironment()
val sdk = ComplianceSDK(myEnvironment)
val userActionsService = sdk.getService(

userActionsService?.inviteUser(email = "", userId = 123, token = "AAA.BBB.CCC") { error ->

   if(error == null){
     //Success!!! All went well.
   } else {
     //Uh-oh! It seems there's an error...

The callback will pass the following values on completion:

Value Type Meaning
error Throwable If non-null, an error occurred