Skip to content

Instantly share code, notes, and snippets.

@pi-chan
Created January 17, 2016 11:04
Show Gist options
  • Save pi-chan/ace4af18b284cda8d6c9 to your computer and use it in GitHub Desktop.
Save pi-chan/ace4af18b284cda8d6c9 to your computer and use it in GitHub Desktop.
Add tasks to Todoist
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