class Todoist::Sync::Reminders
Public Instance Methods
add(args)
click to toggle source
Add a reminder with a given hash of attributes and returns the reminder id.
Please note that item_id is required as is a date as specific in the documentation. This method can be tricky to all.
# File lib/todoist/sync/reminders.rb, line 14 def add(args) return @client.api_helper.add(args, "reminder_add") end
clear_locations()
click to toggle source
Clear locations which is used for location reminders
# File lib/todoist/sync/reminders.rb, line 30 def clear_locations args = {} return @client.api_helper.command(args, "clear_locations") end
collection()
click to toggle source
Return a Hash of reminders where key is the id of a reminder and value is a reminder
# File lib/todoist/sync/reminders.rb, line 7 def collection return @client.api_helper.collection("reminders") end
delete(reminder)
click to toggle source
Delete reminder given an array of reminders
# File lib/todoist/sync/reminders.rb, line 24 def delete(reminder) args = {id: reminder.id} return @client.api_helper.command(args, "reminder_delete") end
update(args)
click to toggle source
Update a reminder given a hash of attributes
# File lib/todoist/sync/reminders.rb, line 19 def update(args) return @client.api_helper.command(args, "reminder_update") end