Class: CryptoApis::CallbackDataApi
- Inherits:
-
Object
- Object
- CryptoApis::CallbackDataApi
- Defined in:
- lib/crypto_apis/api/callback_data_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_address_details_from_callback(blockchain, network, address, opts = {}) ⇒ GetAddressDetailsFromCallbackR
Get Address Details From Callback This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription.
-
#get_address_details_from_callback_with_http_info(blockchain, network, address, opts = {}) ⇒ Array<(GetAddressDetailsFromCallbackR, Integer, Hash)>
Get Address Details From Callback This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription.
-
#get_block_details_by_block_hash_from_callback(blockchain, network, block_hash, opts = {}) ⇒ GetBlockDetailsByBlockHashFromCallbackR
Get Block Details By Block Hash From Callback This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription.
-
#get_block_details_by_block_hash_from_callback_with_http_info(blockchain, network, block_hash, opts = {}) ⇒ Array<(GetBlockDetailsByBlockHashFromCallbackR, Integer, Hash)>
Get Block Details By Block Hash From Callback This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription.
-
#get_block_details_by_block_height_from_callback(blockchain, network, block_height, opts = {}) ⇒ GetBlockDetailsByBlockHeightFromCallbackR
Get Block Details By Block Height From Callback This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription.
-
#get_block_details_by_block_height_from_callback_with_http_info(blockchain, network, block_height, opts = {}) ⇒ Array<(GetBlockDetailsByBlockHeightFromCallbackR, Integer, Hash)>
Get Block Details By Block Height From Callback This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription.
-
#get_transaction_details_by_transaction_id_from_callback(blockchain, network, transaction_id, opts = {}) ⇒ GetTransactionDetailsByTransactionIDFromCallbackR
Get Transaction Details By Transaction ID From Callback This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription.
-
#get_transaction_details_by_transaction_id_from_callback_with_http_info(blockchain, network, transaction_id, opts = {}) ⇒ Array<(GetTransactionDetailsByTransactionIDFromCallbackR, Integer, Hash)>
Get Transaction Details By Transaction ID From Callback This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription.
-
#initialize(api_client = ApiClient.default) ⇒ CallbackDataApi
constructor
A new instance of CallbackDataApi.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ CallbackDataApi
Returns a new instance of CallbackDataApi.
19 20 21 |
# File 'lib/crypto_apis/api/callback_data_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/crypto_apis/api/callback_data_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#get_address_details_from_callback(blockchain, network, address, opts = {}) ⇒ GetAddressDetailsFromCallbackR
Get Address Details From Callback This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription. It provides data for a specific address from the Event it takes part in only if the address already exists in the blockchain events subscriptions. It applies only for Events related to that customer.
30 31 32 33 |
# File 'lib/crypto_apis/api/callback_data_api.rb', line 30 def get_address_details_from_callback(blockchain, network, address, opts = {}) data, _status_code, _headers = get_address_details_from_callback_with_http_info(blockchain, network, address, opts) data end |
#get_address_details_from_callback_with_http_info(blockchain, network, address, opts = {}) ⇒ Array<(GetAddressDetailsFromCallbackR, Integer, Hash)>
Get Address Details From Callback This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription. It provides data for a specific address from the Event it takes part in only if the address already exists in the blockchain events subscriptions. It applies only for Events related to that customer.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/crypto_apis/api/callback_data_api.rb', line 43 def get_address_details_from_callback_with_http_info(blockchain, network, address, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CallbackDataApi.get_address_details_from_callback ...' end # verify the required parameter 'blockchain' is set if @api_client.config.client_side_validation && blockchain.nil? fail ArgumentError, "Missing the required parameter 'blockchain' when calling CallbackDataApi.get_address_details_from_callback" end # verify enum value allowable_values = ["bitcoin", "bitcoin-cash", "litecoin", "dash", "dogecoin", "ethereum", "ethereum-classic", "binance-smart-chain", "xrp", "zilliqa", "zcash"] if @api_client.config.client_side_validation && !allowable_values.include?(blockchain) fail ArgumentError, "invalid value for \"blockchain\", must be one of #{allowable_values}" end # verify the required parameter 'network' is set if @api_client.config.client_side_validation && network.nil? fail ArgumentError, "Missing the required parameter 'network' when calling CallbackDataApi.get_address_details_from_callback" end # verify enum value allowable_values = ["mainnet", "testnet", "ropsten", "mordor"] if @api_client.config.client_side_validation && !allowable_values.include?(network) fail ArgumentError, "invalid value for \"network\", must be one of #{allowable_values}" end # verify the required parameter 'address' is set if @api_client.config.client_side_validation && address.nil? fail ArgumentError, "Missing the required parameter 'address' when calling CallbackDataApi.get_address_details_from_callback" end # resource path local_var_path = '/blockchain-events/{blockchain}/{network}/addresses/{address}'.sub('{' + 'blockchain' + '}', CGI.escape(blockchain.to_s)).sub('{' + 'network' + '}', CGI.escape(network.to_s)).sub('{' + 'address' + '}', CGI.escape(address.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'context'] = opts[:'context'] if !opts[:'context'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'GetAddressDetailsFromCallbackR' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"CallbackDataApi.get_address_details_from_callback", :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(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallbackDataApi#get_address_details_from_callback\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_block_details_by_block_hash_from_callback(blockchain, network, block_hash, opts = {}) ⇒ GetBlockDetailsByBlockHashFromCallbackR
Get Block Details By Block Hash From Callback This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription. It provides data for a specific block by providing the ‘blockHash` attribute from the Event it takes part in and after making check that the customer in question does have a subscription for this block. It applies only for Events related to that user.
118 119 120 121 |
# File 'lib/crypto_apis/api/callback_data_api.rb', line 118 def get_block_details_by_block_hash_from_callback(blockchain, network, block_hash, opts = {}) data, _status_code, _headers = get_block_details_by_block_hash_from_callback_with_http_info(blockchain, network, block_hash, opts) data end |
#get_block_details_by_block_hash_from_callback_with_http_info(blockchain, network, block_hash, opts = {}) ⇒ Array<(GetBlockDetailsByBlockHashFromCallbackR, Integer, Hash)>
Get Block Details By Block Hash From Callback This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription. It provides data for a specific block by providing the `blockHash` attribute from the Event it takes part in and after making check that the customer in question does have a subscription for this block. It applies only for Events related to that user.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
# File 'lib/crypto_apis/api/callback_data_api.rb', line 131 def get_block_details_by_block_hash_from_callback_with_http_info(blockchain, network, block_hash, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CallbackDataApi.get_block_details_by_block_hash_from_callback ...' end # verify the required parameter 'blockchain' is set if @api_client.config.client_side_validation && blockchain.nil? fail ArgumentError, "Missing the required parameter 'blockchain' when calling CallbackDataApi.get_block_details_by_block_hash_from_callback" end # verify enum value allowable_values = ["bitcoin", "bitcoin-cash", "litecoin", "dash", "dogecoin", "ethereum", "binance-smart-chain", "ethereum-classic", "zilliqa", "xrp", "zcash"] if @api_client.config.client_side_validation && !allowable_values.include?(blockchain) fail ArgumentError, "invalid value for \"blockchain\", must be one of #{allowable_values}" end # verify the required parameter 'network' is set if @api_client.config.client_side_validation && network.nil? fail ArgumentError, "Missing the required parameter 'network' when calling CallbackDataApi.get_block_details_by_block_hash_from_callback" end # verify enum value allowable_values = ["mainnet", "testnet", "ropsten", "mordor"] if @api_client.config.client_side_validation && !allowable_values.include?(network) fail ArgumentError, "invalid value for \"network\", must be one of #{allowable_values}" end # verify the required parameter 'block_hash' is set if @api_client.config.client_side_validation && block_hash.nil? fail ArgumentError, "Missing the required parameter 'block_hash' when calling CallbackDataApi.get_block_details_by_block_hash_from_callback" end # resource path local_var_path = '/blockcain-events/{blockchain}/{network}/blocks/hash/{blockHash}'.sub('{' + 'blockchain' + '}', CGI.escape(blockchain.to_s)).sub('{' + 'network' + '}', CGI.escape(network.to_s)).sub('{' + 'blockHash' + '}', CGI.escape(block_hash.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'context'] = opts[:'context'] if !opts[:'context'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'GetBlockDetailsByBlockHashFromCallbackR' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"CallbackDataApi.get_block_details_by_block_hash_from_callback", :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(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallbackDataApi#get_block_details_by_block_hash_from_callback\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_block_details_by_block_height_from_callback(blockchain, network, block_height, opts = {}) ⇒ GetBlockDetailsByBlockHeightFromCallbackR
Get Block Details By Block Height From Callback This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription. It provides data for the specific Block by providing the ‘blockHeight` attribute from the Event it takes part in. It applies only for Events related to that user.
206 207 208 209 |
# File 'lib/crypto_apis/api/callback_data_api.rb', line 206 def get_block_details_by_block_height_from_callback(blockchain, network, block_height, opts = {}) data, _status_code, _headers = get_block_details_by_block_height_from_callback_with_http_info(blockchain, network, block_height, opts) data end |
#get_block_details_by_block_height_from_callback_with_http_info(blockchain, network, block_height, opts = {}) ⇒ Array<(GetBlockDetailsByBlockHeightFromCallbackR, Integer, Hash)>
Get Block Details By Block Height From Callback This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription. It provides data for the specific Block by providing the `blockHeight` attribute from the Event it takes part in. It applies only for Events related to that user.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 |
# File 'lib/crypto_apis/api/callback_data_api.rb', line 219 def get_block_details_by_block_height_from_callback_with_http_info(blockchain, network, block_height, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CallbackDataApi.get_block_details_by_block_height_from_callback ...' end # verify the required parameter 'blockchain' is set if @api_client.config.client_side_validation && blockchain.nil? fail ArgumentError, "Missing the required parameter 'blockchain' when calling CallbackDataApi.get_block_details_by_block_height_from_callback" end # verify enum value allowable_values = ["bitcoin", "bitcoin-cash", "litecoin", "dash", "dogecoin", "ethereum", "binance-smart-chain", "ethereum-classic", "zilliqa", "xrp", "zcash"] if @api_client.config.client_side_validation && !allowable_values.include?(blockchain) fail ArgumentError, "invalid value for \"blockchain\", must be one of #{allowable_values}" end # verify the required parameter 'network' is set if @api_client.config.client_side_validation && network.nil? fail ArgumentError, "Missing the required parameter 'network' when calling CallbackDataApi.get_block_details_by_block_height_from_callback" end # verify enum value allowable_values = ["mainnet", "testnet", "ropsten", "mordor"] if @api_client.config.client_side_validation && !allowable_values.include?(network) fail ArgumentError, "invalid value for \"network\", must be one of #{allowable_values}" end # verify the required parameter 'block_height' is set if @api_client.config.client_side_validation && block_height.nil? fail ArgumentError, "Missing the required parameter 'block_height' when calling CallbackDataApi.get_block_details_by_block_height_from_callback" end # resource path local_var_path = '/blockcain-events/{blockchain}/{network}/blocks/height/{blockHeight}'.sub('{' + 'blockchain' + '}', CGI.escape(blockchain.to_s)).sub('{' + 'network' + '}', CGI.escape(network.to_s)).sub('{' + 'blockHeight' + '}', CGI.escape(block_height.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'context'] = opts[:'context'] if !opts[:'context'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'GetBlockDetailsByBlockHeightFromCallbackR' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"CallbackDataApi.get_block_details_by_block_height_from_callback", :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(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallbackDataApi#get_block_details_by_block_height_from_callback\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_transaction_details_by_transaction_id_from_callback(blockchain, network, transaction_id, opts = {}) ⇒ GetTransactionDetailsByTransactionIDFromCallbackR
Get Transaction Details By Transaction ID From Callback This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription. It provides data for a specific transaction from the Event it takes part in by providing the ‘transactionId` attribute. It applies only for Events related to that user.
294 295 296 297 |
# File 'lib/crypto_apis/api/callback_data_api.rb', line 294 def get_transaction_details_by_transaction_id_from_callback(blockchain, network, transaction_id, opts = {}) data, _status_code, _headers = get_transaction_details_by_transaction_id_from_callback_with_http_info(blockchain, network, transaction_id, opts) data end |
#get_transaction_details_by_transaction_id_from_callback_with_http_info(blockchain, network, transaction_id, opts = {}) ⇒ Array<(GetTransactionDetailsByTransactionIDFromCallbackR, Integer, Hash)>
Get Transaction Details By Transaction ID From Callback This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription. It provides data for a specific transaction from the Event it takes part in by providing the `transactionId` attribute. It applies only for Events related to that user.
307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 |
# File 'lib/crypto_apis/api/callback_data_api.rb', line 307 def get_transaction_details_by_transaction_id_from_callback_with_http_info(blockchain, network, transaction_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CallbackDataApi.get_transaction_details_by_transaction_id_from_callback ...' end # verify the required parameter 'blockchain' is set if @api_client.config.client_side_validation && blockchain.nil? fail ArgumentError, "Missing the required parameter 'blockchain' when calling CallbackDataApi.get_transaction_details_by_transaction_id_from_callback" end # verify enum value allowable_values = ["bitcoin", "ethereum", "bitcoin-cash", "litecoin", "dash", "dogecoin", "zcash", "ethereum-classic", "binance-smart-chain", "zilliqa", "xrp"] if @api_client.config.client_side_validation && !allowable_values.include?(blockchain) fail ArgumentError, "invalid value for \"blockchain\", must be one of #{allowable_values}" end # verify the required parameter 'network' is set if @api_client.config.client_side_validation && network.nil? fail ArgumentError, "Missing the required parameter 'network' when calling CallbackDataApi.get_transaction_details_by_transaction_id_from_callback" end # verify enum value allowable_values = ["mainnet", "testnet", "ropsten", "mordor"] if @api_client.config.client_side_validation && !allowable_values.include?(network) fail ArgumentError, "invalid value for \"network\", must be one of #{allowable_values}" end # verify the required parameter 'transaction_id' is set if @api_client.config.client_side_validation && transaction_id.nil? fail ArgumentError, "Missing the required parameter 'transaction_id' when calling CallbackDataApi.get_transaction_details_by_transaction_id_from_callback" end # resource path local_var_path = '/blockchain-events/{blockchain}/{network}/transactions/{transactionId}'.sub('{' + 'blockchain' + '}', CGI.escape(blockchain.to_s)).sub('{' + 'network' + '}', CGI.escape(network.to_s)).sub('{' + 'transactionId' + '}', CGI.escape(transaction_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'context'] = opts[:'context'] if !opts[:'context'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'GetTransactionDetailsByTransactionIDFromCallbackR' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"CallbackDataApi.get_transaction_details_by_transaction_id_from_callback", :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(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallbackDataApi#get_transaction_details_by_transaction_id_from_callback\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |