module Tacokit::Client::Tokens
Methods for the Tokens
API @see developers.trello.com/advanced-reference/token
Public Instance Methods
delete_token(token)
click to toggle source
Delete an authorization token @param token [String] the token identifier @example Delete an authorization token
Tacokit.delete_token("aToken")
@see developers.trello.com/advanced-reference/token#delete-1-tokens-token
# File lib/tacokit/client/tokens.rb, line 20 def delete_token(token) delete token_path(token) end
token(token, options = nil)
click to toggle source
Get an authorization token @param token [String] the token identifier @param options [Hash] options to fetch the token with @return [Tacokit::Resource] the token resource @see developers.trello.com/advanced-reference/token#get-1-tokens-token
# File lib/tacokit/client/tokens.rb, line 11 def token(token, options = nil) get token_path(token), options end
token_resource(token, resource, *paths)
click to toggle source
@private
# File lib/tacokit/client/tokens.rb, line 25 def token_resource(token, resource, *paths) paths, options = extract_options(camp(resource), *paths) get token_path(token, *paths), options end
Private Instance Methods
token_path(*paths)
click to toggle source
# File lib/tacokit/client/tokens.rb, line 32 def token_path(*paths) path_join "tokens", *paths end