Class: RBGlitch::PlayersAPI
Instance Method Summary
collapse
Methods inherited from BaseAPI
#initialize
Instance Method Details
#full_info(player_tsid, viewer_tsid = '') ⇒ Object
9
10
11
12
13
14
15
16
17
|
# File 'lib/rbglitch/players_api.rb', line 9
def full_info(player_tsid, viewer_tsid='')
params = {
'player_tsid' => player_tsid
}
unless viewer_tsid == ''
params['viewer_tsid'] = viewer_tsid
end
send('fullInfo', params)
end
|
#get_animations(player_tsid) ⇒ Object
19
20
21
22
23
24
|
# File 'lib/rbglitch/players_api.rb', line 19
def get_animations(player_tsid)
params = {
'player_tsid' => player_tsid
}
send('getAnimations', params)
end
|
#get_clothing(player_tsid) ⇒ Object
26
27
28
29
30
31
|
# File 'lib/rbglitch/players_api.rb', line 26
def get_clothing(player_tsid)
params = {
'player_tsid' => player_tsid
}
send('getClothing', params)
end
|
#info ⇒ Object
33
34
35
36
37
38
|
# File 'lib/rbglitch/players_api.rb', line 33
def info
params = {
'oauth_token' => @player_token
}
send('info', params)
end
|
#inventory(defs = 0) ⇒ Object
40
41
42
43
44
45
46
47
48
49
|
# File 'lib/rbglitch/players_api.rb', line 40
def inventory(defs = 0)
params = {
'oauth_token' => @player_token
}
if defs == 1
params['defs'] = 1
end
send('inventory', params)
end
|
#stats ⇒ Object
51
52
53
54
55
56
|
# File 'lib/rbglitch/players_api.rb', line 51
def stats
params = {
'oauth_token' => @player_token
}
send('stats', params)
end
|