NAME
WebService::SendBird::User - SendBird User
SYNOPSIS
use WebService::SendBird::User;
my $user = WebService::SendBird::User->new(
api_client => $api,
user_id => 'my_chat_user_1',
);
$user->update(nickname => 'cucumber');
my $token_data = $user->issue_session_token;
DESCRIPTION
Class for SendBird User. Information about structure could be found at API Documentation
new
Creates an instance of SendBird User
api_client
- SendBird API client WebService::SendBird.user_id
- Unique User Identifier
Getters
api_client
user_id
phone_number
has_ever_logged_in
session_tokens
access_token
discovery_keys
is_online
last_seen_at
nickname
profile_url
metadata
update
Updates the user at SendBird API
Information about parameters could be found at API Documentation
issue_session_token
Issues new session token and returns hash ref with token and expiration time of this token.