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

Update Profile

Overview

Update the profile information for the current user.

After registration, most members of the user's profile may be updated.

Required imports

import io.blockv.common.builder.UpdateUserBuilder
import io.blockv.common.model.UserUpdate
import io.blockv.common.model.User
import io.blockv.common.internal.net.rest.exception.BlockvException

Request

//register new user
blockv.getUserManager().updateCurrentUser(new UserUpdate(/*...*/))

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

Supported Languages

  • English - en
  • Russian - ru

Example

Update current user profile

// blockv is the Blockv sdk singleton created in getting started
blockv.getUserManager().updateCurrentUser(new UpdateUserBuilder()
      .setFirstName("John")
      .setLastName("Doe")
      .setBirthday("1970-01-01")
      .setPassword("secret")
      .setLanguage("en")
      .build()
    ).subscribe(user -> {/*Success*/},
    throwable -> {/*Failure*/});
©2020 BLOCKv
Info