# ESIClient::ContractsApi All URIs are relative to *https://esi.tech.ccp.is* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_characters_character_id_contracts**](ContractsApi.md#get_characters_character_id_contracts) | **GET** /v1/characters/{character_id}/contracts/ | Get contracts [**get_characters_character_id_contracts_contract_id_bids**](ContractsApi.md#get_characters_character_id_contracts_contract_id_bids) | **GET** /v1/characters/{character_id}/contracts/{contract_id}/bids/ | Get contract bids [**get_characters_character_id_contracts_contract_id_items**](ContractsApi.md#get_characters_character_id_contracts_contract_id_items) | **GET** /v1/characters/{character_id}/contracts/{contract_id}/items/ | Get contract items [**get_corporations_corporation_id_contracts**](ContractsApi.md#get_corporations_corporation_id_contracts) | **GET** /v1/corporations/{corporation_id}/contracts/ | Get coporation contracts [**get_corporations_corporation_id_contracts_contract_id_bids**](ContractsApi.md#get_corporations_corporation_id_contracts_contract_id_bids) | **GET** /v1/corporations/{corporation_id}/contracts/{contract_id}/bids/ | Get corporation contract bids [**get_corporations_corporation_id_contracts_contract_id_items**](ContractsApi.md#get_corporations_corporation_id_contracts_contract_id_items) | **GET** /v1/corporations/{corporation_id}/contracts/{contract_id}/items/ | Get corporation contract items # **get_characters_character_id_contracts** > Array<GetCharactersCharacterIdContracts200Ok> get_characters_character_id_contracts(character_id, opts) Get contracts Returns contracts available to a character, only if the character is issuer, acceptor or assignee. Only returns contracts no older than 30 days, or if the status is \"in_progress\". --- This route is cached for up to 300 seconds ### Example ```ruby # load the gem require 'esi_client' # setup authorization ESIClient.configure do |config| # Configure OAuth2 access token for authorization: evesso config.access_token = 'YOUR ACCESS TOKEN' end api_instance = ESIClient::ContractsApi.new character_id = 56 # Integer | An EVE character ID opts = { datasource: 'tranquility', # String | The server name you would like data from page: 1, # Integer | Which page of results to return token: 'token_example', # String | Access token to use if unable to set a header user_agent: 'user_agent_example', # String | Client identifier, takes precedence over headers x_user_agent: 'x_user_agent_example' # String | Client identifier, takes precedence over User-Agent } begin #Get contracts result = api_instance.get_characters_character_id_contracts(character_id, opts) p result rescue ESIClient::ApiError => e puts "Exception when calling ContractsApi->get_characters_character_id_contracts: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **character_id** | **Integer**| An EVE character ID | **datasource** | **String**| The server name you would like data from | [optional] [default to tranquility] **page** | **Integer**| Which page of results to return | [optional] [default to 1] **token** | **String**| Access token to use if unable to set a header | [optional] **user_agent** | **String**| Client identifier, takes precedence over headers | [optional] **x_user_agent** | **String**| Client identifier, takes precedence over User-Agent | [optional] ### Return type [**Array<GetCharactersCharacterIdContracts200Ok>**](GetCharactersCharacterIdContracts200Ok.md) ### Authorization [evesso](../README.md#evesso) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **get_characters_character_id_contracts_contract_id_bids** > Array<GetCharactersCharacterIdContractsContractIdBids200Ok> get_characters_character_id_contracts_contract_id_bids(character_idcontract_id, opts) Get contract bids Lists bids on a particular auction contract --- This route is cached for up to 300 seconds ### Example ```ruby # load the gem require 'esi_client' # setup authorization ESIClient.configure do |config| # Configure OAuth2 access token for authorization: evesso config.access_token = 'YOUR ACCESS TOKEN' end api_instance = ESIClient::ContractsApi.new character_id = 56 # Integer | An EVE character ID contract_id = 56 # Integer | ID of a contract opts = { datasource: 'tranquility', # String | The server name you would like data from token: 'token_example', # String | Access token to use if unable to set a header user_agent: 'user_agent_example', # String | Client identifier, takes precedence over headers x_user_agent: 'x_user_agent_example' # String | Client identifier, takes precedence over User-Agent } begin #Get contract bids result = api_instance.get_characters_character_id_contracts_contract_id_bids(character_idcontract_id, opts) p result rescue ESIClient::ApiError => e puts "Exception when calling ContractsApi->get_characters_character_id_contracts_contract_id_bids: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **character_id** | **Integer**| An EVE character ID | **contract_id** | **Integer**| ID of a contract | **datasource** | **String**| The server name you would like data from | [optional] [default to tranquility] **token** | **String**| Access token to use if unable to set a header | [optional] **user_agent** | **String**| Client identifier, takes precedence over headers | [optional] **x_user_agent** | **String**| Client identifier, takes precedence over User-Agent | [optional] ### Return type [**Array<GetCharactersCharacterIdContractsContractIdBids200Ok>**](GetCharactersCharacterIdContractsContractIdBids200Ok.md) ### Authorization [evesso](../README.md#evesso) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **get_characters_character_id_contracts_contract_id_items** > Array<GetCharactersCharacterIdContractsContractIdItems200Ok> get_characters_character_id_contracts_contract_id_items(character_idcontract_id, opts) Get contract items Lists items of a particular contract --- This route is cached for up to 3600 seconds ### Example ```ruby # load the gem require 'esi_client' # setup authorization ESIClient.configure do |config| # Configure OAuth2 access token for authorization: evesso config.access_token = 'YOUR ACCESS TOKEN' end api_instance = ESIClient::ContractsApi.new character_id = 56 # Integer | An EVE character ID contract_id = 56 # Integer | ID of a contract opts = { datasource: 'tranquility', # String | The server name you would like data from token: 'token_example', # String | Access token to use if unable to set a header user_agent: 'user_agent_example', # String | Client identifier, takes precedence over headers x_user_agent: 'x_user_agent_example' # String | Client identifier, takes precedence over User-Agent } begin #Get contract items result = api_instance.get_characters_character_id_contracts_contract_id_items(character_idcontract_id, opts) p result rescue ESIClient::ApiError => e puts "Exception when calling ContractsApi->get_characters_character_id_contracts_contract_id_items: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **character_id** | **Integer**| An EVE character ID | **contract_id** | **Integer**| ID of a contract | **datasource** | **String**| The server name you would like data from | [optional] [default to tranquility] **token** | **String**| Access token to use if unable to set a header | [optional] **user_agent** | **String**| Client identifier, takes precedence over headers | [optional] **x_user_agent** | **String**| Client identifier, takes precedence over User-Agent | [optional] ### Return type [**Array<GetCharactersCharacterIdContractsContractIdItems200Ok>**](GetCharactersCharacterIdContractsContractIdItems200Ok.md) ### Authorization [evesso](../README.md#evesso) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **get_corporations_corporation_id_contracts** > Array<GetCorporationsCorporationIdContracts200Ok> get_corporations_corporation_id_contracts(corporation_id, , opts) Get coporation contracts Returns contracts available to a coporation, only if the corporation is issuer, acceptor or assignee. Only returns contracts no older than 30 days, or if the status is \"in_progress\". --- This route is cached for up to 300 seconds ### Example ```ruby # load the gem require 'esi_client' # setup authorization ESIClient.configure do |config| # Configure OAuth2 access token for authorization: evesso config.access_token = 'YOUR ACCESS TOKEN' end api_instance = ESIClient::ContractsApi.new corporation_id = 56 # Integer | An EVE corporation ID opts = { datasource: 'tranquility', # String | The server name you would like data from page: 1, # Integer | Which page of results to return token: 'token_example', # String | Access token to use if unable to set a header user_agent: 'user_agent_example', # String | Client identifier, takes precedence over headers x_user_agent: 'x_user_agent_example' # String | Client identifier, takes precedence over User-Agent } begin #Get coporation contracts result = api_instance.get_corporations_corporation_id_contracts(corporation_id, , opts) p result rescue ESIClient::ApiError => e puts "Exception when calling ContractsApi->get_corporations_corporation_id_contracts: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **corporation_id** | **Integer**| An EVE corporation ID | **datasource** | **String**| The server name you would like data from | [optional] [default to tranquility] **page** | **Integer**| Which page of results to return | [optional] [default to 1] **token** | **String**| Access token to use if unable to set a header | [optional] **user_agent** | **String**| Client identifier, takes precedence over headers | [optional] **x_user_agent** | **String**| Client identifier, takes precedence over User-Agent | [optional] ### Return type [**Array<GetCorporationsCorporationIdContracts200Ok>**](GetCorporationsCorporationIdContracts200Ok.md) ### Authorization [evesso](../README.md#evesso) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **get_corporations_corporation_id_contracts_contract_id_bids** > Array<GetCorporationsCorporationIdContractsContractIdBids200Ok> get_corporations_corporation_id_contracts_contract_id_bids(contract_id, corporation_id, , opts) Get corporation contract bids Lists bids on a particular auction contract --- This route is cached for up to 3600 seconds ### Example ```ruby # load the gem require 'esi_client' # setup authorization ESIClient.configure do |config| # Configure OAuth2 access token for authorization: evesso config.access_token = 'YOUR ACCESS TOKEN' end api_instance = ESIClient::ContractsApi.new contract_id = 56 # Integer | ID of a contract corporation_id = 56 # Integer | An EVE corporation ID opts = { datasource: 'tranquility', # String | The server name you would like data from page: 1, # Integer | Which page of results to return token: 'token_example', # String | Access token to use if unable to set a header user_agent: 'user_agent_example', # String | Client identifier, takes precedence over headers x_user_agent: 'x_user_agent_example' # String | Client identifier, takes precedence over User-Agent } begin #Get corporation contract bids result = api_instance.get_corporations_corporation_id_contracts_contract_id_bids(contract_id, corporation_id, , opts) p result rescue ESIClient::ApiError => e puts "Exception when calling ContractsApi->get_corporations_corporation_id_contracts_contract_id_bids: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contract_id** | **Integer**| ID of a contract | **corporation_id** | **Integer**| An EVE corporation ID | **datasource** | **String**| The server name you would like data from | [optional] [default to tranquility] **page** | **Integer**| Which page of results to return | [optional] [default to 1] **token** | **String**| Access token to use if unable to set a header | [optional] **user_agent** | **String**| Client identifier, takes precedence over headers | [optional] **x_user_agent** | **String**| Client identifier, takes precedence over User-Agent | [optional] ### Return type [**Array<GetCorporationsCorporationIdContractsContractIdBids200Ok>**](GetCorporationsCorporationIdContractsContractIdBids200Ok.md) ### Authorization [evesso](../README.md#evesso) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **get_corporations_corporation_id_contracts_contract_id_items** > Array<GetCorporationsCorporationIdContractsContractIdItems200Ok> get_corporations_corporation_id_contracts_contract_id_items(contract_id, corporation_id, , opts) Get corporation contract items Lists items of a particular contract --- This route is cached for up to 3600 seconds ### Example ```ruby # load the gem require 'esi_client' # setup authorization ESIClient.configure do |config| # Configure OAuth2 access token for authorization: evesso config.access_token = 'YOUR ACCESS TOKEN' end api_instance = ESIClient::ContractsApi.new contract_id = 56 # Integer | ID of a contract corporation_id = 56 # Integer | An EVE corporation ID opts = { datasource: 'tranquility', # String | The server name you would like data from token: 'token_example', # String | Access token to use if unable to set a header user_agent: 'user_agent_example', # String | Client identifier, takes precedence over headers x_user_agent: 'x_user_agent_example' # String | Client identifier, takes precedence over User-Agent } begin #Get corporation contract items result = api_instance.get_corporations_corporation_id_contracts_contract_id_items(contract_id, corporation_id, , opts) p result rescue ESIClient::ApiError => e puts "Exception when calling ContractsApi->get_corporations_corporation_id_contracts_contract_id_items: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contract_id** | **Integer**| ID of a contract | **corporation_id** | **Integer**| An EVE corporation ID | **datasource** | **String**| The server name you would like data from | [optional] [default to tranquility] **token** | **String**| Access token to use if unable to set a header | [optional] **user_agent** | **String**| Client identifier, takes precedence over headers | [optional] **x_user_agent** | **String**| Client identifier, takes precedence over User-Agent | [optional] ### Return type [**Array<GetCorporationsCorporationIdContractsContractIdItems200Ok>**](GetCorporationsCorporationIdContractsContractIdItems200Ok.md) ### Authorization [evesso](../README.md#evesso) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json