Module: LocalBitcoins::Users

Included in:
Client
Defined in:
lib/localbitcoins/client/users.rb

Instance Method Summary collapse

Instance Method Details

#account_info(username) ⇒ Object



7
8
9
# File 'lib/localbitcoins/client/users.rb', line 7

def (username)
  oauth_request(:get, "/api/account_info/#{username}/").data
end

#logoutObject

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

#myselfObject



3
4
5
# File 'lib/localbitcoins/client/users.rb', line 3

def myself
  oauth_request(:get, '/api/myself/').data
end