# UltracartClient::IntegrationLogApi All URIs are relative to *https://secure.ultracart.com/rest/v2* | Method | HTTP request | Description | | ------ | ------------ | ----------- | | [**get_integration_log**](IntegrationLogApi.md#get_integration_log) | **GET** /integration_log/query/{pk}/{sk} | Retrieve an integration log | | [**get_integration_log_file**](IntegrationLogApi.md#get_integration_log_file) | **GET** /integration_log/query/{pk}/{sk}/{uuid} | Retrieve an integration log file | | [**get_integration_log_file_pdf**](IntegrationLogApi.md#get_integration_log_file_pdf) | **GET** /integration_log/query/{pk}/{sk}/{uuid}/pdf | Retrieve an integration log file converted to PDF | | [**get_integration_log_summaries_query**](IntegrationLogApi.md#get_integration_log_summaries_query) | **POST** /integration_log/summary/query | Retrieve integration log summaries | | [**get_integration_logs_query**](IntegrationLogApi.md#get_integration_logs_query) | **POST** /integration_log/query | Retrieve integration logs | ## get_integration_log > get_integration_log(pk, sk) Retrieve an integration log Retrieve an integration logs from the account based identifiers ### Examples ```ruby require 'time' require 'ultracart_api' require 'json' require 'yaml' require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. # As such, this might not be the best way to use this object. # Please see https://github.com/UltraCart/sdk_samples for working examples. api = UltracartClient::IntegrationLogApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) pk = 'pk_example' # String | sk = 'sk_example' # String | begin # Retrieve an integration log result = api_instance.get_integration_log(pk, sk) p result rescue UltracartClient::ApiError => e puts "Error when calling IntegrationLogApi->get_integration_log: #{e}" end ``` #### Using the get_integration_log_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> get_integration_log_with_http_info(pk, sk) ```ruby begin # Retrieve an integration log data, status_code, headers = api_instance.get_integration_log_with_http_info(pk, sk) p status_code # => 2xx p headers # => { ... } p data # => rescue UltracartClient::ApiError => e puts "Error when calling IntegrationLogApi->get_integration_log_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **pk** | **String** | | | | **sk** | **String** | | | ### Return type [**IntegrationLogResponse**](IntegrationLogResponse.md) ### Authorization [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_integration_log_file > File get_integration_log_file(pk, sk, uuid) Retrieve an integration log file Retrieve an integration log file from the account based identifiers ### Examples ```ruby require 'time' require 'ultracart_api' require 'json' require 'yaml' require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. # As such, this might not be the best way to use this object. # Please see https://github.com/UltraCart/sdk_samples for working examples. api = UltracartClient::IntegrationLogApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) pk = 'pk_example' # String | sk = 'sk_example' # String | uuid = 'uuid_example' # String | begin # Retrieve an integration log file result = api_instance.get_integration_log_file(pk, sk, uuid) p result rescue UltracartClient::ApiError => e puts "Error when calling IntegrationLogApi->get_integration_log_file: #{e}" end ``` #### Using the get_integration_log_file_with_http_info variant This returns an Array which contains the response data, status code and headers. > get_integration_log_file_with_http_info(pk, sk, uuid) ```ruby begin # Retrieve an integration log file data, status_code, headers = api_instance.get_integration_log_file_with_http_info(pk, sk, uuid) p status_code # => 2xx p headers # => { ... } p data # => File rescue UltracartClient::ApiError => e puts "Error when calling IntegrationLogApi->get_integration_log_file_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **pk** | **String** | | | | **sk** | **String** | | | | **uuid** | **String** | | | ### Return type **File** ### Authorization [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/octet-stream ## get_integration_log_file_pdf > File get_integration_log_file_pdf(pk, sk, uuid) Retrieve an integration log file converted to PDF Retrieve an integration log file from the account based identifiers ### Examples ```ruby require 'time' require 'ultracart_api' require 'json' require 'yaml' require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. # As such, this might not be the best way to use this object. # Please see https://github.com/UltraCart/sdk_samples for working examples. api = UltracartClient::IntegrationLogApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) pk = 'pk_example' # String | sk = 'sk_example' # String | uuid = 'uuid_example' # String | begin # Retrieve an integration log file converted to PDF result = api_instance.get_integration_log_file_pdf(pk, sk, uuid) p result rescue UltracartClient::ApiError => e puts "Error when calling IntegrationLogApi->get_integration_log_file_pdf: #{e}" end ``` #### Using the get_integration_log_file_pdf_with_http_info variant This returns an Array which contains the response data, status code and headers. > get_integration_log_file_pdf_with_http_info(pk, sk, uuid) ```ruby begin # Retrieve an integration log file converted to PDF data, status_code, headers = api_instance.get_integration_log_file_pdf_with_http_info(pk, sk, uuid) p status_code # => 2xx p headers # => { ... } p data # => File rescue UltracartClient::ApiError => e puts "Error when calling IntegrationLogApi->get_integration_log_file_pdf_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **pk** | **String** | | | | **sk** | **String** | | | | **uuid** | **String** | | | ### Return type **File** ### Authorization [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/octet-stream ## get_integration_log_summaries_query > get_integration_log_summaries_query(integration_log_summaries_query) Retrieve integration log summaries Retrieves a set of integration log summaries from the account based on a query object. ### Examples ```ruby require 'time' require 'ultracart_api' require 'json' require 'yaml' require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. # As such, this might not be the best way to use this object. # Please see https://github.com/UltraCart/sdk_samples for working examples. api = UltracartClient::IntegrationLogApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) integration_log_summaries_query = UltracartClient::IntegrationLogSummaryQueryRequest.new # IntegrationLogSummaryQueryRequest | Integration log summaries query begin # Retrieve integration log summaries result = api_instance.get_integration_log_summaries_query(integration_log_summaries_query) p result rescue UltracartClient::ApiError => e puts "Error when calling IntegrationLogApi->get_integration_log_summaries_query: #{e}" end ``` #### Using the get_integration_log_summaries_query_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> get_integration_log_summaries_query_with_http_info(integration_log_summaries_query) ```ruby begin # Retrieve integration log summaries data, status_code, headers = api_instance.get_integration_log_summaries_query_with_http_info(integration_log_summaries_query) p status_code # => 2xx p headers # => { ... } p data # => rescue UltracartClient::ApiError => e puts "Error when calling IntegrationLogApi->get_integration_log_summaries_query_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **integration_log_summaries_query** | [**IntegrationLogSummaryQueryRequest**](IntegrationLogSummaryQueryRequest.md) | Integration log summaries query | | ### Return type [**IntegrationLogSummaryQueryResponse**](IntegrationLogSummaryQueryResponse.md) ### Authorization [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## get_integration_logs_query > get_integration_logs_query(integration_log_query, opts) Retrieve integration logs Retrieves a set of integration logs from the account based on a query object. ### Examples ```ruby require 'time' require 'ultracart_api' require 'json' require 'yaml' require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. # As such, this might not be the best way to use this object. # Please see https://github.com/UltraCart/sdk_samples for working examples. api = UltracartClient::IntegrationLogApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) integration_log_query = UltracartClient::IntegrationLogQueryRequest.new # IntegrationLogQueryRequest | Integration log query opts = { _limit: 56, # Integer | The maximum number of records to return on this one API call. (Default 100, Max 500) _offset: 56, # Integer | Pagination of the record set. Offset is a zero based index. _sort: '_sort_example' # String | The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. } begin # Retrieve integration logs result = api_instance.get_integration_logs_query(integration_log_query, opts) p result rescue UltracartClient::ApiError => e puts "Error when calling IntegrationLogApi->get_integration_logs_query: #{e}" end ``` #### Using the get_integration_logs_query_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> get_integration_logs_query_with_http_info(integration_log_query, opts) ```ruby begin # Retrieve integration logs data, status_code, headers = api_instance.get_integration_logs_query_with_http_info(integration_log_query, opts) p status_code # => 2xx p headers # => { ... } p data # => rescue UltracartClient::ApiError => e puts "Error when calling IntegrationLogApi->get_integration_logs_query_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **integration_log_query** | [**IntegrationLogQueryRequest**](IntegrationLogQueryRequest.md) | Integration log query | | | **_limit** | **Integer** | The maximum number of records to return on this one API call. (Default 100, Max 500) | [optional][default to 100] | | **_offset** | **Integer** | Pagination of the record set. Offset is a zero based index. | [optional][default to 0] | | **_sort** | **String** | The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional] | ### Return type [**IntegrationLogQueryResponse**](IntegrationLogQueryResponse.md) ### Authorization [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json