Module: BWAPI::Client::User::Tokens
- Included in:
- BWAPI::Client::User
- Defined in:
- lib/bwapi/client/user/tokens.rb
Overview
Tokens module for user/tokens endpoints
Instance Method Summary collapse
-
#delete_user_token(access_token) ⇒ Object
Remove a token.
-
#user_tokens(opts = {}) ⇒ Object
Get all active API access tokens owned by the current user.
Instance Method Details
#delete_user_token(access_token) ⇒ Object
Remove a token
TODO: Add parameters documentation
16 17 18 |
# File 'lib/bwapi/client/user/tokens.rb', line 16 def delete_user_token(access_token) delete "/user/tokens/#{access_token}" end |
#user_tokens(opts = {}) ⇒ Object
Get all active API access tokens owned by the current user
TODO: Add parameters documentation
9 10 11 |
# File 'lib/bwapi/client/user/tokens.rb', line 9 def user_tokens(opts = {}) get '/user/tokens', opts end |