public
Description: Reve is a Ruby-based library for use with interfacing with the Eve Online API.
Homepage: http://revetrac.crudvision.com
Clone URL: git://github.com/lisa/reve.git
reve / tester.rb
100644 17 lines (12 sloc) 0.4 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/ruby
require 'reve'
 
# Create an instance of the API
api = Reve::API.new
 
fids = [ 797400947,892008733 ] # converting from these IDs
fnames = [ 'CCP Garthagk', 'Raquel Smith' ] # converting from these names
 
ids = api.character_name({ :ids => fids })
names = api.character_id({ :names => fnames })
 
puts 'names to IDs output'
puts names.inspect
 
puts 'IDs to names output'
puts ids.inspect