lib/todoist/config.rb in todoist-ruby-0.2.2 vs lib/todoist/config.rb in todoist-ruby-0.2.3

- old
+ new

@@ -1,9 +1,9 @@ module Todoist class Config - TODOIST_API_URL = "https://todoist.com/API/v7" - + TODOIST_API_URL = "https://api.todoist.com/sync/v8" + # List of commands supported @@command_list = [ TODOIST_SYNC_COMMAND = "/sync", TODOIST_QUERY_COMMAND = "/query", TODOIST_TEMPLATES_IMPORT_INTO_PROJECT_COMMAND = "/templates/import_into_project", @@ -22,17 +22,17 @@ TODOIST_QUICK_ADD_COMMAND = "/quick/add", TODOIST_ACTIVITY_GET_COMMAND = "/activity/get", TODOIST_BACKUPS_GET_COMMAND = "/backups/get", TODOIST_USER_LOGIN_COMMAND = "/user/login" ] - + # Map of commands to URIs @@uri = nil - + # Artificial delay between requests to avoid API throttling @@delay_between_requests = 0 - + # Should API throttling happen (HTTP Error 429), retry_time between requests # with exponential backoff @@retry_time = 20 def self.retry_time=(retry_time) @@ -40,14 +40,14 @@ end def self.retry_time @@retry_time end - + def self.delay_between_requests=(delay_between_requests) @@delay_between_requests = delay_between_requests end - + def self.delay_between_requests @@delay_between_requests end def self.getURI