class Requestsproxy::RequestsproxyApi
Attributes
Public Class Methods
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end
Public Instance Methods
@param account_id @param [Hash] opts the optional parameters @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 25 def account_star_rating(account_id, opts = {}) data, _status_code, _headers = account_star_rating_with_http_info(account_id, opts) data end
@param account_id @param [Hash] opts the optional parameters @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 33 def account_star_rating_with_http_info(account_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.account_star_rating ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.account_star_rating" end # resource path local_var_path = '/v2/{account_id}/star_rating/account'.sub('{' + 'account_id' + '}', account_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#account_star_rating\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param [Hash] opts the optional parameters @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 75 def auth_info(account_id, opts = {}) data, _status_code, _headers = auth_info_with_http_info(account_id, opts) data end
@param account_id @param [Hash] opts the optional parameters @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 83 def auth_info_with_http_info(account_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.auth_info ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.auth_info" end # resource path local_var_path = '/v2/{account_id}/info'.sub('{' + 'account_id' + '}', account_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#auth_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param body @param [Hash] opts the optional parameters @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 126 def create_webhook(account_id, body, opts = {}) data, _status_code, _headers = create_webhook_with_http_info(account_id, body, opts) data end
@param account_id @param body @param [Hash] opts the optional parameters @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 135 def create_webhook_with_http_info(account_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.create_webhook ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.create_webhook" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling RequestsproxyApi.create_webhook" end # resource path local_var_path = '/v2/{account_id}/webhooks'.sub('{' + 'account_id' + '}', account_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#create_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param id @param [Hash] opts the optional parameters @option opts [String] :access_token @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 183 def delete_webhook(account_id, id, opts = {}) data, _status_code, _headers = delete_webhook_with_http_info(account_id, id, opts) data end
@param account_id @param id @param [Hash] opts the optional parameters @option opts [String] :access_token @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 193 def delete_webhook_with_http_info(account_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.delete_webhook ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.delete_webhook" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling RequestsproxyApi.delete_webhook" end # resource path local_var_path = '/v2/{account_id}/webhooks/{id}'.sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} query_params[:'access_token'] = opts[:'access_token'] if !opts[:'access_token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#delete_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param [Hash] opts the optional parameters @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 240 def features(account_id, opts = {}) data, _status_code, _headers = features_with_http_info(account_id, opts) data end
@param account_id @param [Hash] opts the optional parameters @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 248 def features_with_http_info(account_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.features ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.features" end # resource path local_var_path = '/v2/{account_id}/features'.sub('{' + 'account_id' + '}', account_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#features\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param [Hash] opts the optional parameters @option opts [String] :first_id @option opts [String] :count @option opts [String] :page @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 293 def orders(account_id, opts = {}) data, _status_code, _headers = orders_with_http_info(account_id, opts) data end
@param account_id @param [Hash] opts the optional parameters @option opts [String] :first_id @option opts [String] :count @option opts [String] :page @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 304 def orders_with_http_info(account_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.orders ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.orders" end # resource path local_var_path = '/v2/{account_id}/orders'.sub('{' + 'account_id' + '}', account_id.to_s) # query parameters query_params = {} query_params[:'first_id'] = opts[:'first_id'] if !opts[:'first_id'].nil? query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param external_product_id @param [Hash] opts the optional parameters @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 350 def product(account_id, external_product_id, opts = {}) data, _status_code, _headers = product_with_http_info(account_id, external_product_id, opts) data end
@param account_id @param external_product_id @param [Hash] opts the optional parameters @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 406 def product_star_rating(account_id, external_product_id, opts = {}) data, _status_code, _headers = product_star_rating_with_http_info(account_id, external_product_id, opts) data end
@param account_id @param external_product_id @param [Hash] opts the optional parameters @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 415 def product_star_rating_with_http_info(account_id, external_product_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.product_star_rating ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.product_star_rating" end # verify the required parameter 'external_product_id' is set if @api_client.config.client_side_validation && external_product_id.nil? fail ArgumentError, "Missing the required parameter 'external_product_id' when calling RequestsproxyApi.product_star_rating" end # resource path local_var_path = '/v2/{account_id}/star_rating/products/{external_product_id}'.sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'external_product_id' + '}', external_product_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#product_star_rating\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param external_product_id @param [Hash] opts the optional parameters @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 359 def product_with_http_info(account_id, external_product_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.product ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.product" end # verify the required parameter 'external_product_id' is set if @api_client.config.client_side_validation && external_product_id.nil? fail ArgumentError, "Missing the required parameter 'external_product_id' when calling RequestsproxyApi.product" end # resource path local_var_path = '/v2/{account_id}/products/{external_product_id}'.sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'external_product_id' + '}', external_product_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#product\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param [Hash] opts the optional parameters @option opts [String] :page @option opts [String] :count @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 463 def products(account_id, opts = {}) data, _status_code, _headers = products_with_http_info(account_id, opts) data end
@param account_id @param [Hash] opts the optional parameters @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 517 def products_star_rating(account_id, opts = {}) data, _status_code, _headers = products_star_rating_with_http_info(account_id, opts) data end
@param account_id @param [Hash] opts the optional parameters @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 525 def products_star_rating_with_http_info(account_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.products_star_rating ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.products_star_rating" end # resource path local_var_path = '/v2/{account_id}/star_rating/products'.sub('{' + 'account_id' + '}', account_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#products_star_rating\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param [Hash] opts the optional parameters @option opts [String] :page @option opts [String] :count @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 473 def products_with_http_info(account_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.products ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.products" end # resource path local_var_path = '/v2/{account_id}/products'.sub('{' + 'account_id' + '}', account_id.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#products\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param [Hash] opts the optional parameters @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 567 def promoted_products(account_id, opts = {}) data, _status_code, _headers = promoted_products_with_http_info(account_id, opts) data end
@param account_id @param [Hash] opts the optional parameters @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 575 def promoted_products_with_http_info(account_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.promoted_products ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.promoted_products" end # resource path local_var_path = '/v2/{account_id}/promoted_products'.sub('{' + 'account_id' + '}', account_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#promoted_products\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param review_id @param [Hash] opts the optional parameters @option opts [BOOLEAN] :include_nested @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 619 def review(account_id, review_id, opts = {}) data, _status_code, _headers = review_with_http_info(account_id, review_id, opts) data end
@param account_id @param review_id @param [Hash] opts the optional parameters @option opts [BOOLEAN] :include_nested @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 629 def review_with_http_info(account_id, review_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.review ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.review" end # verify the required parameter 'review_id' is set if @api_client.config.client_side_validation && review_id.nil? fail ArgumentError, "Missing the required parameter 'review_id' when calling RequestsproxyApi.review" end # resource path local_var_path = '/v2/{account_id}/reviews/{review_id}'.sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'review_id' + '}', review_id.to_s) # query parameters query_params = {} query_params[:'include_nested'] = opts[:'include_nested'] if !opts[:'include_nested'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#review\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param [Hash] opts the optional parameters @option opts [String] :first_id @option opts [String] :count @option opts [String] :page @option opts [String] :include_site_reviews @option opts [String] :sort @option opts [String] :direction @option opts [String] :star @option opts [BOOLEAN] :include_nested @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 684 def reviews(account_id, opts = {}) data, _status_code, _headers = reviews_with_http_info(account_id, opts) data end
@param account_id @param external_product_id @param [Hash] opts the optional parameters @option opts [String] :first_id @option opts [String] :count @option opts [String] :page @option opts [String] :include_site_reviews @option opts [String] :sort @option opts [String] :direction @option opts [String] :star @option opts [BOOLEAN] :include_nested @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 759 def reviews_by_product(account_id, external_product_id, opts = {}) data, _status_code, _headers = reviews_by_product_with_http_info(account_id, external_product_id, opts) data end
@param account_id @param external_product_id @param [Hash] opts the optional parameters @option opts [String] :first_id @option opts [String] :count @option opts [String] :page @option opts [String] :include_site_reviews @option opts [String] :sort @option opts [String] :direction @option opts [String] :star @option opts [BOOLEAN] :include_nested @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 776 def reviews_by_product_with_http_info(account_id, external_product_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.reviews_by_product ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.reviews_by_product" end # verify the required parameter 'external_product_id' is set if @api_client.config.client_side_validation && external_product_id.nil? fail ArgumentError, "Missing the required parameter 'external_product_id' when calling RequestsproxyApi.reviews_by_product" end # resource path local_var_path = '/v2/{account_id}/products/{external_product_id}/reviews'.sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'external_product_id' + '}', external_product_id.to_s) # query parameters query_params = {} query_params[:'first_id'] = opts[:'first_id'] if !opts[:'first_id'].nil? query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'include_site_reviews'] = opts[:'include_site_reviews'] if !opts[:'include_site_reviews'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil? query_params[:'star'] = opts[:'star'] if !opts[:'star'].nil? query_params[:'include_nested'] = opts[:'include_nested'] if !opts[:'include_nested'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#reviews_by_product\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param [Hash] opts the optional parameters @option opts [String] :first_id @option opts [String] :count @option opts [String] :page @option opts [String] :include_site_reviews @option opts [String] :sort @option opts [String] :direction @option opts [String] :star @option opts [BOOLEAN] :include_nested @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 700 def reviews_with_http_info(account_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.reviews ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.reviews" end # resource path local_var_path = '/v2/{account_id}/reviews'.sub('{' + 'account_id' + '}', account_id.to_s) # query parameters query_params = {} query_params[:'first_id'] = opts[:'first_id'] if !opts[:'first_id'].nil? query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'include_site_reviews'] = opts[:'include_site_reviews'] if !opts[:'include_site_reviews'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil? query_params[:'star'] = opts[:'star'] if !opts[:'star'].nil? query_params[:'include_nested'] = opts[:'include_nested'] if !opts[:'include_nested'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#reviews\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param [Hash] opts the optional parameters @option opts [String] :external_product_id @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 831 def top_reviews(account_id, opts = {}) data, _status_code, _headers = top_reviews_with_http_info(account_id, opts) data end
@param account_id @param [Hash] opts the optional parameters @option opts [String] :external_product_id @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 840 def top_reviews_with_http_info(account_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.top_reviews ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.top_reviews" end # resource path local_var_path = '/v2/{account_id}/top_reviews'.sub('{' + 'account_id' + '}', account_id.to_s) # query parameters query_params = {} query_params[:'external_product_id'] = opts[:'external_product_id'] if !opts[:'external_product_id'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#top_reviews\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param id @param body @param [Hash] opts the optional parameters @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 885 def update_webhook(account_id, id, body, opts = {}) data, _status_code, _headers = update_webhook_with_http_info(account_id, id, body, opts) data end
@param account_id @param id @param body @param [Hash] opts the optional parameters @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 895 def update_webhook_with_http_info(account_id, id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.update_webhook ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.update_webhook" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling RequestsproxyApi.update_webhook" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling RequestsproxyApi.update_webhook" end # resource path local_var_path = '/v2/{account_id}/webhooks/{id}'.sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#update_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param user_id @param [Hash] opts the optional parameters @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 946 def user(account_id, user_id, opts = {}) data, _status_code, _headers = user_with_http_info(account_id, user_id, opts) data end
@param account_id @param user_id @param [Hash] opts the optional parameters @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 955 def user_with_http_info(account_id, user_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.user ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.user" end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? fail ArgumentError, "Missing the required parameter 'user_id' when calling RequestsproxyApi.user" end # resource path local_var_path = '/v2/{account_id}/users/{user_id}'.sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param id @param [Hash] opts the optional parameters @option opts [String] :access_token @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 1003 def webhook(account_id, id, opts = {}) data, _status_code, _headers = webhook_with_http_info(account_id, id, opts) data end
@param account_id @param [Hash] opts the optional parameters @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 1060 def webhook_events(account_id, opts = {}) data, _status_code, _headers = webhook_events_with_http_info(account_id, opts) data end
@param account_id @param [Hash] opts the optional parameters @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 1068 def webhook_events_with_http_info(account_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.webhook_events ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.webhook_events" end # resource path local_var_path = '/v2/{account_id}/webhook_events'.sub('{' + 'account_id' + '}', account_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#webhook_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param id @param [Hash] opts the optional parameters @option opts [String] :access_token @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 1013 def webhook_with_http_info(account_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.webhook ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.webhook" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling RequestsproxyApi.webhook" end # resource path local_var_path = '/v2/{account_id}/webhooks/{id}'.sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} query_params[:'access_token'] = opts[:'access_token'] if !opts[:'access_token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
@param account_id @param [Hash] opts the optional parameters @option opts [String] :access_token @return [RequestsproxyResponse]
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 1111 def webhooks(account_id, opts = {}) data, _status_code, _headers = webhooks_with_http_info(account_id, opts) data end
@param account_id @param [Hash] opts the optional parameters @option opts [String] :access_token @return [Array<(RequestsproxyResponse
, Fixnum, Hash)>] RequestsproxyResponse
data, response status code and response headers
# File lib/requestsproxy-rest/api/requestsproxy_api.rb, line 1120 def webhooks_with_http_info(account_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RequestsproxyApi.webhooks ...' end # verify the required parameter 'account_id' is set if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling RequestsproxyApi.webhooks" end # resource path local_var_path = '/v2/{account_id}/webhooks'.sub('{' + 'account_id' + '}', account_id.to_s) # query parameters query_params = {} query_params[:'access_token'] = opts[:'access_token'] if !opts[:'access_token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RequestsproxyResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: RequestsproxyApi#webhooks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end