Method: UltracartClient::StorefrontApi#insert_email_flow_folder_with_http_info
- Defined in:
- lib/ultracart_api/api/storefront_api.rb
#insert_email_flow_folder_with_http_info(storefront_oid, email_flow_folder, opts = {}) ⇒ Array<(EmailFlowFolderResponse, Integer, Hash)>
Insert email flow folder
8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 |
# File 'lib/ultracart_api/api/storefront_api.rb', line 8495 def insert_email_flow_folder_with_http_info(storefront_oid, email_flow_folder, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: StorefrontApi.insert_email_flow_folder ...' 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_email_flow_folder" end # verify the required parameter 'email_flow_folder' is set if @api_client.config.client_side_validation && email_flow_folder.nil? fail ArgumentError, "Missing the required parameter 'email_flow_folder' when calling StorefrontApi.insert_email_flow_folder" end # resource path local_var_path = '/storefront/{storefront_oid}/email/flow_folders'.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(email_flow_folder) # return_type return_type = opts[:debug_return_type] || 'EmailFlowFolderResponse' # auth_names auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey'] = opts.merge( :operation => :"StorefrontApi.insert_email_flow_folder", :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_email_flow_folder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |