Method: UltracartClient::StorefrontApi#insert_screen_recording_segment_with_http_info
- Defined in:
- lib/ultracart_api/api/storefront_api.rb
#insert_screen_recording_segment_with_http_info(storefront_oid, segment, opts = {}) ⇒ Array<(ScreenRecordingSegmentResponse, Integer, Hash)>
Insert screen recording segment
8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 |
# File 'lib/ultracart_api/api/storefront_api.rb', line 8860 def insert_screen_recording_segment_with_http_info(storefront_oid, segment, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: StorefrontApi.insert_screen_recording_segment ...' end # verify the required parameter 'storefront_oid' is set if @api_client.config.client_side_validation && storefront_oid.nil? fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling StorefrontApi.insert_screen_recording_segment" end # verify the required parameter 'segment' is set if @api_client.config.client_side_validation && segment.nil? fail ArgumentError, "Missing the required parameter 'segment' when calling StorefrontApi.insert_screen_recording_segment" end # resource path local_var_path = '/storefront/{storefront_oid}/screen_recordings/segments'.sub('{' + 'storefront_oid' + '}', CGI.escape(storefront_oid.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(segment) # return_type return_type = opts[:debug_return_type] || 'ScreenRecordingSegmentResponse' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"StorefrontApi.insert_screen_recording_segment", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: StorefrontApi#insert_screen_recording_segment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |