The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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

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.