bcx 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/.travis.yml +6 -0
  2. data/README.md +57 -4
  3. data/docs/bcx.html +171 -0
  4. data/docs/configuration.html +128 -0
  5. data/docs/docco.css +500 -0
  6. data/docs/http.html +125 -0
  7. data/docs/oauth.html +127 -0
  8. data/docs/person.html +125 -0
  9. data/docs/project.html +143 -0
  10. data/docs/public/fonts/aller-bold.eot +0 -0
  11. data/docs/public/fonts/aller-bold.ttf +0 -0
  12. data/docs/public/fonts/aller-bold.woff +0 -0
  13. data/docs/public/fonts/aller-light.eot +0 -0
  14. data/docs/public/fonts/aller-light.ttf +0 -0
  15. data/docs/public/fonts/aller-light.woff +0 -0
  16. data/docs/public/fonts/fleurons.eot +0 -0
  17. data/docs/public/fonts/fleurons.ttf +0 -0
  18. data/docs/public/fonts/fleurons.woff +0 -0
  19. data/docs/public/fonts/novecento-bold.eot +0 -0
  20. data/docs/public/fonts/novecento-bold.ttf +0 -0
  21. data/docs/public/fonts/novecento-bold.woff +0 -0
  22. data/docs/public/images/gray.png +0 -0
  23. data/docs/public/stylesheets/normalize.css +375 -0
  24. data/docs/response_error.html +117 -0
  25. data/docs/todo.html +138 -0
  26. data/docs/todolist.html +148 -0
  27. data/docs/version.html +103 -0
  28. data/lib/bcx/client/http.rb +25 -0
  29. data/lib/bcx/client/oauth.rb +27 -0
  30. data/lib/bcx/resources/person.rb +30 -7
  31. data/lib/bcx/resources/project.rb +7 -10
  32. data/lib/bcx/resources/todolist.rb +11 -4
  33. data/lib/bcx/version.rb +1 -1
  34. data/lib/bcx.rb +12 -1
  35. data/spec/bcx/client_spec.rb +24 -19
  36. data/spec/bcx/person_spec.rb +55 -0
  37. data/spec/bcx/project_spec.rb +1 -1
  38. data/spec/bcx/todo_spec.rb +43 -0
  39. data/spec/bcx/todolist_spec.rb +19 -3
  40. data/spec/cassettes/Bcx_Client/error_handling/should_raise_exception.yml +56 -0
  41. data/spec/cassettes/Bcx_Resources_Person/DELETE_/people/4904728_json/should_delete_a_todolist.yml +101 -0
  42. data/spec/cassettes/Bcx_Resources_Person/GET_/people/4666033_json/should_have_the_correct_id.yml +58 -0
  43. data/spec/cassettes/Bcx_Resources_Person/GET_/people/4666033_json/should_return_a_hash.yml +58 -0
  44. data/spec/cassettes/Bcx_Resources_Person/GET_/people/me_json/should_have_assigned_todos.yml +58 -0
  45. data/spec/cassettes/Bcx_Resources_Person/GET_/people/me_json/should_have_the_correct_id.yml +58 -0
  46. data/spec/cassettes/Bcx_Resources_Person/GET_/people/me_json/should_return_a_hash.yml +58 -0
  47. data/spec/cassettes/Bcx_Resources_Person/GET_/people_json/first_person_should_have_the_correct_id.yml +56 -0
  48. data/spec/cassettes/Bcx_Resources_Person/GET_/people_json/should_be_an_array.yml +56 -0
  49. data/spec/cassettes/Bcx_Resources_Todo/DELETE_/projects/2951531/todos/48545200_json/should_delete_the_given_todo.yml +101 -0
  50. data/spec/cassettes/Bcx_Resources_Todo/GET_/projects/2951531/todos/48545200_json/should_have_the_correct_id.yml +61 -0
  51. data/spec/cassettes/Bcx_Resources_Todo/GET_/projects/2951531/todos/48545200_json/should_return_a_hash.yml +61 -0
  52. data/spec/cassettes/Bcx_Resources_Todo/POST_/projects/2951531/todolists/2951531/todos_json/should_create_a_new_todo.yml +56 -0
  53. data/spec/cassettes/Bcx_Resources_Todo/POST_/projects/2951531/todolists/8268819/todos_json/should_create_a_new_todo.yml +62 -0
  54. data/spec/cassettes/Bcx_Resources_Todo/PUT_/projects/2951531/todos/48545200_json/should_update_an_existing_todo.yml +61 -0
  55. data/spec/cassettes/Bcx_Resources_Todolist/DELETE_/projects/2956584/todolists/8268819_json/should_create_a_new_todolist.yml +66 -0
  56. data/spec/cassettes/Bcx_Resources_Todolist/DELETE_/projects/2956584/todolists/8268819_json/should_delete_a_todolist.yml +101 -0
  57. data/spec/cassettes/Bcx_Resources_Todolist/POST_/projects/123/todolists_json/should_create_a_new_todolist.yml +62 -0
  58. data/spec/cassettes/Bcx_Resources_Todolist/PUT_/projects/2956584/todolists/8268819_json/should_create_a_new_todolist.yml +186 -0
  59. metadata +88 -14
  60. data/lib/bcx/client.rb +0 -24
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://basecamp.com/2274488/api/v1/projects/2951531/todos/48545200.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ server:
20
+ - nginx
21
+ date:
22
+ - Fri, 21 Jun 2013 21:56:54 GMT
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ transfer-encoding:
26
+ - chunked
27
+ connection:
28
+ - close
29
+ status:
30
+ - 200 OK
31
+ x-frame-options:
32
+ - SAMEORIGIN
33
+ x-xss-protection:
34
+ - 1; mode=block
35
+ x-content-type-options:
36
+ - nosniff
37
+ x-ua-compatible:
38
+ - chrome=1
39
+ x-xhr-current-location:
40
+ - /2274488/api/v1/projects/2951531/todos/48545200.json
41
+ x-asset-paths:
42
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
43
+ etag:
44
+ - ! '"3a28f157099de0a8d7258a48ca1a3bb4"'
45
+ last-modified:
46
+ - Fri, 21 Jun 2013 21:50:20 GMT
47
+ cache-control:
48
+ - max-age=0, private, must-revalidate
49
+ x-request-id:
50
+ - cc2c85cd-7cf1-4fa5-8f64-2fb9edac64ee
51
+ x-runtime:
52
+ - '0.170780'
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ! '{"id":48545200,"todolist_id":8268819,"position":1,"content":"First
56
+ todo","completed":false,"created_at":"2013-06-21T21:50:20.000Z","updated_at":"2013-06-21T21:50:20.000Z","comments_count":0,"due_on":null,"due_at":null,"creator":{"id":4666033,"name":"Paul
57
+ Springett","avatar_url":"http://dge9rmgqjs8m1.cloudfront.net/global/default_avatar_v1_3/avatar.gif?r=3"},"url":"https://basecamp.com/2274488/api/v1/projects/2951531-new-project/todos/48545200-first-todo.json","comments":[],"subscribers":[{"id":4666033,"name":"Paul
58
+ Springett"}]}'
59
+ http_version:
60
+ recorded_at: Fri, 21 Jun 2013 21:56:54 GMT
61
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://basecamp.com/2274488/api/v1/projects/2951531/todos/48545200.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ server:
20
+ - nginx
21
+ date:
22
+ - Fri, 21 Jun 2013 21:56:53 GMT
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ transfer-encoding:
26
+ - chunked
27
+ connection:
28
+ - close
29
+ status:
30
+ - 200 OK
31
+ x-frame-options:
32
+ - SAMEORIGIN
33
+ x-xss-protection:
34
+ - 1; mode=block
35
+ x-content-type-options:
36
+ - nosniff
37
+ x-ua-compatible:
38
+ - chrome=1
39
+ x-xhr-current-location:
40
+ - /2274488/api/v1/projects/2951531/todos/48545200.json
41
+ x-asset-paths:
42
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
43
+ etag:
44
+ - ! '"3a28f157099de0a8d7258a48ca1a3bb4"'
45
+ last-modified:
46
+ - Fri, 21 Jun 2013 21:50:20 GMT
47
+ cache-control:
48
+ - max-age=0, private, must-revalidate
49
+ x-request-id:
50
+ - 1606583f-e1ec-4595-88a6-6b174e7e4d5d
51
+ x-runtime:
52
+ - '0.142866'
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ! '{"id":48545200,"todolist_id":8268819,"position":1,"content":"First
56
+ todo","completed":false,"created_at":"2013-06-21T21:50:20.000Z","updated_at":"2013-06-21T21:50:20.000Z","comments_count":0,"due_on":null,"due_at":null,"creator":{"id":4666033,"name":"Paul
57
+ Springett","avatar_url":"http://dge9rmgqjs8m1.cloudfront.net/global/default_avatar_v1_3/avatar.gif?r=3"},"url":"https://basecamp.com/2274488/api/v1/projects/2951531-new-project/todos/48545200-first-todo.json","comments":[],"subscribers":[{"id":4666033,"name":"Paul
58
+ Springett"}]}'
59
+ http_version:
60
+ recorded_at: Fri, 21 Jun 2013 21:56:53 GMT
61
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://basecamp.com/2274488/api/v1/projects/2951531/todolists/2951531/todos.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"content":"My todo"}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 404
19
+ message:
20
+ headers:
21
+ server:
22
+ - nginx
23
+ date:
24
+ - Fri, 21 Jun 2013 22:00:37 GMT
25
+ content-type:
26
+ - application/json
27
+ transfer-encoding:
28
+ - chunked
29
+ connection:
30
+ - close
31
+ status:
32
+ - 404 Not Found
33
+ x-frame-options:
34
+ - SAMEORIGIN
35
+ x-xss-protection:
36
+ - 1; mode=block
37
+ x-content-type-options:
38
+ - nosniff
39
+ x-ua-compatible:
40
+ - chrome=1
41
+ x-xhr-current-location:
42
+ - /2274488/api/v1/projects/2951531/todolists/2951531/todos.json
43
+ x-asset-paths:
44
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
45
+ cache-control:
46
+ - no-cache
47
+ x-request-id:
48
+ - 97826e07-5a32-44fe-926f-d4802bb907a2
49
+ x-runtime:
50
+ - '0.120282'
51
+ body:
52
+ encoding: US-ASCII
53
+ string: ''
54
+ http_version:
55
+ recorded_at: Fri, 21 Jun 2013 22:00:37 GMT
56
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,62 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://basecamp.com/2274488/api/v1/projects/2951531/todolists/8268819/todos.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"content":"My todo"}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 201
19
+ message:
20
+ headers:
21
+ server:
22
+ - nginx
23
+ date:
24
+ - Fri, 21 Jun 2013 22:01:32 GMT
25
+ content-type:
26
+ - application/json; charset=utf-8
27
+ transfer-encoding:
28
+ - chunked
29
+ connection:
30
+ - close
31
+ status:
32
+ - 201 Created
33
+ x-frame-options:
34
+ - SAMEORIGIN
35
+ x-xss-protection:
36
+ - 1; mode=block
37
+ x-content-type-options:
38
+ - nosniff
39
+ x-ua-compatible:
40
+ - chrome=1
41
+ x-xhr-current-location:
42
+ - /2274488/api/v1/projects/2951531/todolists/8268819/todos.json
43
+ x-asset-paths:
44
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
45
+ location:
46
+ - https://basecamp.com/2274488/api/v1/projects/2951531-new-project/todos/48546382-my-todo.json
47
+ etag:
48
+ - ! '"15d85b0ee278e2e121b5ad807c2f2175"'
49
+ cache-control:
50
+ - max-age=0, private, must-revalidate
51
+ x-request-id:
52
+ - fd317ba1-5ff0-4a30-89db-b4684a339c4b
53
+ x-runtime:
54
+ - '0.223592'
55
+ body:
56
+ encoding: US-ASCII
57
+ string: ! '{"id":48546382,"todolist_id":8268819,"position":4,"content":"My todo","completed":false,"created_at":"2013-06-21T22:01:32.491Z","updated_at":"2013-06-21T22:01:32.491Z","comments_count":0,"due_on":null,"due_at":null,"creator":{"id":4666033,"name":"Paul
58
+ Springett","avatar_url":"http://dge9rmgqjs8m1.cloudfront.net/global/default_avatar_v1_3/avatar.gif?r=3"},"url":"https://basecamp.com/2274488/api/v1/projects/2951531-new-project/todos/48546382-my-todo.json","comments":[],"subscribers":[{"id":4666033,"name":"Paul
59
+ Springett"}]}'
60
+ http_version:
61
+ recorded_at: Fri, 21 Jun 2013 22:01:32 GMT
62
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://basecamp.com/2274488/api/v1/projects/2951531/todos/48545200.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"content":"My updated todo"}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message:
20
+ headers:
21
+ server:
22
+ - nginx
23
+ date:
24
+ - Fri, 21 Jun 2013 22:04:36 GMT
25
+ content-type:
26
+ - application/json; charset=utf-8
27
+ transfer-encoding:
28
+ - chunked
29
+ connection:
30
+ - close
31
+ status:
32
+ - 200 OK
33
+ x-frame-options:
34
+ - SAMEORIGIN
35
+ x-xss-protection:
36
+ - 1; mode=block
37
+ x-content-type-options:
38
+ - nosniff
39
+ x-ua-compatible:
40
+ - chrome=1
41
+ x-xhr-current-location:
42
+ - /2274488/api/v1/projects/2951531/todos/48545200.json
43
+ x-asset-paths:
44
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
45
+ etag:
46
+ - ! '"36fee5921f8ee58a3b7cb0d23247e6bc"'
47
+ cache-control:
48
+ - max-age=0, private, must-revalidate
49
+ x-request-id:
50
+ - c2f40157-f7ef-4aba-b4af-1f2bb9d8629e
51
+ x-runtime:
52
+ - '0.212482'
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ! '{"id":48545200,"todolist_id":8268819,"position":1,"content":"My updated
56
+ todo","completed":false,"created_at":"2013-06-21T21:50:20.000Z","updated_at":"2013-06-21T22:04:36.845Z","comments_count":0,"due_on":null,"due_at":null,"creator":{"id":4666033,"name":"Paul
57
+ Springett","avatar_url":"http://dge9rmgqjs8m1.cloudfront.net/global/default_avatar_v1_3/avatar.gif?r=3"},"url":"https://basecamp.com/2274488/api/v1/projects/2951531-new-project/todos/48545200-my-updated-todo.json","comments":[],"subscribers":[{"id":4666033,"name":"Paul
58
+ Springett"}]}'
59
+ http_version:
60
+ recorded_at: Fri, 21 Jun 2013 22:04:37 GMT
61
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,66 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://basecamp.com/2274488/api/v1/projects/2951531/todolists/8268819.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"name":"Renamed todolist"}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message:
20
+ headers:
21
+ server:
22
+ - nginx
23
+ date:
24
+ - Fri, 21 Jun 2013 22:17:13 GMT
25
+ content-type:
26
+ - application/json; charset=utf-8
27
+ transfer-encoding:
28
+ - chunked
29
+ connection:
30
+ - close
31
+ status:
32
+ - 200 OK
33
+ x-frame-options:
34
+ - SAMEORIGIN
35
+ x-xss-protection:
36
+ - 1; mode=block
37
+ x-content-type-options:
38
+ - nosniff
39
+ x-ua-compatible:
40
+ - chrome=1
41
+ x-xhr-current-location:
42
+ - /2274488/api/v1/projects/2951531/todolists/8268819.json
43
+ x-asset-paths:
44
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
45
+ etag:
46
+ - ! '"afae11a1277221e90208c899ffa9eaf7"'
47
+ cache-control:
48
+ - max-age=0, private, must-revalidate
49
+ x-request-id:
50
+ - 250ba8bb-04a4-494e-9a76-e3c643dca1e2
51
+ x-runtime:
52
+ - '0.231249'
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ! '{"id":8268819,"name":"Renamed todolist","description":null,"created_at":"2013-06-21T21:50:13.000Z","updated_at":"2013-06-21T22:12:35.000Z","completed":false,"position":1,"remaining_count":3,"completed_count":0,"creator":{"id":4666033,"name":"Paul
56
+ Springett","avatar_url":"http://dge9rmgqjs8m1.cloudfront.net/global/default_avatar_v1_3/avatar.gif?r=3"},"todos":{"remaining":[{"id":48545209,"todolist_id":8268819,"position":1,"content":"Another
57
+ todo","completed":false,"created_at":"2013-06-21T21:50:24.000Z","updated_at":"2013-06-21T21:50:24.000Z","comments_count":0,"due_on":null,"due_at":null,"creator":{"id":4666033,"name":"Paul
58
+ Springett","avatar_url":"http://dge9rmgqjs8m1.cloudfront.net/global/default_avatar_v1_3/avatar.gif?r=3"},"url":"https://basecamp.com/2274488/api/v1/projects/2951531-new-project/todos/48545209-another-todo.json"},{"id":48545212,"todolist_id":8268819,"position":2,"content":"Number
59
+ 3","completed":false,"created_at":"2013-06-21T21:50:27.000Z","updated_at":"2013-06-21T21:50:27.000Z","comments_count":0,"due_on":null,"due_at":null,"creator":{"id":4666033,"name":"Paul
60
+ Springett","avatar_url":"http://dge9rmgqjs8m1.cloudfront.net/global/default_avatar_v1_3/avatar.gif?r=3"},"url":"https://basecamp.com/2274488/api/v1/projects/2951531-new-project/todos/48545212-number-3.json"},{"id":48546382,"todolist_id":8268819,"position":3,"content":"My
61
+ todo","completed":false,"created_at":"2013-06-21T22:01:32.000Z","updated_at":"2013-06-21T22:01:32.000Z","comments_count":0,"due_on":null,"due_at":null,"creator":{"id":4666033,"name":"Paul
62
+ Springett","avatar_url":"http://dge9rmgqjs8m1.cloudfront.net/global/default_avatar_v1_3/avatar.gif?r=3"},"url":"https://basecamp.com/2274488/api/v1/projects/2951531-new-project/todos/48546382-my-todo.json"}],"completed":[]},"comments":[],"subscribers":[{"id":4666033,"name":"Paul
63
+ Springett"}]}'
64
+ http_version:
65
+ recorded_at: Fri, 21 Jun 2013 22:17:13 GMT
66
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,101 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://basecamp.com/2274488/api/v1/projects/2951531/todolists/8268819.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ response:
15
+ status:
16
+ code: 204
17
+ message:
18
+ headers:
19
+ server:
20
+ - nginx
21
+ date:
22
+ - Fri, 21 Jun 2013 22:17:14 GMT
23
+ connection:
24
+ - close
25
+ status:
26
+ - 204 No Content
27
+ x-frame-options:
28
+ - SAMEORIGIN
29
+ x-xss-protection:
30
+ - 1; mode=block
31
+ x-content-type-options:
32
+ - nosniff
33
+ x-ua-compatible:
34
+ - chrome=1
35
+ x-xhr-current-location:
36
+ - /2274488/api/v1/projects/2951531/todolists/8268819.json
37
+ x-asset-paths:
38
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
39
+ cache-control:
40
+ - no-cache
41
+ x-request-id:
42
+ - d5ce9f33-04b3-45d5-864f-d1c336b65f3d
43
+ x-runtime:
44
+ - '0.293170'
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ''
48
+ http_version:
49
+ recorded_at: Fri, 21 Jun 2013 22:17:14 GMT
50
+ - request:
51
+ method: get
52
+ uri: https://basecamp.com/2274488/api/v1/projects/2951531/todolists/8268819.json
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ User-Agent:
58
+ - Faraday v0.8.7
59
+ Authorization:
60
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
61
+ response:
62
+ status:
63
+ code: 404
64
+ message:
65
+ headers:
66
+ server:
67
+ - nginx
68
+ date:
69
+ - Fri, 21 Jun 2013 22:17:15 GMT
70
+ content-type:
71
+ - text/html
72
+ transfer-encoding:
73
+ - chunked
74
+ connection:
75
+ - close
76
+ status:
77
+ - 404 Not Found
78
+ x-frame-options:
79
+ - SAMEORIGIN
80
+ x-xss-protection:
81
+ - 1; mode=block
82
+ x-content-type-options:
83
+ - nosniff
84
+ x-ua-compatible:
85
+ - chrome=1
86
+ x-xhr-current-location:
87
+ - /2274488/api/v1/projects/2951531/todolists/8268819.json
88
+ x-asset-paths:
89
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
90
+ cache-control:
91
+ - no-cache
92
+ x-request-id:
93
+ - 0380cb06-f806-462a-8e6c-772e81085531
94
+ x-runtime:
95
+ - '0.123826'
96
+ body:
97
+ encoding: ASCII-8BIT
98
+ string: ''
99
+ http_version:
100
+ recorded_at: Fri, 21 Jun 2013 22:17:15 GMT
101
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,62 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://basecamp.com/2274488/api/v1/projects/2956584/todolists.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"name":"My todolist","description":"This is a todolist"}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 201
19
+ message:
20
+ headers:
21
+ server:
22
+ - nginx
23
+ date:
24
+ - Fri, 21 Jun 2013 22:11:53 GMT
25
+ content-type:
26
+ - application/json; charset=utf-8
27
+ transfer-encoding:
28
+ - chunked
29
+ connection:
30
+ - close
31
+ status:
32
+ - 201 Created
33
+ x-frame-options:
34
+ - SAMEORIGIN
35
+ x-xss-protection:
36
+ - 1; mode=block
37
+ x-content-type-options:
38
+ - nosniff
39
+ x-ua-compatible:
40
+ - chrome=1
41
+ x-xhr-current-location:
42
+ - /2274488/api/v1/projects/2956584/todolists.json
43
+ x-asset-paths:
44
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
45
+ location:
46
+ - https://basecamp.com/2274488/api/v1/projects/2956584-new-project/todolists/8269172-my-todolist.json
47
+ etag:
48
+ - ! '"4945d98733bc5215fdd387d1cbcd9c58"'
49
+ cache-control:
50
+ - max-age=0, private, must-revalidate
51
+ x-request-id:
52
+ - d1b1abe9-0a1f-4cdf-8c79-cd8a8a200ce6
53
+ x-runtime:
54
+ - '0.231463'
55
+ body:
56
+ encoding: US-ASCII
57
+ string: ! '{"id":8269172,"name":"My todolist","description":"This is a todolist","created_at":"2013-06-21T22:11:53.009Z","updated_at":"2013-06-21T22:11:53.009Z","completed":false,"position":1,"remaining_count":0,"completed_count":0,"creator":{"id":4666033,"name":"Paul
58
+ Springett","avatar_url":"http://dge9rmgqjs8m1.cloudfront.net/global/default_avatar_v1_3/avatar.gif?r=3"},"todos":{"remaining":[],"completed":[]},"comments":[],"subscribers":[{"id":4666033,"name":"Paul
59
+ Springett"}]}'
60
+ http_version:
61
+ recorded_at: Fri, 21 Jun 2013 22:11:53 GMT
62
+ recorded_with: VCR 2.5.0