Created
January 17, 2016 11:04
-
-
Save pi-chan/ace4af18b284cda8d6c9 to your computer and use it in GitHub Desktop.
Add tasks to Todoist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'todoist' | |
tasks = %W( | |
hoge | |
fuga | |
) | |
Todoist::Base.setup('token') | |
project = Todoist::Project.all.select{|project| project.name == "proj name"}.first | |
tasks.each do |task| | |
project.add_task(task) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment