chrisbillows / raindrop-todoist-syncer

Converts favourited Raindrops into tasks in Todoist.
2 stars 1 forks source link

Capture Todoist task creation confirmation and add to the database. #17

Open chrisbillows opened 8 months ago

chrisbillows commented 8 months ago

When posting a task write request to the Todoist API, Todoist responds with a Todoist object which contains details of the newly created task. See Docs

The Task object has this structure:

Task(
    id: "2995104339",
    content: "Buy Milk",
    description: "",
    comment_count: 0,
    is_completed: False,
    order: 1,
    priority: 1,
    project_id: "2203306141",
    labels: [],
    due: None,
    section_id: None,
    parent_id: None,
    creator_id: "2671355",
    created_at: "2019-12-11T22:36:50.000000Z",
    assignee_id: None,
    assigner_id: None,
    url: "https://todoist.com/showTask?id=2995104339"
)

We want to:

  1. Capture some of the fields.
  2. Add them to the Raindrop objected that was used to create the task object.
  3. We then want all this information written to the database.

Acceptance Criteria

Given:

When:

Then: