Class: Todoist::Base
Overview
The Todoist::Base class is responsible for making all queries to the todoist web API.
Class Method Summary collapse
-
.setup(token, premium = false) ⇒ Object
Sets up the Todoist::Base class for making requests, setting the API key and if the account is a premium one or not.
Class Method Details
.setup(token, premium = false) ⇒ Object
Sets up the Todoist::Base class for making requests, setting the API key and if the account is a premium one or not.
14 15 16 17 18 |
# File 'lib/todoist/base.rb', line 14 def self.setup(token, premium = false) self.default_params :token => token @@premium = premium set_base_uri end |