lib/purecloud/api/greetings_api.rb in purecloud-0.39.1 vs lib/purecloud/api/greetings_api.rb in purecloud-0.40.1
- old
+ new
@@ -201,32 +201,32 @@
# Get media playback URI for this greeting
#
# @param greeting_id Greeting ID
# @param [Hash] opts the optional parameters
- # @option opts [String] :format_id The desired format (WAV, etc.) (default to WAV)
+ # @option opts [String] :format_id The desired media format. (default to WAV)
# @return [GreetingMediaInfo]
def get_greeting_id_media(greeting_id, opts = {})
data, status_code, headers = get_greeting_id_media_with_http_info(greeting_id, opts)
return data
end
# Get media playback URI for this greeting
#
# @param greeting_id Greeting ID
# @param [Hash] opts the optional parameters
- # @option opts [String] :format_id The desired format (WAV, etc.)
+ # @option opts [String] :format_id The desired media format.
# @return [Array<(GreetingMediaInfo, Fixnum, Hash)>] GreetingMediaInfo data, response status code and response headers
def get_greeting_id_media_with_http_info(greeting_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: GreetingsApi#get_greeting_id_media ..."
end
# verify the required parameter 'greeting_id' is set
fail "Missing the required parameter 'greeting_id' when calling get_greeting_id_media" if greeting_id.nil?
- if opts[:'format_id'] && !['WAV'].include?(opts[:'format_id'])
- fail 'invalid value for "format_id", must be one of WAV'
+ if opts[:'format_id'] && !['WAV', 'WEBM', 'WAV_ULAW', 'OGG_VORBIS', 'OGG_OPUS', 'NONE'].include?(opts[:'format_id'])
+ fail 'invalid value for "format_id", must be one of WAV, WEBM, WAV_ULAW, OGG_VORBIS, OGG_OPUS, NONE'
end
# resource path
local_var_path = "/api/v2/greetings/{greetingId}/media".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s)