Skip to content

Instantly share code, notes, and snippets.

@aliou
Created December 19, 2012 16:10
Show Gist options
  • Save aliou/4337883 to your computer and use it in GitHub Desktop.
Save aliou/4337883 to your computer and use it in GitHub Desktop.
require 'vermonster'
cheddar = Vermonster::Client.new(:id => client_id, :secret => client_secret)
cheddar.use_token!(user_token)
tasks_id = []
tasks = cheddar.lists.find(1619).tasks
tasks.each do |task|
tasks_id.push(task['id'])
end
tasks_id.shuffle!
# cheddar.tasks.reorder(1619, tasks_id)
post = ""
tasks_id.each do |id|
post += "task[]=#{id}&"
end
puts post.chomp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment