lib/purecloud/api/scripts_api.rb in purecloud-0.68.1 vs lib/purecloud/api/scripts_api.rb in purecloud-0.69.1
- old
+ new
@@ -284,20 +284,26 @@
# Get the published variables
#
# @param script_id Script ID
# @param [Hash] opts the optional parameters
+ # @option opts [String] :input input
+ # @option opts [String] :output output
+ # @option opts [String] :type type
# @return [Object]
def get_published_script_id_variables(script_id, opts = {})
data, status_code, headers = get_published_script_id_variables_with_http_info(script_id, opts)
return data
end
# Get the published variables
#
# @param script_id Script ID
# @param [Hash] opts the optional parameters
+ # @option opts [String] :input input
+ # @option opts [String] :output output
+ # @option opts [String] :type type
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
def get_published_script_id_variables_with_http_info(script_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ScriptsApi#get_published_script_id_variables ..."
end
@@ -308,9 +314,12 @@
# resource path
local_var_path = "/api/v2/scripts/published/{scriptId}/variables".sub('{format}','json').sub('{' + 'scriptId' + '}', script_id.to_s)
# query parameters
query_params = {}
+ query_params[:'input'] = opts[:'input'] if opts[:'input']
+ query_params[:'output'] = opts[:'output'] if opts[:'output']
+ query_params[:'type'] = opts[:'type'] if opts[:'type']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)