Register a new user on the BLOCKv platform.
import io.blockv.common.builder.RegistrationBuilder
import io.blockv.common.model.User
import io.blockv.common.internal.net.rest.exception.BlockvException
//register new user
blockv.getUserManager().register(new Registration(...))
Note: You can access the function through the UserManager
found in your blockv
singleton. See Getting Started
// blockv is the Blockv sdk singleton created in getting started
blockv.getUserManager().register(new RegistrationBuilder()
.setFirstName("John")
.setLastName("Doe")
.setBirthday("1970-01-01")
.setPassword("secret")
.addEmail("john.doe@example.com")
.addPhoneNumber("+11234567890")
.build()
).subscribe(user -> {/*Success*/},
throwable -> {/*Failure*/});