getUserInfo

Lấy thông tin người dùng

api.getUserInfo(userId)

Parameters

  • userId string

Return

Promise<UserInfoResponse>

Types

export type ProfileInfo = User;

export type UserInfoResponse = {
    unchanged_profiles: Record<string, unknown>;
    phonebook_version: number;
    changed_profiles: Record<string, ProfileInfo>;
};

Examples

Lấy thông tin của người dùng

const userId = "0000000000000000001";
api.getUserInfo(userId)
    .then(console.log)
    .catch(console.error);

Last updated