All URIs are relative to https://localhost:3000/api/v1
| Method | HTTP request | Description |
|---|---|---|
| get_events | GET /events | Return events |
| get_events_event_uuid | GET /events/{event_uuid} | Show event record |
| put_events | PUT /events | Update an event |
Array<Event> get_events(opts)
Return events
Return events
# load the gem
require 'bmx_api_ruby'
# setup authorization
BmxApiRuby.configure do |config|
# Configure HTTP basic authorization: base
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = BmxApiRuby::EventsApi.new
opts = {
after: 56, # Integer | <cursor> an event-ID
limit: 56 # Integer | max # of records
}
begin
#Return events
result = api_instance.get_events(opts)
p result
rescue BmxApiRuby::ApiError => e
puts "Exception when calling EventsApi->get_events: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| after | Integer | <cursor> an event-ID | [optional] |
| limit | Integer | max # of records | [optional] |
- Content-Type: Not defined
- Accept: application/json
Event get_events_event_uuid(event_uuid)
Show event record
Show event record
# load the gem
require 'bmx_api_ruby'
# setup authorization
BmxApiRuby.configure do |config|
# Configure HTTP basic authorization: base
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = BmxApiRuby::EventsApi.new
event_uuid = 56 # Integer |
begin
#Show event record
result = api_instance.get_events_event_uuid(event_uuid)
p result
rescue BmxApiRuby::ApiError => e
puts "Exception when calling EventsApi->get_events_event_uuid: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| event_uuid | Integer |
- Content-Type: Not defined
- Accept: application/json
put_events(id, etherscan_url)
Update an event
Update an event
# load the gem
require 'bmx_api_ruby'
# setup authorization
BmxApiRuby.configure do |config|
# Configure HTTP basic authorization: base
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = BmxApiRuby::EventsApi.new
id = 56 # Integer |
etherscan_url = "etherscan_url_example" # String |
begin
#Update an event
api_instance.put_events(id, etherscan_url)
rescue BmxApiRuby::ApiError => e
puts "Exception when calling EventsApi->put_events: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | ||
| etherscan_url | String |
nil (empty response body)
- Content-Type: multipart/form-data
- Accept: application/json