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

List Tokens

Overview

Fetch a list of all the tokens linked to the account of the current user.

This is useful when presenting the user with a comprehensive list of all the tokens linked to their account.

Required imports

import io.blockv.common.model.Token
import io.blockv.common.internal.net.rest.exception.BlockvException

Request

//returns the current user tokens
blockv.getUserManager().getCurrentUserTokens();

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

Example

Get user tokens

// blockv is the BLOCKv SDK singleton created in getting started
blockv.getUserManager().getCurrentUserTokens()
      .subscribe(tokens -> {/*Success*/},
      throwable -> {/*Failure*/});

Token Model

NameTypeDescription
userIdStringUnique identifier of the user object that is referenced by the token.
appIdStringUnique identifier of the application object that created the user token.
tokenTypeStringThe type of the token, for example email .
tokenStringThe value of the token, for example john.appleseed@blockv.com .
isConfirmedbooleanFlag to indicate if the token is confirmed, for example after the user clicked a verification link in an email.
isDefaultbooleanFlag to indicate if the token is the primary token. The primary token is used when no other token is explicitly selected, for example to send messages. This will automatically set the isPublic flag of an existing token to false , because only one token can be the primary token.
©2020 BLOCKv
Info