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_clientuser_idphone_numberhas_ever_logged_insession_tokensaccess_tokendiscovery_keysis_onlinelast_seen_atnicknameprofile_urlmetadata
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.