API

Common

Getting Started
Errors and Codes

User

Register
Login
Get User Profile
Update Profile
Upload Avatar
Reset Password
Logout
Get Public User Profile

User Token

List Tokens
Add Token
Delete Token
Set Default Token
Verify Token
Reset Verification

User vAtom

Get vAtoms by IDs
Get vAtom Inventory
Search vAtoms
Get Actions
Perform Actions
Trash vAtom

User Activity

Get My Threads
Get My Thread Messages
Send Message

Map

Geo Discover vAtoms
Geo Discover vAtom Groups

Update Stream

Web Socket

Face Infrastructure

Face View Registration
Vatom View
Face Selection Procedure

Reset Verification

Overview

Triggers a reset of the verification process for a User token (phone or email).

This will invalidate any existing verification items and send a new verification item to the specified token.

Once this call is made, the BLOCKv Platform will send a verification item to the supplied token. Depending on your app id configuration, the user may receive a verification code. In this case, you should use the verify token call to complete verification.

Required imports

import io.blockv.common.internal.net.rest.exception.BlockvException
import io.blockv.core.client.manager.UserManager.TokenType

Request

//reset token
blockv.getUserManager().resendVerification(/*token,token-type*/)

Note: You can access the function through the UserManager found in your blockv singleton. See Getting Started

Example

Send verification for user token email

// blockv is the Blockv sdk singleton created in getting started
blockv.getUserManager()
      .resendVerification("john.doe@example.com", UserManager.TokenType.EMAIL)
      .subscribe(() -> {/*Success*/},
      throwable -> {/*Failure*/});

Send verification user token phone number

// blockv is the Blockv sdk singleton created in getting started
blockv.getUserManager()
      .resendVerification("+11234567890", UserManager.TokenType.PHONE_NUMBER)
      .subscribe(() -> {/*Success*/},
      throwable -> {/*Failure*/});
©2020 BLOCKv
Info