urbit-api 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,52 +0,0 @@
1
- ship.scry(app: 'settings-store', path: '/desk/landscape', mark: 'json')
2
-
3
- {
4
- :status => 200,
5
- :code => "ok",
6
- :body => {
7
- "desk": {
8
- "calm": {
9
- "hideAvatars": true,
10
- "hideNicknames": true
11
- },
12
- "urbit-visor-permissions": {
13
- "https://urbitdashboard.com": [
14
- "shipName", "shipURL", "scry", "subscribe", "poke", "thread"
15
- ]
16
- }
17
- }
18
- }
19
- }
20
-
21
-
22
- pry(main)> ship.subscribe(app: 'settings-store', path: '/all')
23
- => a Channel (Open) on ~barsyr-latreb(name: 'Channel-0', key: '164192001782807f')
24
-
25
- pry(main)> Received a Fact for [a Channel (Open) on ~barsyr-latreb(name: 'Channel-0', key: '164192001782807f')
26
- ] -- [message
27
- ] -- [
28
- {
29
- "ok": "ok",
30
- "id": 1,
31
- "response": "subscribe"
32
- }
33
- ]
34
-
35
- pry(main)> Received a Fact for [a Channel (Open) on ~barsyr-latreb(name: 'Channel-0', key: '164192001782807f')
36
- ] -- [message
37
- ] -- [
38
- {
39
- "json": {
40
- "settings-event": {
41
- "put-entry": {
42
- "bucket-key": "calm",
43
- "desk": "landscape",
44
- "entry-key": "hideUnreads",
45
- "value": true
46
- }
47
- }
48
- },
49
- "id": 1,
50
- "response": "diff"
51
- }
52
- ]