class Asterisk::ARI::Sounds
- Asterisk::ARI::Sounds
- Asterisk::ARI::Resources
- Reference
- Object
Defined in:
asterisk/ari/resources/sounds.crasterisk/ari/models/sounds_format_lang_pair.cr
asterisk/ari/models/sounds_sound.cr
Instance Method Summary
-
#get(sound_id : String) : HTTP::Client::Response | Sounds::Sound
Get a sound's details.
-
#list(lang : String? = nil, format : String? = nil) : HTTP::Client::Response | Array(Sounds::Sound)
List all sounds.
Instance methods inherited from class Asterisk::ARI::Resources
ari : ARI
ari
Constructor methods inherited from class Asterisk::ARI::Resources
new(ari)
new
Instance Method Detail
def get(sound_id : String) : HTTP::Client::Response | Sounds::Sound
#
Get a sound's details.
Arguments:
sound_id
- sound's id. (required);
def list(lang : String? = nil, format : String? = nil) : HTTP::Client::Response | Array(Sounds::Sound)
#
List all sounds.
Arguments:
lang
- lookup sound for a specific language;format
- lookup sound in a specific format;