Module: Tacokit::Authorization
- Included in:
- Client
- Defined in:
- lib/tacokit/authorization.rb
Instance Method Summary (collapse)
-
- (Object) authorize(params = {})
Get a token for making authorized requests to the Trello API.
- - (Object) authorize_url(params = {})
-
- (Object) get_app_key
rubocop:disable Style/AccessorMethodName.
Instance Method Details
- (Object) authorize(params = {})
Get a token for making authorized requests to the Trello API
17 18 19 |
# File 'lib/tacokit/authorization.rb', line 17 def (params = {}) open_url (params) end |
- (Object) authorize_url(params = {})
21 22 23 24 25 26 |
# File 'lib/tacokit/authorization.rb', line 21 def (params = {}) params[:key] ||= app_key params[:name] ||= "Tacokit" params[:response_type] ||= "token" web_url "authorize", params end |
- (Object) get_app_key
rubocop:disable Style/AccessorMethodName
3 4 5 |
# File 'lib/tacokit/authorization.rb', line 3 def get_app_key # rubocop:disable Style/AccessorMethodName open_url web_url("app-key") end |