lib/agrid_client/api/leads_api.rb in agrid-client-0.0.1 vs lib/agrid_client/api/leads_api.rb in agrid-client-0.0.2

- old
+ new

@@ -1,54 +1,40 @@ -=begin -Agrid Quotes API - - - -OpenAPI spec version: 1.0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git - - -=end - -require "uri" - module AgridClient class LeadsApi attr_accessor :api_client def initialize(api_client = ApiClient.default) @api_client = api_client end - # - # Create a new lead + # + # Create a new lead # @param service_id Service Id # @param lead Lead Id # @param [Hash] opts the optional parameters # @return [Lead] def services_service_id_leads_post(service_id, lead, opts = {}) data, _status_code, _headers = services_service_id_leads_post_with_http_info(service_id, lead, opts) return data end - # - # Create a new lead + # + # Create a new lead # @param service_id Service Id # @param lead Lead Id # @param [Hash] opts the optional parameters # @return [Array<(Lead, Fixnum, Hash)>] Lead data, response status code and response headers def services_service_id_leads_post_with_http_info(service_id, lead, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: LeadsApi#services_service_id_leads_post ..." end - + # verify the required parameter 'service_id' is set fail "Missing the required parameter 'service_id' when calling services_service_id_leads_post" if service_id.nil? - + # verify the required parameter 'lead' is set fail "Missing the required parameter 'lead' when calling services_service_id_leads_post" if lead.nil? - + # resource path local_var_path = "/services/{service_id}/leads".sub('{format}','json').sub('{' + 'service_id' + '}', service_id.to_s) # query parameters query_params = {}