Skip to content
Contents

Recipes

iOS Shortcuts

Log a chore with Siri or read your eggs of the week with iOS Shortcuts and the Nipto API.

The Get Contents of URL action of the Shortcuts app can call the Nipto API. You need your token and the ids of the tasks, found with { users { uid name } tasks { uid name } }.

Log a task with Siri

  1. Create a shortcut and name it as you will say it, for example Dishwasher done.
  2. Add Get Contents of URL with the URL https://nipto.app/graphql.
  3. Open Show More: set Method to POST, add the header Authorization with your token, and set Request Body to JSON.
  4. Add a Text field named query and a Dictionary named variables, as in the body below.
  5. Add Show Notification to confirm. Say "Hey Siri, Dishwasher done".
Request body
{
  "query": "mutation($doers: [String!], $done: String!) { createActivity(doers: $doers, done: $done) { uid task { value } } }",
  "variables": { "doers": ["YOUR_UID"], "done": "TASK_UID" }
}

Read your eggs of the week

  1. Add Get Contents of URL as above, with a JSON body whose query is the text below.
  2. Add Get Dictionary Value for data, then for activities.
  3. Add Repeat with Each, keep the activities whose user.uid is yours, and add up task.value with Calculate.
  4. Add Show Result, or put the shortcut on your Home Screen.
{ activities { user { uid } task { value } } }