BtSync 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +14 -0
- data/README.md +2 -0
- data/btsync.gemspec +1 -0
- data/lib/btsync.rb +1 -133
- data/lib/btsync/directory.rb +152 -0
- data/lib/btsync/version.rb +1 -1
- data/spec/BtSync/directory_spec.rb +85 -0
- data/spec/fixtures/cassettes/Setup-BtSync-Directory.yml +60 -0
- data/spec/fixtures/cassettes/Setup-Directory-Settings.yml +30 -0
- data/spec/fixtures/cassettes/add-folder-list.yml +24 -24
- data/spec/fixtures/cassettes/add-folder.yml +19 -19
- data/spec/fixtures/cassettes/get-folders.yml +18 -18
- data/spec/fixtures/cassettes/get-known-hosts.yml +30 -0
- data/spec/fixtures/cassettes/get-os-type.yml +6 -6
- data/spec/fixtures/cassettes/get-peers.yml +33 -0
- data/spec/fixtures/cassettes/get-preferences.yml +177 -0
- data/spec/fixtures/cassettes/get-settings.yml +6 -6
- data/spec/fixtures/cassettes/get-version.yml +6 -6
- data/spec/fixtures/cassettes/remove-folder-list.yml +15 -15
- data/spec/fixtures/cassettes/remove-folder.yml +27 -27
- data/spec/fixtures/cassettes/set-preferences-delete.yml +88 -0
- data/spec/fixtures/cassettes/set-preferences-dht.yml +88 -0
- data/spec/fixtures/cassettes/set-preferences-hosts.yml +88 -0
- data/spec/fixtures/cassettes/set-preferences-lan.yml +88 -0
- data/spec/fixtures/cassettes/set-preferences-relay.yml +88 -0
- data/spec/fixtures/cassettes/set-preferences-tracker.yml +88 -0
- data/spec/fixtures/cassettes/view-folders.yml +30 -0
- data/spec/spec_helper.rb +0 -2
- metadata +43 -1
@@ -0,0 +1,88 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Cookie:
|
11
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Connection:
|
18
|
+
- keep-alive
|
19
|
+
Content-Length:
|
20
|
+
- '188'
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
body:
|
26
|
+
encoding: US-ASCII
|
27
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
28
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 0, "searchdht": 1, "searchlan":
|
29
|
+
0, "usehosts": 0, "usetracker": 0 } }'
|
30
|
+
http_version:
|
31
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
32
|
+
- request:
|
33
|
+
method: get
|
34
|
+
uri: http://localhost:8888/gui/?action=setfolderpref&deletetotrash=0&iswritable=1&name=/home/chris/Documents&output=json&relay=0&searchdht=1&searchlan=0&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA&usehosts=0&usetracker=0
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ''
|
38
|
+
headers:
|
39
|
+
Cookie:
|
40
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
41
|
+
response:
|
42
|
+
status:
|
43
|
+
code: 200
|
44
|
+
message: OK
|
45
|
+
headers:
|
46
|
+
Connection:
|
47
|
+
- keep-alive
|
48
|
+
Content-Length:
|
49
|
+
- '4'
|
50
|
+
Content-Type:
|
51
|
+
- application/json; charset=utf-8
|
52
|
+
Cache-Control:
|
53
|
+
- no-cache
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: ! '{ }'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
62
|
+
body:
|
63
|
+
encoding: US-ASCII
|
64
|
+
string: ''
|
65
|
+
headers:
|
66
|
+
Cookie:
|
67
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
68
|
+
response:
|
69
|
+
status:
|
70
|
+
code: 200
|
71
|
+
message: OK
|
72
|
+
headers:
|
73
|
+
Connection:
|
74
|
+
- keep-alive
|
75
|
+
Content-Length:
|
76
|
+
- '188'
|
77
|
+
Content-Type:
|
78
|
+
- application/json; charset=utf-8
|
79
|
+
Cache-Control:
|
80
|
+
- no-cache
|
81
|
+
body:
|
82
|
+
encoding: US-ASCII
|
83
|
+
string: ! '{ "folderpref": { "deletetotrash": 0, "iswritable": 1, "readonlysecret":
|
84
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 0, "searchdht": 1, "searchlan":
|
85
|
+
0, "usehosts": 0, "usetracker": 0 } }'
|
86
|
+
http_version:
|
87
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
88
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,88 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Cookie:
|
11
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Connection:
|
18
|
+
- keep-alive
|
19
|
+
Content-Length:
|
20
|
+
- '188'
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
body:
|
26
|
+
encoding: US-ASCII
|
27
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
28
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 1, "searchdht": 0, "searchlan":
|
29
|
+
0, "usehosts": 0, "usetracker": 0 } }'
|
30
|
+
http_version:
|
31
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
32
|
+
- request:
|
33
|
+
method: get
|
34
|
+
uri: http://localhost:8888/gui/?action=setfolderpref&deletetotrash=1&iswritable=1&name=/home/chris/Documents&output=json&relay=1&searchdht=1&searchlan=0&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA&usehosts=0&usetracker=0
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ''
|
38
|
+
headers:
|
39
|
+
Cookie:
|
40
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
41
|
+
response:
|
42
|
+
status:
|
43
|
+
code: 200
|
44
|
+
message: OK
|
45
|
+
headers:
|
46
|
+
Connection:
|
47
|
+
- keep-alive
|
48
|
+
Content-Length:
|
49
|
+
- '4'
|
50
|
+
Content-Type:
|
51
|
+
- application/json; charset=utf-8
|
52
|
+
Cache-Control:
|
53
|
+
- no-cache
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: ! '{ }'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
62
|
+
body:
|
63
|
+
encoding: US-ASCII
|
64
|
+
string: ''
|
65
|
+
headers:
|
66
|
+
Cookie:
|
67
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
68
|
+
response:
|
69
|
+
status:
|
70
|
+
code: 200
|
71
|
+
message: OK
|
72
|
+
headers:
|
73
|
+
Connection:
|
74
|
+
- keep-alive
|
75
|
+
Content-Length:
|
76
|
+
- '188'
|
77
|
+
Content-Type:
|
78
|
+
- application/json; charset=utf-8
|
79
|
+
Cache-Control:
|
80
|
+
- no-cache
|
81
|
+
body:
|
82
|
+
encoding: US-ASCII
|
83
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
84
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 1, "searchdht": 1, "searchlan":
|
85
|
+
0, "usehosts": 0, "usetracker": 0 } }'
|
86
|
+
http_version:
|
87
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
88
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,88 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Cookie:
|
11
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Connection:
|
18
|
+
- keep-alive
|
19
|
+
Content-Length:
|
20
|
+
- '188'
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
body:
|
26
|
+
encoding: US-ASCII
|
27
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
28
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 1, "searchdht": 0, "searchlan":
|
29
|
+
1, "usehosts": 1, "usetracker": 0 } }'
|
30
|
+
http_version:
|
31
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
32
|
+
- request:
|
33
|
+
method: get
|
34
|
+
uri: http://localhost:8888/gui/?action=setfolderpref&deletetotrash=1&iswritable=1&name=/home/chris/Documents&output=json&relay=1&searchdht=0&searchlan=1&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA&usehosts=0&usetracker=0
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ''
|
38
|
+
headers:
|
39
|
+
Cookie:
|
40
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
41
|
+
response:
|
42
|
+
status:
|
43
|
+
code: 200
|
44
|
+
message: OK
|
45
|
+
headers:
|
46
|
+
Connection:
|
47
|
+
- keep-alive
|
48
|
+
Content-Length:
|
49
|
+
- '4'
|
50
|
+
Content-Type:
|
51
|
+
- application/json; charset=utf-8
|
52
|
+
Cache-Control:
|
53
|
+
- no-cache
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: ! '{ }'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
62
|
+
body:
|
63
|
+
encoding: US-ASCII
|
64
|
+
string: ''
|
65
|
+
headers:
|
66
|
+
Cookie:
|
67
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
68
|
+
response:
|
69
|
+
status:
|
70
|
+
code: 200
|
71
|
+
message: OK
|
72
|
+
headers:
|
73
|
+
Connection:
|
74
|
+
- keep-alive
|
75
|
+
Content-Length:
|
76
|
+
- '188'
|
77
|
+
Content-Type:
|
78
|
+
- application/json; charset=utf-8
|
79
|
+
Cache-Control:
|
80
|
+
- no-cache
|
81
|
+
body:
|
82
|
+
encoding: US-ASCII
|
83
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
84
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 1, "searchdht": 0, "searchlan":
|
85
|
+
1, "usehosts": 0, "usetracker": 0 } }'
|
86
|
+
http_version:
|
87
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
88
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,88 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Cookie:
|
11
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Connection:
|
18
|
+
- keep-alive
|
19
|
+
Content-Length:
|
20
|
+
- '188'
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
body:
|
26
|
+
encoding: US-ASCII
|
27
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
28
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 1, "searchdht": 0, "searchlan":
|
29
|
+
1, "usehosts": 0, "usetracker": 0 } }'
|
30
|
+
http_version:
|
31
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
32
|
+
- request:
|
33
|
+
method: get
|
34
|
+
uri: http://localhost:8888/gui/?action=setfolderpref&deletetotrash=1&iswritable=1&name=/home/chris/Documents&output=json&relay=1&searchdht=0&searchlan=0&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA&usehosts=0&usetracker=0
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ''
|
38
|
+
headers:
|
39
|
+
Cookie:
|
40
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
41
|
+
response:
|
42
|
+
status:
|
43
|
+
code: 200
|
44
|
+
message: OK
|
45
|
+
headers:
|
46
|
+
Connection:
|
47
|
+
- keep-alive
|
48
|
+
Content-Length:
|
49
|
+
- '4'
|
50
|
+
Content-Type:
|
51
|
+
- application/json; charset=utf-8
|
52
|
+
Cache-Control:
|
53
|
+
- no-cache
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: ! '{ }'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
62
|
+
body:
|
63
|
+
encoding: US-ASCII
|
64
|
+
string: ''
|
65
|
+
headers:
|
66
|
+
Cookie:
|
67
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
68
|
+
response:
|
69
|
+
status:
|
70
|
+
code: 200
|
71
|
+
message: OK
|
72
|
+
headers:
|
73
|
+
Connection:
|
74
|
+
- keep-alive
|
75
|
+
Content-Length:
|
76
|
+
- '188'
|
77
|
+
Content-Type:
|
78
|
+
- application/json; charset=utf-8
|
79
|
+
Cache-Control:
|
80
|
+
- no-cache
|
81
|
+
body:
|
82
|
+
encoding: US-ASCII
|
83
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
84
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 1, "searchdht": 0, "searchlan":
|
85
|
+
0, "usehosts": 0, "usetracker": 0 } }'
|
86
|
+
http_version:
|
87
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
88
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,88 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Cookie:
|
11
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Connection:
|
18
|
+
- keep-alive
|
19
|
+
Content-Length:
|
20
|
+
- '188'
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
body:
|
26
|
+
encoding: US-ASCII
|
27
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
28
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 1, "searchdht": 1, "searchlan":
|
29
|
+
0, "usehosts": 0, "usetracker": 0 } }'
|
30
|
+
http_version:
|
31
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
32
|
+
- request:
|
33
|
+
method: get
|
34
|
+
uri: http://localhost:8888/gui/?action=setfolderpref&deletetotrash=1&iswritable=1&name=/home/chris/Documents&output=json&relay=0&searchdht=1&searchlan=0&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA&usehosts=0&usetracker=0
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ''
|
38
|
+
headers:
|
39
|
+
Cookie:
|
40
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
41
|
+
response:
|
42
|
+
status:
|
43
|
+
code: 200
|
44
|
+
message: OK
|
45
|
+
headers:
|
46
|
+
Connection:
|
47
|
+
- keep-alive
|
48
|
+
Content-Length:
|
49
|
+
- '4'
|
50
|
+
Content-Type:
|
51
|
+
- application/json; charset=utf-8
|
52
|
+
Cache-Control:
|
53
|
+
- no-cache
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: ! '{ }'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
62
|
+
body:
|
63
|
+
encoding: US-ASCII
|
64
|
+
string: ''
|
65
|
+
headers:
|
66
|
+
Cookie:
|
67
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
68
|
+
response:
|
69
|
+
status:
|
70
|
+
code: 200
|
71
|
+
message: OK
|
72
|
+
headers:
|
73
|
+
Connection:
|
74
|
+
- keep-alive
|
75
|
+
Content-Length:
|
76
|
+
- '188'
|
77
|
+
Content-Type:
|
78
|
+
- application/json; charset=utf-8
|
79
|
+
Cache-Control:
|
80
|
+
- no-cache
|
81
|
+
body:
|
82
|
+
encoding: US-ASCII
|
83
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
84
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 0, "searchdht": 1, "searchlan":
|
85
|
+
0, "usehosts": 0, "usetracker": 0 } }'
|
86
|
+
http_version:
|
87
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
88
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,88 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Cookie:
|
11
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Connection:
|
18
|
+
- keep-alive
|
19
|
+
Content-Length:
|
20
|
+
- '188'
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
body:
|
26
|
+
encoding: US-ASCII
|
27
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
28
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 1, "searchdht": 0, "searchlan":
|
29
|
+
1, "usehosts": 1, "usetracker": 1 } }'
|
30
|
+
http_version:
|
31
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
32
|
+
- request:
|
33
|
+
method: get
|
34
|
+
uri: http://localhost:8888/gui/?action=setfolderpref&deletetotrash=1&iswritable=1&name=/home/chris/Documents&output=json&relay=1&searchdht=0&searchlan=1&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA&usehosts=1&usetracker=0
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ''
|
38
|
+
headers:
|
39
|
+
Cookie:
|
40
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
41
|
+
response:
|
42
|
+
status:
|
43
|
+
code: 200
|
44
|
+
message: OK
|
45
|
+
headers:
|
46
|
+
Connection:
|
47
|
+
- keep-alive
|
48
|
+
Content-Length:
|
49
|
+
- '4'
|
50
|
+
Content-Type:
|
51
|
+
- application/json; charset=utf-8
|
52
|
+
Cache-Control:
|
53
|
+
- no-cache
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: ! '{ }'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: http://localhost:8888/gui/?action=getfolderpref&name=/home/chris/Documents&output=json&secret=6PX74LIR2RA2FF2W3DC25MG2CF6SQDSJ&token=iRasMRAah3u6ZZL5nDz7pcjSl9wT5iHuJPM3epeVqG6O57gXNwXWRYWGsFEAAAAA
|
62
|
+
body:
|
63
|
+
encoding: US-ASCII
|
64
|
+
string: ''
|
65
|
+
headers:
|
66
|
+
Cookie:
|
67
|
+
- GUID=viqdjPnu05Y1N0pnFKQ7
|
68
|
+
response:
|
69
|
+
status:
|
70
|
+
code: 200
|
71
|
+
message: OK
|
72
|
+
headers:
|
73
|
+
Connection:
|
74
|
+
- keep-alive
|
75
|
+
Content-Length:
|
76
|
+
- '188'
|
77
|
+
Content-Type:
|
78
|
+
- application/json; charset=utf-8
|
79
|
+
Cache-Control:
|
80
|
+
- no-cache
|
81
|
+
body:
|
82
|
+
encoding: US-ASCII
|
83
|
+
string: ! '{ "folderpref": { "deletetotrash": 1, "iswritable": 1, "readonlysecret":
|
84
|
+
"RL5F2W34L7MRTS2S6JOXZHQM2QNTJUODS", "relay": 1, "searchdht": 0, "searchlan":
|
85
|
+
1, "usehosts": 1, "usetracker": 0 } }'
|
86
|
+
http_version:
|
87
|
+
recorded_at: Thu, 06 Jun 2013 12:54:30 GMT
|
88
|
+
recorded_with: VCR 2.5.0
|