gather_content-api 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +7 -0
  3. data/.travis.yml +4 -0
  4. data/Gemfile +13 -0
  5. data/README.md +395 -0
  6. data/Rakefile +14 -0
  7. data/gather_content-api.gemspec +25 -0
  8. data/lib/gather_content/api/account.rb +25 -0
  9. data/lib/gather_content/api/accounts.rb +23 -0
  10. data/lib/gather_content/api/base.rb +67 -0
  11. data/lib/gather_content/api/config.rb +35 -0
  12. data/lib/gather_content/api/file.rb +19 -0
  13. data/lib/gather_content/api/files.rb +27 -0
  14. data/lib/gather_content/api/item.rb +53 -0
  15. data/lib/gather_content/api/items.rb +50 -0
  16. data/lib/gather_content/api/me.rb +19 -0
  17. data/lib/gather_content/api/project.rb +25 -0
  18. data/lib/gather_content/api/projects.rb +51 -0
  19. data/lib/gather_content/api/status.rb +26 -0
  20. data/lib/gather_content/api/statuses.rb +27 -0
  21. data/lib/gather_content/api/template.rb +25 -0
  22. data/lib/gather_content/api/templates.rb +35 -0
  23. data/lib/gather_content/api.rb +19 -0
  24. data/lib/gather_content/error/request_error.rb +33 -0
  25. data/lib/gather_content/error.rb +5 -0
  26. data/lib/gather_content/version.rb +3 -0
  27. data/lib/gather_content.rb +5 -0
  28. data/spec/gather_content/api/account_spec.rb +28 -0
  29. data/spec/gather_content/api/accounts_spec.rb +24 -0
  30. data/spec/gather_content/api/base_spec.rb +5 -0
  31. data/spec/gather_content/api/config_spec.rb +98 -0
  32. data/spec/gather_content/api/files_spec.rb +39 -0
  33. data/spec/gather_content/api/item_spec.rb +158 -0
  34. data/spec/gather_content/api/items_spec.rb +127 -0
  35. data/spec/gather_content/api/me_spec.rb +26 -0
  36. data/spec/gather_content/api/project_spec.rb +32 -0
  37. data/spec/gather_content/api/projects_spec.rb +96 -0
  38. data/spec/gather_content/api/status_spec.rb +44 -0
  39. data/spec/gather_content/api/statuses_spec.rb +39 -0
  40. data/spec/gather_content/api/template_spec.rb +36 -0
  41. data/spec/gather_content/api/templates_spec.rb +23 -0
  42. data/spec/spec_helper.rb +26 -0
  43. data/spec/vcr_cassettes/GatherContent_Api_Account/_/returns_the_data_related_to_the_supplied_key.yml +39 -0
  44. data/spec/vcr_cassettes/GatherContent_Api_Account/_fetch/1_2_1.yml +39 -0
  45. data/spec/vcr_cassettes/GatherContent_Api_Account/_fetch/1_3_1.yml +39 -0
  46. data/spec/vcr_cassettes/GatherContent_Api_Account/_get_account/1_3_1.yml +39 -0
  47. data/spec/vcr_cassettes/GatherContent_Api_Accounts/_each/should_contain_Account_objects.yml +40 -0
  48. data/spec/vcr_cassettes/GatherContent_Api_Accounts/_each/should_have_memoized_data.yml +40 -0
  49. data/spec/vcr_cassettes/GatherContent_Api_Files/_each/should_contain_File_objects.yml +40 -0
  50. data/spec/vcr_cassettes/GatherContent_Api_Files/_each/should_have_memoized_data.yml +40 -0
  51. data/spec/vcr_cassettes/GatherContent_Api_Item/_/returns_the_data_related_to_the_supplied_key.yml +40 -0
  52. data/spec/vcr_cassettes/GatherContent_Api_Item/_fetch/1_2_1.yml +40 -0
  53. data/spec/vcr_cassettes/GatherContent_Api_Item/_get_item/1_3_1.yml +40 -0
  54. data/spec/vcr_cassettes/GatherContent_Api_Item/apply_template/successful/returns_true.yml +42 -0
  55. data/spec/vcr_cassettes/GatherContent_Api_Item/apply_template/unsuccessful/parses_the_message.yml +42 -0
  56. data/spec/vcr_cassettes/GatherContent_Api_Item/apply_template/unsuccessful/raises_an_RequestError.yml +42 -0
  57. data/spec/vcr_cassettes/GatherContent_Api_Item/apply_template/unsuccessful/sets_the_RequestError_status.yml +42 -0
  58. data/spec/vcr_cassettes/GatherContent_Api_Item/choose_status/successful/returns_true.yml +42 -0
  59. data/spec/vcr_cassettes/GatherContent_Api_Item/choose_status/unsuccessful/parses_the_message.yml +42 -0
  60. data/spec/vcr_cassettes/GatherContent_Api_Item/choose_status/unsuccessful/raises_an_RequestError.yml +42 -0
  61. data/spec/vcr_cassettes/GatherContent_Api_Item/choose_status/unsuccessful/sets_the_RequestError_status.yml +42 -0
  62. data/spec/vcr_cassettes/GatherContent_Api_Item/save/successful/returns_true.yml +42 -0
  63. data/spec/vcr_cassettes/GatherContent_Api_Item/save/unsuccessful/parses_the_message.yml +42 -0
  64. data/spec/vcr_cassettes/GatherContent_Api_Item/save/unsuccessful/raises_an_RequestError.yml +42 -0
  65. data/spec/vcr_cassettes/GatherContent_Api_Item/save/unsuccessful/sets_the_RequestError_status.yml +42 -0
  66. data/spec/vcr_cassettes/GatherContent_Api_Items/_create/on_non-202_response/raises_an_RequestError.yml +42 -0
  67. data/spec/vcr_cassettes/GatherContent_Api_Items/_create/on_non-202_response/sets_the_RequestError_message.yml +42 -0
  68. data/spec/vcr_cassettes/GatherContent_Api_Items/_create/on_non-202_response/sets_the_RequestError_status.yml +42 -0
  69. data/spec/vcr_cassettes/GatherContent_Api_Items/_create/with_config/created_an_item.yml +44 -0
  70. data/spec/vcr_cassettes/GatherContent_Api_Items/_create/with_config/set_the_item_id.yml +44 -0
  71. data/spec/vcr_cassettes/GatherContent_Api_Items/_create/with_config/sets_the_content.yml +88 -0
  72. data/spec/vcr_cassettes/GatherContent_Api_Items/_create/with_name/created_an_item.yml +44 -0
  73. data/spec/vcr_cassettes/GatherContent_Api_Items/_create/with_name/set_the_item_id.yml +44 -0
  74. data/spec/vcr_cassettes/GatherContent_Api_Items/_each/should_contain_Item_objects.yml +43 -0
  75. data/spec/vcr_cassettes/GatherContent_Api_Items/_each/should_have_memoized_data.yml +43 -0
  76. data/spec/vcr_cassettes/GatherContent_Api_Me/_/returns_the_data_related_to_the_supplied_key.yml +40 -0
  77. data/spec/vcr_cassettes/GatherContent_Api_Me/_fetch/1_2_1.yml +40 -0
  78. data/spec/vcr_cassettes/GatherContent_Api_Me/_get_me/1_2_1.yml +40 -0
  79. data/spec/vcr_cassettes/GatherContent_Api_Project/_/returns_the_data_related_to_the_supplied_key.yml +41 -0
  80. data/spec/vcr_cassettes/GatherContent_Api_Project/_fetch/1_3_1.yml +41 -0
  81. data/spec/vcr_cassettes/GatherContent_Api_Project/_get_project/1_3_1.yml +41 -0
  82. data/spec/vcr_cassettes/GatherContent_Api_Projects/_create/on_non-202_response/raises_an_RequestError.yml +42 -0
  83. data/spec/vcr_cassettes/GatherContent_Api_Projects/_create/on_non-202_response/sets_the_RequestError_message.yml +42 -0
  84. data/spec/vcr_cassettes/GatherContent_Api_Projects/_create/on_non-202_response/sets_the_RequestError_status.yml +42 -0
  85. data/spec/vcr_cassettes/GatherContent_Api_Projects/_create/with_empty_type/created_a_project.yml +44 -0
  86. data/spec/vcr_cassettes/GatherContent_Api_Projects/_create/with_name_and_valid_type/created_a_project.yml +44 -0
  87. data/spec/vcr_cassettes/GatherContent_Api_Projects/_create/with_name_and_valid_type/set_the_project_id.yml +44 -0
  88. data/spec/vcr_cassettes/GatherContent_Api_Projects/_create/with_no_type/created_a_project.yml +44 -0
  89. data/spec/vcr_cassettes/GatherContent_Api_Projects/_each/should_contain_Project_objects.yml +41 -0
  90. data/spec/vcr_cassettes/GatherContent_Api_Status/_/returns_the_data_related_to_the_supplied_key.yml +39 -0
  91. data/spec/vcr_cassettes/GatherContent_Api_Status/_fetch/1_2_1.yml +39 -0
  92. data/spec/vcr_cassettes/GatherContent_Api_Statuses/_each/should_contain_Status_objects.yml +40 -0
  93. data/spec/vcr_cassettes/GatherContent_Api_Statuses/_each/should_have_memoized_data.yml +41 -0
  94. data/spec/vcr_cassettes/GatherContent_Api_Template/_/returns_the_data_related_to_the_supplied_key.yml +40 -0
  95. data/spec/vcr_cassettes/GatherContent_Api_Template/_fetch/1_2_1.yml +40 -0
  96. data/spec/vcr_cassettes/GatherContent_Api_Templates/_each/should_contain_Template_objects.yml +40 -0
  97. data/spec/vcr_cassettes/GatherContent_Api_Templates/_each/should_have_memoized_data.yml +40 -0
  98. metadata +254 -0
@@ -0,0 +1,43 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gathercontent.com/items?project_id=123456
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.13.1
12
+ Accept:
13
+ - application/vnd.gathercontent.v0.5+json
14
+ Authorization:
15
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Fri, 17 Nov 2017 18:19:07 GMT
29
+ Server:
30
+ - nginx
31
+ Content-Length:
32
+ - '715'
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"data":[{"id":123456,"project_id":123456,"parent_id":0,"template_id":null,"position":"11","name":"Home","notes":"","type":"item","overdue":true,"created_at":{"date":"2015-07-31
38
+ 10:58:12.000000","timezone_type":3,"timezone":"UTC"},"updated_at":{"date":"2015-07-31
39
+ 10:58:12.000000","timezone_type":3,"timezone":"UTC"},"status":{"data":{"id":"123456","is_default":true,"position":"1","color":"#C5C5C5","name":"Draft","description":"","can_edit":true}},"due_dates":{"data":[{"status_id":123456,"overdue":true,"due_date":{"date":"2015-07-02
40
+ 12:00:00.000000","timezone_type":3,"timezone":"UTC"}},{"status_id":123457,"overdue":true,"due_date":{"date":"2015-07-03
41
+ 16:00:00.000000","timezone_type":3,"timezone":"UTC"}}]}}]}'
42
+ http_version:
43
+ recorded_at: Fri, 17 Nov 2017 18:19:07 GMT
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gathercontent.com/me
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Accept:
13
+ - application/vnd.gathercontent.v0.5+json
14
+ Authorization:
15
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Mon, 26 Feb 2018 04:08:03 GMT
29
+ Server:
30
+ - nginx
31
+ Content-Length:
32
+ - '167'
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"data":{"email":"andrew@gathercontent.com","first_name":"Andrew","last_name":"Cairns","timezone":"UTC","language":null,"gender":null,"avatar":"http://image-url.com"}}'
38
+ http_version:
39
+ recorded_at: Mon, 26 Feb 2018 04:08:03 GMT
40
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gathercontent.com/me
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Accept:
13
+ - application/vnd.gathercontent.v0.5+json
14
+ Authorization:
15
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Mon, 26 Feb 2018 04:08:03 GMT
29
+ Server:
30
+ - nginx
31
+ Content-Length:
32
+ - '167'
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"data":{"email":"andrew@gathercontent.com","first_name":"Andrew","last_name":"Cairns","timezone":"UTC","language":null,"gender":null,"avatar":"http://image-url.com"}}'
38
+ http_version:
39
+ recorded_at: Mon, 26 Feb 2018 04:08:03 GMT
40
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gathercontent.com/me
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Accept:
13
+ - application/vnd.gathercontent.v0.5+json
14
+ Authorization:
15
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Mon, 26 Feb 2018 04:08:03 GMT
29
+ Server:
30
+ - nginx
31
+ Content-Length:
32
+ - '167'
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"data":{"email":"andrew@gathercontent.com","first_name":"Andrew","last_name":"Cairns","timezone":"UTC","language":null,"gender":null,"avatar":"http://image-url.com"}}'
38
+ http_version:
39
+ recorded_at: Mon, 26 Feb 2018 04:08:03 GMT
40
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,41 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gathercontent.com/projects/123456
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Accept:
13
+ - application/vnd.gathercontent.v0.5+json
14
+ Authorization:
15
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Tue, 27 Feb 2018 03:46:16 GMT
29
+ Server:
30
+ - nginx
31
+ Content-Length:
32
+ - '652'
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"data":{"id":123456,"name":"Example Project","account_id":123456,"active":true,"text_direction":"rtl","overdue":false,"statuses":{"data":[{"id":"123456","is_default":true,"position":"1","color":"#C5C5C5","name":"Draft","description":"","can_edit":true},{"id":"123457","is_default":false,"position":"2","color":"#FAA732","name":"Review","description":"","can_edit":true},{"id":"123458","is_default":false,"position":"3","color":"#5EB95E","name":"Final
38
+ edits","description":"","can_edit":true},{"id":"123459","is_default":false,"position":"4","color":"#DD4398","name":"Ready
39
+ to be published","description":"","can_edit":false}]}},"meta":{"templates":2}}'
40
+ http_version:
41
+ recorded_at: Tue, 27 Feb 2018 03:46:16 GMT
@@ -0,0 +1,41 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gathercontent.com/projects/123456
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Accept:
13
+ - application/vnd.gathercontent.v0.5+json
14
+ Authorization:
15
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Tue, 27 Feb 2018 03:46:16 GMT
29
+ Server:
30
+ - nginx
31
+ Content-Length:
32
+ - '652'
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"data":{"id":123456,"name":"Example Project","account_id":123456,"active":true,"text_direction":"rtl","overdue":false,"statuses":{"data":[{"id":"123456","is_default":true,"position":"1","color":"#C5C5C5","name":"Draft","description":"","can_edit":true},{"id":"123457","is_default":false,"position":"2","color":"#FAA732","name":"Review","description":"","can_edit":true},{"id":"123458","is_default":false,"position":"3","color":"#5EB95E","name":"Final
38
+ edits","description":"","can_edit":true},{"id":"123459","is_default":false,"position":"4","color":"#DD4398","name":"Ready
39
+ to be published","description":"","can_edit":false}]}},"meta":{"templates":2}}'
40
+ http_version:
41
+ recorded_at: Tue, 27 Feb 2018 03:46:16 GMT
@@ -0,0 +1,41 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gathercontent.com/projects/123456
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Accept:
13
+ - application/vnd.gathercontent.v0.5+json
14
+ Authorization:
15
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Tue, 27 Feb 2018 03:46:16 GMT
29
+ Server:
30
+ - nginx
31
+ Content-Length:
32
+ - '652'
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"data":{"id":123456,"name":"Example Project","account_id":123456,"active":true,"text_direction":"rtl","overdue":false,"statuses":{"data":[{"id":"123456","is_default":true,"position":"1","color":"#C5C5C5","name":"Draft","description":"","can_edit":true},{"id":"123457","is_default":false,"position":"2","color":"#FAA732","name":"Review","description":"","can_edit":true},{"id":"123458","is_default":false,"position":"3","color":"#5EB95E","name":"Final
38
+ edits","description":"","can_edit":true},{"id":"123459","is_default":false,"position":"4","color":"#DD4398","name":"Ready
39
+ to be published","description":"","can_edit":false}]}},"meta":{"templates":2}}'
40
+ http_version:
41
+ recorded_at: Tue, 27 Feb 2018 03:46:16 GMT
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.gathercontent.com/projects
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"Test Project","type":"website-build","account_id":123456}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/vnd.gathercontent.v0.5+json
16
+ Authorization:
17
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Cache-Control:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json
29
+ Date:
30
+ - Wed, 28 Feb 2018 06:07:51 GMT
31
+ Server:
32
+ - nginx
33
+ Content-Length:
34
+ - '58'
35
+ Connection:
36
+ - keep-alive
37
+ body:
38
+ encoding: ASCII-8BIT
39
+ string: '{"data":{"message":"Account not found"}}'
40
+ http_version:
41
+ recorded_at: Wed, 28 Feb 2018 06:07:51 GMT
42
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.gathercontent.com/projects
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"Test Project","type":"website-build","account_id":123456}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/vnd.gathercontent.v0.5+json
16
+ Authorization:
17
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Cache-Control:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json
29
+ Date:
30
+ - Wed, 28 Feb 2018 06:07:52 GMT
31
+ Server:
32
+ - nginx
33
+ Content-Length:
34
+ - '58'
35
+ Connection:
36
+ - keep-alive
37
+ body:
38
+ encoding: ASCII-8BIT
39
+ string: '{"data":{"message":"Account not found"}}'
40
+ http_version:
41
+ recorded_at: Wed, 28 Feb 2018 06:07:52 GMT
42
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.gathercontent.com/projects
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"Test Project","type":"website-build","account_id":123456}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/vnd.gathercontent.v0.5+json
16
+ Authorization:
17
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Cache-Control:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json
29
+ Date:
30
+ - Wed, 28 Feb 2018 06:07:53 GMT
31
+ Server:
32
+ - nginx
33
+ Content-Length:
34
+ - '58'
35
+ Connection:
36
+ - keep-alive
37
+ body:
38
+ encoding: ASCII-8BIT
39
+ string: '{"data":{"message":"Account not found"}}'
40
+ http_version:
41
+ recorded_at: Wed, 28 Feb 2018 06:07:53 GMT
42
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.gathercontent.com/projects
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"Test Project","account_id":29785}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/vnd.gathercontent.v0.5+json
16
+ Authorization:
17
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 202
23
+ message: Accepted
24
+ headers:
25
+ Cache-Control:
26
+ - no-cache
27
+ Content-Type:
28
+ - text/html; charset=UTF-8
29
+ Date:
30
+ - Wed, 28 Feb 2018 06:05:15 GMT
31
+ Location:
32
+ - http://api.gathercontent.com/projects/161853
33
+ Server:
34
+ - nginx
35
+ Content-Length:
36
+ - '0'
37
+ Connection:
38
+ - keep-alive
39
+ body:
40
+ encoding: UTF-8
41
+ string: ''
42
+ http_version:
43
+ recorded_at: Wed, 28 Feb 2018 06:05:15 GMT
44
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.gathercontent.com/projects
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"Test Project","type":"website-build","account_id":123456}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/vnd.gathercontent.v0.5+json
16
+ Authorization:
17
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 202
23
+ message: Accepted
24
+ headers:
25
+ Cache-Control:
26
+ - no-cache
27
+ Content-Type:
28
+ - text/html; charset=UTF-8
29
+ Date:
30
+ - Wed, 28 Feb 2018 06:05:11 GMT
31
+ Location:
32
+ - http://api.gathercontent.com/projects/161823
33
+ Server:
34
+ - nginx
35
+ Content-Length:
36
+ - '0'
37
+ Connection:
38
+ - keep-alive
39
+ body:
40
+ encoding: UTF-8
41
+ string: ''
42
+ http_version:
43
+ recorded_at: Wed, 28 Feb 2018 06:05:11 GMT
44
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.gathercontent.com/projects
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"Test Project","type":"website-build","account_id":123456}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/vnd.gathercontent.v0.5+json
16
+ Authorization:
17
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 202
23
+ message: Accepted
24
+ headers:
25
+ Cache-Control:
26
+ - no-cache
27
+ Content-Type:
28
+ - text/html; charset=UTF-8
29
+ Date:
30
+ - Wed, 28 Feb 2018 06:05:11 GMT
31
+ Location:
32
+ - http://api.gathercontent.com/projects/161823
33
+ Server:
34
+ - nginx
35
+ Content-Length:
36
+ - '0'
37
+ Connection:
38
+ - keep-alive
39
+ body:
40
+ encoding: UTF-8
41
+ string: ''
42
+ http_version:
43
+ recorded_at: Wed, 28 Feb 2018 06:05:11 GMT
44
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.gathercontent.com/projects
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"Test Project","account_id":123456}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/vnd.gathercontent.v0.5+json
16
+ Authorization:
17
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 202
23
+ message: Accepted
24
+ headers:
25
+ Cache-Control:
26
+ - no-cache
27
+ Content-Type:
28
+ - text/html; charset=UTF-8
29
+ Date:
30
+ - Wed, 28 Feb 2018 06:05:14 GMT
31
+ Location:
32
+ - http://api.gathercontent.com/projects/161852
33
+ Server:
34
+ - nginx
35
+ Content-Length:
36
+ - '0'
37
+ Connection:
38
+ - keep-alive
39
+ body:
40
+ encoding: UTF-8
41
+ string: ''
42
+ http_version:
43
+ recorded_at: Wed, 28 Feb 2018 06:05:14 GMT
44
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,41 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gathercontent.com/projects?account_id=123456
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Accept:
13
+ - application/vnd.gathercontent.v0.5+json
14
+ Authorization:
15
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Tue, 27 Feb 2018 05:10:58 GMT
29
+ Server:
30
+ - nginx
31
+ Content-Length:
32
+ - '631'
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"data":[{"id":123456,"name":"Example Project","account_id":123456,"active":true,"text_direction":"ltr","overdue":false,"statuses":{"data":[{"id":"123456","is_default":true,"position":"1","color":"#C5C5C5","name":"Draft","description":"","can_edit":true},{"id":"123457","is_default":false,"position":"2","color":"#FAA732","name":"Review","description":"","can_edit":true},{"id":"123458","is_default":false,"position":"3","color":"#5EB95E","name":"Final
38
+ edits","description":"","can_edit":true},{"id":"123459","is_default":false,"position":"4","color":"#DD4398","name":"Ready
39
+ to be published","description":"","can_edit":false}]}}]}'
40
+ http_version:
41
+ recorded_at: Tue, 27 Feb 2018 05:10:58 GMT
@@ -0,0 +1,39 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gathercontent.com/projects/123456/statuses/123456
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Accept:
13
+ - application/vnd.gathercontent.v0.5+json
14
+ Authorization:
15
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Tue, 27 Feb 2018 23:00:22 GMT
29
+ Server:
30
+ - nginx
31
+ Content-Length:
32
+ - '123'
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"data":{"id":"123456","is_default":true,"position":"1","color":"#C5C5C5","name":"Draft","description":"","can_edit":true}}'
38
+ http_version:
39
+ recorded_at: Tue, 27 Feb 2018 23:00:22 GMT