AudioCall
Class Sms
Table of Contents
Constants
- AUDIO_DIR = 'http://dl.bitrix24.com/sender/audiocall/'
- METADATA_FILE = 'http://dl.bitrix24.com/sender/audiocall/metadata.json'
Methods
- getAudioFileUrlByCode() : bool|string
- Get audio file url by preset code
- getDefaultCode() : mixed
- Get default preset code
- getDurationByCode() : bool|int
- Get audio duration by preset code
- getSupportedLangs() : array<string|int, mixed>
- Get supported lang codes
- onPresetTemplateList() : array<string|int, mixed>
- Return base templates.
- presetExists() : bool
- Does preset exists
Constants
AUDIO_DIR
public
mixed
AUDIO_DIR
= 'http://dl.bitrix24.com/sender/audiocall/'
METADATA_FILE
public
mixed
METADATA_FILE
= 'http://dl.bitrix24.com/sender/audiocall/metadata.json'
Methods
getAudioFileUrlByCode()
Get audio file url by preset code
public
static getAudioFileUrlByCode(string $code) : bool|string
Parameters
- $code : string
-
Preset code.
Return values
bool|stringgetDefaultCode()
Get default preset code
public
static getDefaultCode() : mixed
getDurationByCode()
Get audio duration by preset code
public
static getDurationByCode(string $code) : bool|int
Parameters
- $code : string
-
Preset code.
Return values
bool|intgetSupportedLangs()
Get supported lang codes
public
static getSupportedLangs() : array<string|int, mixed>
Return values
array<string|int, mixed>onPresetTemplateList()
Return base templates.
public
static onPresetTemplateList([string|null $templateType = null ][, string|null $templateId = null ][, string|null $messageCode = null ]) : array<string|int, mixed>
Parameters
- $templateType : string|null = null
-
Template type.
- $templateId : string|null = null
-
Template ID.
- $messageCode : string|null = null
-
Message code.
Return values
array<string|int, mixed>presetExists()
Does preset exists
public
static presetExists(string $code) : bool
Parameters
- $code : string
-
Preset code.