Zoom
Table of Contents
Methods
- __construct() : mixed
- Zoom constructor.
- getAccessToken() : bool|mixed
- Gets zoom access token.
- getImChatConferenceUrl() : string|null
- Gets URL to join Zoom conference by making request to Zoom, or getting it from DB (if it is not expired).
- getRichMessageFields() : array<string|int, mixed>
- Gets array of a message fields for IM to post a rich message with conference URL.
- isActive() : bool
- Checks if zoom is active social service.
- isAvailable() : bool
- Checks if Zoom integration is available for this portal.
- isConnected() : bool
- Checks if zoom is connected to user profile.
- requestConferenceById() : array<string|int, mixed>|null
- Gets Zoom conference information.
Methods
__construct()
Zoom constructor.
public
__construct(int $userId, string $chatId) : mixed
Parameters
- $userId : int
- $chatId : string
Tags
getAccessToken()
Gets zoom access token.
public
getAccessToken() : bool|mixed
Tags
Return values
bool|mixedgetImChatConferenceUrl()
Gets URL to join Zoom conference by making request to Zoom, or getting it from DB (if it is not expired).
public
getImChatConferenceUrl() : string|null
Return values
string|nullgetRichMessageFields()
Gets array of a message fields for IM to post a rich message with conference URL.
public
getRichMessageFields(string $dialogId, string $link, int $userId) : array<string|int, mixed>
Parameters
- $dialogId : string
-
Chat id.
- $link : string
-
URL to Zoom conference.
- $userId : int
-
User Id who sends the message (private chat).
Tags
Return values
array<string|int, mixed>isActive()
Checks if zoom is active social service.
public
static isActive() : bool
Tags
Return values
boolisAvailable()
Checks if Zoom integration is available for this portal.
public
static isAvailable() : bool
Tags
Return values
boolisConnected()
Checks if zoom is connected to user profile.
public
static isConnected(mixed $userId) : bool
Parameters
- $userId : mixed
Tags
Return values
boolrequestConferenceById()
Gets Zoom conference information.
public
requestConferenceById(int $confId) : array<string|int, mixed>|null
Parameters
- $confId : int
-
External conference id.