https://github.com/simonbs/thingsapp
Node module for creating todos in Things.app
https://github.com/simonbs/thingsapp
macos node osx things todo
Last synced: 10 months ago
JSON representation
Node module for creating todos in Things.app
- Host: GitHub
- URL: https://github.com/simonbs/thingsapp
- Owner: simonbs
- Created: 2017-01-28T18:59:54.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-28T20:08:16.000Z (about 9 years ago)
- Last Synced: 2025-03-30T17:51:13.230Z (12 months ago)
- Topics: macos, node, osx, things, todo
- Language: JavaScript
- Size: 3.91 KB
- Stars: 39
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# thingsapp
Node module for creating todos in Things.app by Cultured Code.
## Installation
Install using `npm install --save git+ssh://git@github.com/simonbs/thingsapp.git`.
## Usage
When creating an instance of Things, you should pass your account ID and start index. Find these by inspecting HTTP traffic to `https://cloud.culturedcode.com` using [Charles](https://www.charlesproxy.com) or similar.
The UUID in the requests is your account ID. Consider the following call to the Things Cloud API.
```
https://cloud.culturedcode.com/version/1/history/THIS-IS-YOUR-ACCOUNT-ID/items?start-index=5612
```
In above request, `THIS-IS-YOUR-ACCOUNT-ID` is your account ID and your start index is 5612.
When you have acquired both your account ID and your start index you can use the thingsapp module as shown below.
```javascript
var todo = {
title: 'Pack for vacation',
note: 'GoPro, selfiestick, MacBook charger and tickets'
}
var things = new Things('THIS-IS-YOUR-ACCOUNT-ID', 5612)
things.createTodo(todo, function(err) {
// Handle errors.
})
```
In your todo you can set the `where` key to either `inbox` or `today` to specify the location of the todo. Default is the inbox.