Module: Tacokit::Authorization
- Included in:
- Client
- Defined in:
- lib/tacokit/authorization.rb
Instance Method Summary collapse
-
#authorize(params = {}) ⇒ Object
Get a token for making authorized requests to the Trello API.
- #authorize_url(params = {}) ⇒ Object
-
#get_app_key ⇒ Object
rubocop:disable Style/AccessorMethodName.
Instance Method Details
#authorize(params = {}) ⇒ Object
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 |
#authorize_url(params = {}) ⇒ Object
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 |
#get_app_key ⇒ Object
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 |