Module: LocalBitcoins::Users
- Included in:
- Client
- Defined in:
- lib/localbitcoins/client/users.rb
Instance Method Summary collapse
- #account_info(username) ⇒ Object
-
#logout ⇒ Object
immediately expires the currently authorized access_token.
- #myself ⇒ Object
Instance Method Details
#account_info(username) ⇒ Object
7 8 9 |
# File 'lib/localbitcoins/client/users.rb', line 7 def account_info(username) oauth_request(:get, "/api/account_info/#{username}/").data end |
#logout ⇒ Object
immediately expires the currently authorized access_token
12 13 14 |
# File 'lib/localbitcoins/client/users.rb', line 12 def logout oauth_request(:post, '/api/logout/') end |
#myself ⇒ Object
3 4 5 |
# File 'lib/localbitcoins/client/users.rb', line 3 def myself oauth_request(:get, '/api/myself/').data end |