Skip to content

Latest commit

 

History

History
175 lines (117 loc) · 3.36 KB

File metadata and controls

175 lines (117 loc) · 3.36 KB

BmxApiRuby::EventsApi

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

get_events

Array<Event> get_events(opts)

Return events

Return events

Example

# 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

Parameters

Name Type Description Notes
after Integer <cursor> an event-ID [optional]
limit Integer max # of records [optional]

Return type

Array<Event>

Authorization

base

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_events_event_uuid

Event get_events_event_uuid(event_uuid)

Show event record

Show event record

Example

# 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

Parameters

Name Type Description Notes
event_uuid Integer

Return type

Event

Authorization

base

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

put_events

put_events(id, etherscan_url)

Update an event

Update an event

Example

# 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

Parameters

Name Type Description Notes
id Integer
etherscan_url String

Return type

nil (empty response body)

Authorization

base

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json