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

Logout

Overview

Log the current user out.

This call logs out the current user and clears their local access_token.

Required imports

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

Request

//logout
blockv.getUserManager().logout()

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

Example

Logout

// blockv is the Blockv sdk singleton created in getting started
blockv.getUserManager()
      .logout()
      .subscribe(() -> {/*Success*/},
      throwable -> {/*Failure*/});

Note, endpoints that require authentication (e.g. get user profile) will fail until the user has re-authenticated. Authentication is easily obtained by calling login.

©2020 BLOCKv
Info