UNPKG

1.22 kBMarkdownView Raw
1
2
3## Output parsing from Notification Center in Mac OS X
4
5The response will be given as an object. E.g., when running ```notifier.notify({list: "ALL"})```, this could be the response:
6**Note: Deprecated as of version `3.0.0`.**
7
8```
9{ response:
10 [ { GroupID: null,
11 Title: 'Terminal',
12 Subtitle: null,
13 Message: 'Another message',
14 'Delivered At': Wed Dec 12 2012 15:23:38 GMT+0100 (CET) },
15 { GroupID: null,
16 Title: 'Terminal',
17 Subtitle: null,
18 Message: 'Another message',
19 'Delivered At': Wed Dec 12 2012 15:23:31 GMT+0100 (CET) },
20 { GroupID: 2,
21 Title: 'Terminal',
22 Subtitle: null,
23 Message: 'Testing',
24 'Delivered At': Wed Dec 12 2012 15:22:41 GMT+0100 (CET) },
25 { GroupID: 1,
26 Title: 'Terminal',
27 Subtitle: null,
28 Message: 'Testing',
29 'Delivered At': Wed Dec 12 2012 15:22:29 GMT+0100 (CET) } ],
30 type: 'list' }
31
32```
33
34There are three different types:
35
36- ```deliviered``` when a message is delivered.
37- ```removed``` when all or one message is removed. If all messages are removed, the response property will have several elements.
38- ```list``` when a list is presented. Even when doing ```list: 1```.
39
40
\No newline at end of file