desk_api 0.1.0 → 0.1.1

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.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +49 -34
  3. data/config.rb +1 -1
  4. data/desk_api.gemspec +3 -3
  5. data/lib/desk.rb +1 -35
  6. data/lib/desk_api.rb +35 -0
  7. data/lib/{desk → desk_api}/action/create.rb +1 -1
  8. data/lib/{desk → desk_api}/action/delete.rb +1 -1
  9. data/lib/{desk → desk_api}/action/embedded.rb +1 -1
  10. data/lib/{desk → desk_api}/action/field.rb +3 -3
  11. data/lib/{desk → desk_api}/action/link.rb +2 -2
  12. data/lib/desk_api/action/resource.rb +14 -0
  13. data/lib/{desk → desk_api}/action/search.rb +1 -1
  14. data/lib/{desk → desk_api}/action/update.rb +2 -2
  15. data/lib/{desk → desk_api}/client.rb +15 -15
  16. data/lib/{desk → desk_api}/configuration.rb +13 -13
  17. data/lib/{desk → desk_api}/default.rb +5 -5
  18. data/lib/{desk → desk_api}/error.rb +5 -5
  19. data/lib/{desk → desk_api}/error/bad_gateway.rb +3 -3
  20. data/lib/{desk → desk_api}/error/bad_request.rb +3 -3
  21. data/lib/{desk → desk_api}/error/client_error.rb +3 -3
  22. data/lib/{desk → desk_api}/error/configuration_error.rb +2 -2
  23. data/lib/{desk → desk_api}/error/conflict.rb +3 -3
  24. data/lib/{desk → desk_api}/error/forbidden.rb +3 -3
  25. data/lib/{desk → desk_api}/error/gateway_timeout.rb +3 -3
  26. data/lib/desk_api/error/internal_server_error.rb +10 -0
  27. data/lib/{desk → desk_api}/error/method_not_allowed.rb +3 -3
  28. data/lib/{desk → desk_api}/error/method_not_supported.rb +3 -3
  29. data/lib/{desk → desk_api}/error/not_acceptable.rb +3 -3
  30. data/lib/{desk → desk_api}/error/not_found.rb +3 -3
  31. data/lib/desk_api/error/parse_error.rb +9 -0
  32. data/lib/desk_api/error/parser_error.rb +9 -0
  33. data/lib/{desk → desk_api}/error/server_error.rb +3 -3
  34. data/lib/desk_api/error/service_unavailable.rb +10 -0
  35. data/lib/{desk → desk_api}/error/too_many_requests.rb +3 -3
  36. data/lib/{desk → desk_api}/error/unauthorized.rb +3 -3
  37. data/lib/{desk → desk_api}/error/unprocessable_entity.rb +3 -3
  38. data/lib/{desk → desk_api}/error/unsupported_media_type.rb +3 -3
  39. data/lib/{desk → desk_api}/rate_limit.rb +1 -1
  40. data/lib/{desk → desk_api}/request/retry.rb +2 -2
  41. data/lib/{desk → desk_api}/resource.rb +16 -16
  42. data/lib/desk_api/resource/article.rb +10 -0
  43. data/lib/desk_api/resource/article_translation.rb +8 -0
  44. data/lib/desk_api/resource/attachment.rb +8 -0
  45. data/lib/desk_api/resource/case.rb +9 -0
  46. data/lib/desk_api/resource/company.rb +8 -0
  47. data/lib/desk_api/resource/customer.rb +9 -0
  48. data/lib/desk_api/resource/integration_url.rb +9 -0
  49. data/lib/desk_api/resource/job.rb +7 -0
  50. data/lib/desk_api/resource/label.rb +9 -0
  51. data/lib/desk_api/resource/macro.rb +9 -0
  52. data/lib/desk_api/resource/macro_action.rb +7 -0
  53. data/lib/desk_api/resource/note.rb +7 -0
  54. data/lib/{desk → desk_api}/resource/page.rb +5 -5
  55. data/lib/desk_api/resource/reply.rb +8 -0
  56. data/lib/desk_api/resource/topic.rb +9 -0
  57. data/lib/desk_api/resource/topic_translation.rb +9 -0
  58. data/lib/desk_api/resource/user_preference.rb +7 -0
  59. data/lib/{desk → desk_api}/resources.json +0 -0
  60. data/lib/desk_api/response/raise_error.rb +34 -0
  61. data/lib/desk_api/version.rb +3 -0
  62. data/spec/cassettes/{Desk_Client → DeskApi_Client}/_delete/deletes_a_resource.yml +5 -5
  63. data/spec/cassettes/{Desk_Client → DeskApi_Client}/_get/fetches_resources.yml +5 -5
  64. data/spec/cassettes/{Desk_Client → DeskApi_Client}/_patch/updates_a_resource.yml +6 -6
  65. data/spec/cassettes/{Desk_Client → DeskApi_Client}/_post/creates_a_resource.yml +8 -8
  66. data/spec/cassettes/{Desk_Error → DeskApi_Error}/_from_response/can_be_created_from_a_faraday_response.yml +5 -5
  67. data/spec/cassettes/{Desk_Error → DeskApi_Error}/_from_response/uses_the_body_message_if_present.yml +5 -5
  68. data/spec/cassettes/{Desk_Resource → DeskApi_Resource}/_by_url/finds_resources_by_url.yml +7 -7
  69. data/spec/cassettes/{Desk_Resource → DeskApi_Resource}/_create/creates_a_new_topic.yml +8 -8
  70. data/spec/cassettes/{Desk_Resource → DeskApi_Resource}/_delete/deletes_a_resource.yml +25 -26
  71. data/spec/cassettes/{Desk_Resource → DeskApi_Resource}/_delete/throws_an_error_deleting_a_non_deletalbe_resource.yml +6 -6
  72. data/spec/cassettes/{Desk_Resource_Page/_page/returns_the_current_page_and_loads_if_page_not_defined.yml → DeskApi_Resource/_exec_/can_be_forced_to_reload.yml} +6 -6
  73. data/spec/cassettes/{Desk_Resource → DeskApi_Resource}/_exec_/loads_the_current_resource.yml +7 -7
  74. data/spec/cassettes/{Desk_Resource/_exec_/can_be_forced_to_reload.yml → DeskApi_Resource/_method_missing/loads_the_resource_to_find_a_suitable_method.yml} +6 -6
  75. data/spec/cassettes/{Desk_Resource/_method_missing/loads_the_resource_to_find_a_suitable_method.yml → DeskApi_Resource/_method_missing/raises_an_error_if_method_does_not_exist.yml} +7 -7
  76. data/spec/cassettes/{Desk_Resource → DeskApi_Resource}/_search/allows_searching_on_search_enabled_resources.yml +5 -5
  77. data/spec/cassettes/DeskApi_Resource/_update/can_update_without_a_hash.yml +116 -0
  78. data/spec/cassettes/{Desk_Resource → DeskApi_Resource}/_update/throws_an_error_updating_a_user.yml +5 -5
  79. data/spec/cassettes/{Desk_Resource → DeskApi_Resource}/_update/updates_a_topic.yml +18 -20
  80. data/spec/cassettes/{Desk_Resource_Page → DeskApi_Resource_Page}/_by_id/loads_the_requested_resource.yml +5 -5
  81. data/spec/cassettes/{Desk_Resource_Page → DeskApi_Resource_Page}/_page/keeps_the_resource_as_loaded.yml +5 -5
  82. data/spec/cassettes/{Desk_Resource/_method_missing/raises_an_error_if_method_does_not_exist.yml → DeskApi_Resource_Page/_page/returns_the_current_page_and_loads_if_page_not_defined.yml} +6 -6
  83. data/spec/cassettes/{Desk_Resource_Page → DeskApi_Resource_Page}/_page/sets_the_resource_to_not_loaded.yml +5 -5
  84. data/spec/{desk → desk_api}/client_spec.rb +14 -14
  85. data/spec/{desk → desk_api}/configuration_spec.rb +23 -23
  86. data/spec/{desk → desk_api}/default_spec.rb +5 -5
  87. data/spec/{desk → desk_api}/error_spec.rb +4 -4
  88. data/spec/{desk → desk_api}/rate_limit_spec.rb +7 -7
  89. data/spec/{desk → desk_api}/request/retry_spec.rb +3 -3
  90. data/spec/{desk → desk_api}/resource_spec.rb +17 -10
  91. data/spec/{desk → desk_api}/resources/page_spec.rb +5 -5
  92. data/spec/{desk_spec.rb → desk_api_spec.rb} +10 -10
  93. data/spec/spec_helper.rb +1 -1
  94. metadata +121 -118
  95. data/lib/desk/action/resource.rb +0 -14
  96. data/lib/desk/error/internal_server_error.rb +0 -10
  97. data/lib/desk/error/parse_error.rb +0 -9
  98. data/lib/desk/error/parser_error.rb +0 -9
  99. data/lib/desk/error/service_unavailable.rb +0 -10
  100. data/lib/desk/resource/article.rb +0 -10
  101. data/lib/desk/resource/article_translation.rb +0 -8
  102. data/lib/desk/resource/attachment.rb +0 -8
  103. data/lib/desk/resource/case.rb +0 -9
  104. data/lib/desk/resource/company.rb +0 -8
  105. data/lib/desk/resource/customer.rb +0 -9
  106. data/lib/desk/resource/integration_url.rb +0 -9
  107. data/lib/desk/resource/job.rb +0 -7
  108. data/lib/desk/resource/label.rb +0 -9
  109. data/lib/desk/resource/macro.rb +0 -9
  110. data/lib/desk/resource/macro_action.rb +0 -7
  111. data/lib/desk/resource/note.rb +0 -7
  112. data/lib/desk/resource/reply.rb +0 -8
  113. data/lib/desk/resource/topic.rb +0 -9
  114. data/lib/desk/resource/topic_translation.rb +0 -9
  115. data/lib/desk/resource/user_preference.rb +0 -7
  116. data/lib/desk/response/raise_error.rb +0 -34
  117. data/lib/desk/version.rb +0 -3
@@ -23,9 +23,9 @@ http_interactions:
23
23
  Content-Type:
24
24
  - application/json; charset=utf-8
25
25
  Date:
26
- - Thu, 15 Aug 2013 21:20:32 GMT
26
+ - Mon, 19 Aug 2013 23:51:33 GMT
27
27
  ETag:
28
- - '"a1ddc5668e24e3aa51b6105fea14b800"'
28
+ - '"49308def7f597974a093f90ab1e0ce2b"'
29
29
  Status:
30
30
  - 200 OK
31
31
  Vary:
@@ -37,24 +37,23 @@ http_interactions:
37
37
  X-Rate-Limit-Limit:
38
38
  - '60'
39
39
  X-Rate-Limit-Remaining:
40
- - '53'
40
+ - '55'
41
41
  X-Rate-Limit-Reset:
42
- - '28'
42
+ - '27'
43
43
  X-Request-Id:
44
- - 36272152bf18814c7de5b83507045674
44
+ - fd7bc5a9e8e3aaa7649deed07ebabae5
45
45
  Content-Length:
46
- - '1917'
46
+ - '1529'
47
47
  Connection:
48
48
  - keep-alive
49
49
  body:
50
50
  encoding: UTF-8
51
- string: '{"total_entries":4,"_links":{"self":{"href":"/api/v2/topics?page=1&per_page=50","class":"page"},"first":{"href":"/api/v2/topics?page=1&per_page=50","class":"page"},"last":{"href":"/api/v2/topics?page=1&per_page=50","class":"page"},"previous":null,"next":null},"_embedded":{"entries":[{"name":"Testing
52
- English","description":"Some new description","position":1,"allow_questions":true,"in_support_center":true,"created_at":"2013-04-22T23:46:42Z","updated_at":"2013-08-14T20:01:55Z","_links":{"self":{"href":"/api/v2/topics/498301","class":"topic"},"articles":{"href":"/api/v2/topics/498301/articles","class":"article"},"translations":{"href":"/api/v2/topics/498301/translations","class":"topic_translation"}}},{"name":"My
53
- new topic","description":null,"position":2,"allow_questions":true,"in_support_center":null,"created_at":"2013-08-14T19:34:34Z","updated_at":"2013-08-14T19:34:34Z","_links":{"self":{"href":"/api/v2/topics/556401","class":"topic"},"articles":{"href":"/api/v2/topics/556401/articles","class":"article"},"translations":{"href":"/api/v2/topics/556401/translations","class":"topic_translation"}}},{"name":"My
54
- new topic","description":null,"position":3,"allow_questions":true,"in_support_center":null,"created_at":"2013-08-14T19:37:08Z","updated_at":"2013-08-14T19:37:08Z","_links":{"self":{"href":"/api/v2/topics/556402","class":"topic"},"articles":{"href":"/api/v2/topics/556402/articles","class":"article"},"translations":{"href":"/api/v2/topics/556402/translations","class":"topic_translation"}}},{"name":"Test
55
- Topic","description":null,"position":4,"allow_questions":true,"in_support_center":null,"created_at":"2013-08-15T21:20:31Z","updated_at":"2013-08-15T21:20:31Z","_links":{"self":{"href":"/api/v2/topics/556907","class":"topic"},"articles":{"href":"/api/v2/topics/556907/articles","class":"article"},"translations":{"href":"/api/v2/topics/556907/translations","class":"topic_translation"}}}]}}'
51
+ string: '{"total_entries":3,"_links":{"self":{"href":"/api/v2/topics?page=1&per_page=50","class":"page"},"first":{"href":"/api/v2/topics?page=1&per_page=50","class":"page"},"last":{"href":"/api/v2/topics?page=1&per_page=50","class":"page"},"previous":null,"next":null},"_embedded":{"entries":[{"name":"Testing
52
+ English","description":"Another description update.","position":1,"allow_questions":true,"in_support_center":true,"created_at":"2013-04-22T23:46:42Z","updated_at":"2013-08-16T17:15:34Z","_links":{"self":{"href":"/api/v2/topics/498301","class":"topic"},"articles":{"href":"/api/v2/topics/498301/articles","class":"article"},"translations":{"href":"/api/v2/topics/498301/translations","class":"topic_translation"}}},{"name":"Test
53
+ Updated Topic","description":null,"position":2,"allow_questions":true,"in_support_center":null,"created_at":"2013-08-14T19:37:08Z","updated_at":"2013-08-15T21:26:17Z","_links":{"self":{"href":"/api/v2/topics/556402","class":"topic"},"articles":{"href":"/api/v2/topics/556402/articles","class":"article"},"translations":{"href":"/api/v2/topics/556402/translations","class":"topic_translation"}}},{"name":"My
54
+ new topic","description":null,"position":3,"allow_questions":true,"in_support_center":null,"created_at":"2013-08-15T21:20:32Z","updated_at":"2013-08-15T21:25:38Z","_links":{"self":{"href":"/api/v2/topics/556908","class":"topic"},"articles":{"href":"/api/v2/topics/556908/articles","class":"article"},"translations":{"href":"/api/v2/topics/556908/translations","class":"topic_translation"}}}]}}'
56
55
  http_version:
57
- recorded_at: Thu, 15 Aug 2013 21:20:32 GMT
56
+ recorded_at: Mon, 19 Aug 2013 23:51:33 GMT
58
57
  - request:
59
58
  method: post
60
59
  uri: https://devel.desk.com/api/v2/articles
@@ -80,11 +79,11 @@ http_interactions:
80
79
  Content-Type:
81
80
  - application/json; charset=utf-8
82
81
  Date:
83
- - Thu, 15 Aug 2013 21:20:32 GMT
82
+ - Mon, 19 Aug 2013 23:51:33 GMT
84
83
  ETag:
85
- - '"204e28aa0d48c5e219e968b6d0a609b8"'
84
+ - '"501b810ab743b2e5d279f981c9aafab8"'
86
85
  Location:
87
- - https://devel.desk.com/api/v2/articles/1264832
86
+ - https://devel.desk.com/api/v2/articles/1268788
88
87
  Status:
89
88
  - 201 Created
90
89
  Vary:
@@ -96,11 +95,11 @@ http_interactions:
96
95
  X-Rate-Limit-Limit:
97
96
  - '60'
98
97
  X-Rate-Limit-Remaining:
99
- - '52'
98
+ - '54'
100
99
  X-Rate-Limit-Reset:
101
- - '28'
100
+ - '27'
102
101
  X-Request-Id:
103
- - 8faa5ca98745f2d3d62f9b94432f7259
102
+ - dd73825cc9fa76c4821a0e352acb8c49
104
103
  Content-Length:
105
104
  - '971'
106
105
  Connection:
@@ -113,12 +112,12 @@ http_interactions:
113
112
  this new article","body_web_callback_auto":true,"body_twitter":"Some text
114
113
  for this new article","body_twitter_auto":true,"body_qna":"Some text for this
115
114
  new article","body_qna_auto":true,"body_phone":"Some text for this new article","body_phone_auto":true,"body_facebook":"Some
116
- text for this new article","body_facebook_auto":true,"keywords":null,"position":2,"quickcode":null,"in_support_center":null,"internal_notes":null,"publish_at":null,"created_at":"2013-08-15T21:20:32Z","updated_at":"2013-08-15T21:20:32Z","_links":{"self":{"href":"/api/v2/articles/1264832","class":"article"},"topic":{"href":"/api/v2/topics/498301","class":"topic"},"translations":{"href":"/api/v2/articles/1264832/translations","class":"article_translation"}}}'
115
+ text for this new article","body_facebook_auto":true,"keywords":null,"position":2,"quickcode":null,"in_support_center":null,"internal_notes":null,"publish_at":null,"created_at":"2013-08-19T23:51:33Z","updated_at":"2013-08-19T23:51:33Z","_links":{"self":{"href":"/api/v2/articles/1268788","class":"article"},"topic":{"href":"/api/v2/topics/498301","class":"topic"},"translations":{"href":"/api/v2/articles/1268788/translations","class":"article_translation"}}}'
117
116
  http_version:
118
- recorded_at: Thu, 15 Aug 2013 21:20:32 GMT
117
+ recorded_at: Mon, 19 Aug 2013 23:51:33 GMT
119
118
  - request:
120
119
  method: delete
121
- uri: https://devel.desk.com/api/v2/articles/1264832
120
+ uri: https://devel.desk.com/api/v2/articles/1268788
122
121
  body:
123
122
  encoding: US-ASCII
124
123
  string: ''
@@ -137,7 +136,7 @@ http_interactions:
137
136
  Cache-Control:
138
137
  - no-cache
139
138
  Date:
140
- - Thu, 15 Aug 2013 21:20:32 GMT
139
+ - Mon, 19 Aug 2013 23:51:33 GMT
141
140
  Status:
142
141
  - 204 No Content
143
142
  Vary:
@@ -149,16 +148,16 @@ http_interactions:
149
148
  X-Rate-Limit-Limit:
150
149
  - '60'
151
150
  X-Rate-Limit-Remaining:
152
- - '51'
151
+ - '53'
153
152
  X-Rate-Limit-Reset:
154
- - '28'
153
+ - '27'
155
154
  X-Request-Id:
156
- - 7a5beaec97c3e3e94a8b3cb27e5c7a61
155
+ - 974610303e0db2e99e6775aa4bba2f29
157
156
  Connection:
158
157
  - keep-alive
159
158
  body:
160
159
  encoding: UTF-8
161
160
  string: ''
162
161
  http_version:
163
- recorded_at: Thu, 15 Aug 2013 21:20:32 GMT
162
+ recorded_at: Mon, 19 Aug 2013 23:51:33 GMT
164
163
  recorded_with: VCR 2.5.0
@@ -23,9 +23,9 @@ http_interactions:
23
23
  Content-Type:
24
24
  - application/json; charset=utf-8
25
25
  Date:
26
- - Thu, 15 Aug 2013 21:20:32 GMT
26
+ - Mon, 19 Aug 2013 23:51:33 GMT
27
27
  ETag:
28
- - '"1376586898"'
28
+ - '"1376931810"'
29
29
  Status:
30
30
  - 200 OK
31
31
  Vary:
@@ -37,11 +37,11 @@ http_interactions:
37
37
  X-Rate-Limit-Limit:
38
38
  - '60'
39
39
  X-Rate-Limit-Remaining:
40
- - '50'
40
+ - '52'
41
41
  X-Rate-Limit-Reset:
42
- - '28'
42
+ - '27'
43
43
  X-Request-Id:
44
- - 19c3870310b76b8203c8cdf1bc138dc2
44
+ - 1f999a0dc997cbfa1b0e24bf81c8cb7f
45
45
  Content-Length:
46
46
  - '1868'
47
47
  Connection:
@@ -52,5 +52,5 @@ http_interactions:
52
52
  Stachl","public_name":"Thomas Stachl","email":"tstachl@salesforce.com","level":"siteadmin_billing","_links":{"self":{"href":"/api/v2/users/16096734","class":"user"},"preferences":{"href":"/api/v2/users/16096734/preferences","class":"user_preference"},"searches":{"href":"/api/v2/users/16096734/searches","class":"search"}}},{"name":"Dan
53
53
  Stern","public_name":"Dan","email":"dan@desk.com","level":"siteadmin","_links":{"self":{"href":"/api/v2/users/16107036","class":"user"},"preferences":{"href":"/api/v2/users/16107036/preferences","class":"user_preference"},"searches":{"href":"/api/v2/users/16107036/searches","class":"search"}}},{"name":"Mark","public_name":"Mark","email":"mchasse_old@desk.com","level":"siteadmin_billing","_links":{"self":{"href":"/api/v2/users/17069383","class":"user"},"preferences":{"href":"/api/v2/users/17069383/preferences","class":"user_preference"},"searches":{"href":"/api/v2/users/17069383/searches","class":"search"}}},{"name":"Mich","public_name":"Mich","email":"mich@desk.com","level":"siteadmin_billing","_links":{"self":{"href":"/api/v2/users/17069397","class":"user"},"preferences":{"href":"/api/v2/users/17069397/preferences","class":"user_preference"},"searches":{"href":"/api/v2/users/17069397/searches","class":"search"}}},{"name":"Keith","public_name":"Keith","email":"keith@desk.com","level":"agent","_links":{"self":{"href":"/api/v2/users/17250751","class":"user"},"preferences":{"href":"/api/v2/users/17250751/preferences","class":"user_preference"},"searches":{"href":"/api/v2/users/17250751/searches","class":"search"}}}]}}'
54
54
  http_version:
55
- recorded_at: Thu, 15 Aug 2013 21:20:32 GMT
55
+ recorded_at: Mon, 19 Aug 2013 23:51:33 GMT
56
56
  recorded_with: VCR 2.5.0
@@ -23,9 +23,9 @@ http_interactions:
23
23
  Content-Type:
24
24
  - application/json; charset=utf-8
25
25
  Date:
26
- - Thu, 15 Aug 2013 21:20:34 GMT
26
+ - Mon, 19 Aug 2013 23:51:34 GMT
27
27
  ETag:
28
- - '"a09a6b296a96a4910aef5b6ad49dd28a"'
28
+ - '"7db5e29c740528110f2387c0588fc88e"'
29
29
  Status:
30
30
  - 200 OK
31
31
  Vary:
@@ -37,11 +37,11 @@ http_interactions:
37
37
  X-Rate-Limit-Limit:
38
38
  - '60'
39
39
  X-Rate-Limit-Remaining:
40
- - '38'
40
+ - '43'
41
41
  X-Rate-Limit-Reset:
42
42
  - '26'
43
43
  X-Request-Id:
44
- - c1c9ef3136ef9e72901fa2921fcd2b96
44
+ - 5ee2d816fd124d47903cede69dad232f
45
45
  Content-Length:
46
46
  - '21118'
47
47
  Connection:
@@ -307,7 +307,7 @@ http_interactions:
307
307
  Latin words, combined with a handful of model sentence structures, to generate
308
308
  Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore
309
309
  always free from repetition, injected humour, or non-characteristic words
310
- etc.","body_facebook_auto":true,"keywords":"","position":1,"quickcode":null,"in_support_center":true,"internal_notes":"","publish_at":"2013-08-05T01:13:36Z","created_at":"2013-07-05T15:45:25Z","updated_at":"2013-08-15T21:20:32Z","_links":{"self":{"href":"/api/v2/articles/1213277","class":"article"},"topic":{"href":"/api/v2/topics/498301","class":"topic"},"translations":{"href":"/api/v2/articles/1213277/translations","class":"article_translation"}}}]}}'
310
+ etc.","body_facebook_auto":true,"keywords":"","position":1,"quickcode":null,"in_support_center":true,"internal_notes":"","publish_at":"2013-08-05T01:13:36Z","created_at":"2013-07-05T15:45:25Z","updated_at":"2013-08-19T23:51:33Z","_links":{"self":{"href":"/api/v2/articles/1213277","class":"article"},"topic":{"href":"/api/v2/topics/498301","class":"topic"},"translations":{"href":"/api/v2/articles/1213277/translations","class":"article_translation"}}}]}}'
311
311
  http_version:
312
- recorded_at: Thu, 15 Aug 2013 21:20:34 GMT
312
+ recorded_at: Mon, 19 Aug 2013 23:51:34 GMT
313
313
  recorded_with: VCR 2.5.0
@@ -23,9 +23,9 @@ http_interactions:
23
23
  Content-Type:
24
24
  - application/json; charset=utf-8
25
25
  Date:
26
- - Thu, 15 Aug 2013 21:20:33 GMT
26
+ - Mon, 19 Aug 2013 23:51:34 GMT
27
27
  ETag:
28
- - '"a09a6b296a96a4910aef5b6ad49dd28a"'
28
+ - '"7db5e29c740528110f2387c0588fc88e"'
29
29
  Status:
30
30
  - 200 OK
31
31
  Vary:
@@ -37,11 +37,11 @@ http_interactions:
37
37
  X-Rate-Limit-Limit:
38
38
  - '60'
39
39
  X-Rate-Limit-Remaining:
40
- - '47'
40
+ - '44'
41
41
  X-Rate-Limit-Reset:
42
- - '27'
42
+ - '26'
43
43
  X-Request-Id:
44
- - d878fc75a6ae4e65361bdb304f758c76
44
+ - 6dd69027d4dcf8d6709bce26390d67f4
45
45
  Content-Length:
46
46
  - '21118'
47
47
  Connection:
@@ -307,7 +307,7 @@ http_interactions:
307
307
  Latin words, combined with a handful of model sentence structures, to generate
308
308
  Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore
309
309
  always free from repetition, injected humour, or non-characteristic words
310
- etc.","body_facebook_auto":true,"keywords":"","position":1,"quickcode":null,"in_support_center":true,"internal_notes":"","publish_at":"2013-08-05T01:13:36Z","created_at":"2013-07-05T15:45:25Z","updated_at":"2013-08-15T21:20:32Z","_links":{"self":{"href":"/api/v2/articles/1213277","class":"article"},"topic":{"href":"/api/v2/topics/498301","class":"topic"},"translations":{"href":"/api/v2/articles/1213277/translations","class":"article_translation"}}}]}}'
310
+ etc.","body_facebook_auto":true,"keywords":"","position":1,"quickcode":null,"in_support_center":true,"internal_notes":"","publish_at":"2013-08-05T01:13:36Z","created_at":"2013-07-05T15:45:25Z","updated_at":"2013-08-19T23:51:33Z","_links":{"self":{"href":"/api/v2/articles/1213277","class":"article"},"topic":{"href":"/api/v2/topics/498301","class":"topic"},"translations":{"href":"/api/v2/articles/1213277/translations","class":"article_translation"}}}]}}'
311
311
  http_version:
312
- recorded_at: Thu, 15 Aug 2013 21:20:33 GMT
312
+ recorded_at: Mon, 19 Aug 2013 23:51:34 GMT
313
313
  recorded_with: VCR 2.5.0
@@ -23,9 +23,9 @@ http_interactions:
23
23
  Content-Type:
24
24
  - application/json; charset=utf-8
25
25
  Date:
26
- - Thu, 15 Aug 2013 21:20:33 GMT
26
+ - Mon, 19 Aug 2013 23:51:34 GMT
27
27
  ETag:
28
- - '"a09a6b296a96a4910aef5b6ad49dd28a"'
28
+ - '"7db5e29c740528110f2387c0588fc88e"'
29
29
  Status:
30
30
  - 200 OK
31
31
  Vary:
@@ -39,9 +39,9 @@ http_interactions:
39
39
  X-Rate-Limit-Remaining:
40
40
  - '46'
41
41
  X-Rate-Limit-Reset:
42
- - '27'
42
+ - '26'
43
43
  X-Request-Id:
44
- - d56b711f0b6430bbb9e5e6bc831e18e5
44
+ - 9cee60f66e00c801674e87cb63aabbe6
45
45
  Content-Length:
46
46
  - '21118'
47
47
  Connection:
@@ -307,7 +307,7 @@ http_interactions:
307
307
  Latin words, combined with a handful of model sentence structures, to generate
308
308
  Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore
309
309
  always free from repetition, injected humour, or non-characteristic words
310
- etc.","body_facebook_auto":true,"keywords":"","position":1,"quickcode":null,"in_support_center":true,"internal_notes":"","publish_at":"2013-08-05T01:13:36Z","created_at":"2013-07-05T15:45:25Z","updated_at":"2013-08-15T21:20:32Z","_links":{"self":{"href":"/api/v2/articles/1213277","class":"article"},"topic":{"href":"/api/v2/topics/498301","class":"topic"},"translations":{"href":"/api/v2/articles/1213277/translations","class":"article_translation"}}}]}}'
310
+ etc.","body_facebook_auto":true,"keywords":"","position":1,"quickcode":null,"in_support_center":true,"internal_notes":"","publish_at":"2013-08-05T01:13:36Z","created_at":"2013-07-05T15:45:25Z","updated_at":"2013-08-19T23:51:33Z","_links":{"self":{"href":"/api/v2/articles/1213277","class":"article"},"topic":{"href":"/api/v2/topics/498301","class":"topic"},"translations":{"href":"/api/v2/articles/1213277/translations","class":"article_translation"}}}]}}'
311
311
  http_version:
312
- recorded_at: Thu, 15 Aug 2013 21:20:33 GMT
312
+ recorded_at: Mon, 19 Aug 2013 23:51:34 GMT
313
313
  recorded_with: VCR 2.5.0
@@ -23,9 +23,9 @@ http_interactions:
23
23
  Content-Type:
24
24
  - application/json; charset=utf-8
25
25
  Date:
26
- - Thu, 15 Aug 2013 21:20:31 GMT
26
+ - Mon, 19 Aug 2013 23:51:34 GMT
27
27
  ETag:
28
- - '"93e82cb9c9be28d0224501f82f2957cd"'
28
+ - '"7db5e29c740528110f2387c0588fc88e"'
29
29
  Status:
30
30
  - 200 OK
31
31
  Vary:
@@ -37,11 +37,11 @@ http_interactions:
37
37
  X-Rate-Limit-Limit:
38
38
  - '60'
39
39
  X-Rate-Limit-Remaining:
40
- - '55'
40
+ - '45'
41
41
  X-Rate-Limit-Reset:
42
- - '29'
42
+ - '26'
43
43
  X-Request-Id:
44
- - 4badf7ffe5510498ecb4cc1f74018b1b
44
+ - b85978575c675e2e0e63729130704943
45
45
  Content-Length:
46
46
  - '21118'
47
47
  Connection:
@@ -307,7 +307,7 @@ http_interactions:
307
307
  Latin words, combined with a handful of model sentence structures, to generate
308
308
  Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore
309
309
  always free from repetition, injected humour, or non-characteristic words
310
- etc.","body_facebook_auto":true,"keywords":"","position":1,"quickcode":null,"in_support_center":true,"internal_notes":"","publish_at":"2013-08-05T01:13:36Z","created_at":"2013-07-05T15:45:25Z","updated_at":"2013-08-14T19:47:37Z","_links":{"self":{"href":"/api/v2/articles/1213277","class":"article"},"topic":{"href":"/api/v2/topics/498301","class":"topic"},"translations":{"href":"/api/v2/articles/1213277/translations","class":"article_translation"}}}]}}'
310
+ etc.","body_facebook_auto":true,"keywords":"","position":1,"quickcode":null,"in_support_center":true,"internal_notes":"","publish_at":"2013-08-05T01:13:36Z","created_at":"2013-07-05T15:45:25Z","updated_at":"2013-08-19T23:51:33Z","_links":{"self":{"href":"/api/v2/articles/1213277","class":"article"},"topic":{"href":"/api/v2/topics/498301","class":"topic"},"translations":{"href":"/api/v2/articles/1213277/translations","class":"article_translation"}}}]}}'
311
311
  http_version:
312
- recorded_at: Thu, 15 Aug 2013 21:20:31 GMT
312
+ recorded_at: Mon, 19 Aug 2013 23:51:34 GMT
313
313
  recorded_with: VCR 2.5.0
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Content-Type:
24
24
  - application/json; charset=utf-8
25
25
  Date:
26
- - Thu, 15 Aug 2013 21:20:33 GMT
26
+ - Mon, 19 Aug 2013 23:51:35 GMT
27
27
  ETag:
28
28
  - '"498b2a1a02496207b3b2c1f524be8349"'
29
29
  Status:
@@ -37,11 +37,11 @@ http_interactions:
37
37
  X-Rate-Limit-Limit:
38
38
  - '60'
39
39
  X-Rate-Limit-Remaining:
40
- - '45'
40
+ - '40'
41
41
  X-Rate-Limit-Reset:
42
- - '27'
42
+ - '26'
43
43
  X-Request-Id:
44
- - bdd6efae109788511d7ae06a39fb5e1b
44
+ - 4ac709e6eda2d0d8d2d3ca3dd154e5b4
45
45
  Content-Length:
46
46
  - '293'
47
47
  Connection:
@@ -50,5 +50,5 @@ http_interactions:
50
50
  encoding: UTF-8
51
51
  string: '{"total_entries":0,"_links":{"self":{"href":"/api/v2/articles?page=1&per_page=30","class":"page"},"first":{"href":"/api/v2/articles?page=1&per_page=30","class":"page"},"last":{"href":"/api/v2/articles?page=1&per_page=30","class":"page"},"previous":null,"next":null},"_embedded":{"entries":[]}}'
52
52
  http_version:
53
- recorded_at: Thu, 15 Aug 2013 21:20:33 GMT
53
+ recorded_at: Mon, 19 Aug 2013 23:51:35 GMT
54
54
  recorded_with: VCR 2.5.0
@@ -0,0 +1,116 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://devel.desk.com/api/v2/topics
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ User-Agent:
13
+ - desk.com Ruby Gem v0.1.0
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ Accept-Ranges:
20
+ - bytes
21
+ Cache-Control:
22
+ - must-revalidate, private, max-age=0
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ Date:
26
+ - Mon, 19 Aug 2013 23:51:34 GMT
27
+ ETag:
28
+ - '"f9f1e2e5e3c590a5fa2942940fd5a5de"'
29
+ Status:
30
+ - 200 OK
31
+ Vary:
32
+ - X-AppVersion
33
+ X-AppVersion:
34
+ - '7.9'
35
+ X-Frame-Options:
36
+ - SAMEORIGIN
37
+ X-Rate-Limit-Limit:
38
+ - '60'
39
+ X-Rate-Limit-Remaining:
40
+ - '48'
41
+ X-Rate-Limit-Reset:
42
+ - '26'
43
+ X-Request-Id:
44
+ - 964217dfed483495524c094439366958
45
+ Content-Length:
46
+ - '1522'
47
+ Connection:
48
+ - keep-alive
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"total_entries":3,"_links":{"self":{"href":"/api/v2/topics?page=1&per_page=50","class":"page"},"first":{"href":"/api/v2/topics?page=1&per_page=50","class":"page"},"last":{"href":"/api/v2/topics?page=1&per_page=50","class":"page"},"previous":null,"next":null},"_embedded":{"entries":[{"name":"Testing
52
+ English","description":"Some new description","position":1,"allow_questions":true,"in_support_center":true,"created_at":"2013-04-22T23:46:42Z","updated_at":"2013-08-19T23:51:33Z","_links":{"self":{"href":"/api/v2/topics/498301","class":"topic"},"articles":{"href":"/api/v2/topics/498301/articles","class":"article"},"translations":{"href":"/api/v2/topics/498301/translations","class":"topic_translation"}}},{"name":"Test
53
+ Updated Topic","description":null,"position":2,"allow_questions":true,"in_support_center":null,"created_at":"2013-08-14T19:37:08Z","updated_at":"2013-08-15T21:26:17Z","_links":{"self":{"href":"/api/v2/topics/556402","class":"topic"},"articles":{"href":"/api/v2/topics/556402/articles","class":"article"},"translations":{"href":"/api/v2/topics/556402/translations","class":"topic_translation"}}},{"name":"My
54
+ new topic","description":null,"position":3,"allow_questions":true,"in_support_center":null,"created_at":"2013-08-15T21:20:32Z","updated_at":"2013-08-15T21:25:38Z","_links":{"self":{"href":"/api/v2/topics/556908","class":"topic"},"articles":{"href":"/api/v2/topics/556908/articles","class":"article"},"translations":{"href":"/api/v2/topics/556908/translations","class":"topic_translation"}}}]}}'
55
+ http_version:
56
+ recorded_at: Mon, 19 Aug 2013 23:51:34 GMT
57
+ - request:
58
+ method: patch
59
+ uri: https://devel.desk.com/api/v2/topics/498301
60
+ body:
61
+ encoding: UTF-8
62
+ string: '{"description":"Another description update."}'
63
+ headers:
64
+ Accept:
65
+ - application/json
66
+ User-Agent:
67
+ - desk.com Ruby Gem v0.1.0
68
+ Content-Type:
69
+ - application/json
70
+ response:
71
+ status:
72
+ code: 200
73
+ message:
74
+ headers:
75
+ Cache-Control:
76
+ - max-age=0, private, must-revalidate
77
+ Content-Type:
78
+ - application/json; charset=utf-8
79
+ Date:
80
+ - Mon, 19 Aug 2013 23:51:34 GMT
81
+ ETag:
82
+ - '"00c2a00ee43c52fbfc99fb7cc732ad68"'
83
+ Server:
84
+ - nginx
85
+ Status:
86
+ - 200 OK
87
+ Vary:
88
+ - X-AppVersion
89
+ X-AppVersion:
90
+ - '7.9'
91
+ X-Frame-Options:
92
+ - SAMEORIGIN
93
+ X-Rack-Cache:
94
+ - invalidate, pass
95
+ X-Rate-Limit-Limit:
96
+ - '60'
97
+ X-Rate-Limit-Remaining:
98
+ - '47'
99
+ X-Rate-Limit-Reset:
100
+ - '26'
101
+ X-Request-Id:
102
+ - ec44d70f410a893973218a55257ffa84
103
+ X-Runtime:
104
+ - '0.086063'
105
+ X-UA-Compatible:
106
+ - IE=Edge,chrome=1
107
+ Content-Length:
108
+ - '430'
109
+ Connection:
110
+ - keep-alive
111
+ body:
112
+ encoding: UTF-8
113
+ string: '{"name":"Testing English","description":"Another description update.","position":1,"allow_questions":true,"in_support_center":true,"created_at":"2013-04-22T23:46:42Z","updated_at":"2013-08-19T23:51:34Z","_links":{"self":{"href":"/api/v2/topics/498301","class":"topic"},"articles":{"href":"/api/v2/topics/498301/articles","class":"article"},"translations":{"href":"/api/v2/topics/498301/translations","class":"topic_translation"}}}'
114
+ http_version:
115
+ recorded_at: Mon, 19 Aug 2013 23:51:34 GMT
116
+ recorded_with: VCR 2.5.0
@@ -23,9 +23,9 @@ http_interactions:
23
23
  Content-Type:
24
24
  - application/json; charset=utf-8
25
25
  Date:
26
- - Thu, 15 Aug 2013 21:20:33 GMT
26
+ - Mon, 19 Aug 2013 23:51:34 GMT
27
27
  ETag:
28
- - '"1376586898"'
28
+ - '"1376931810"'
29
29
  Status:
30
30
  - 200 OK
31
31
  Vary:
@@ -37,11 +37,11 @@ http_interactions:
37
37
  X-Rate-Limit-Limit:
38
38
  - '60'
39
39
  X-Rate-Limit-Remaining:
40
- - '42'
40
+ - '49'
41
41
  X-Rate-Limit-Reset:
42
42
  - '27'
43
43
  X-Request-Id:
44
- - 474bebf1200446a5e7b7d24721b12a89
44
+ - a4c645d1078c272a00bdc14003b10074
45
45
  Content-Length:
46
46
  - '1868'
47
47
  Connection:
@@ -52,5 +52,5 @@ http_interactions:
52
52
  Stachl","public_name":"Thomas Stachl","email":"tstachl@salesforce.com","level":"siteadmin_billing","_links":{"self":{"href":"/api/v2/users/16096734","class":"user"},"preferences":{"href":"/api/v2/users/16096734/preferences","class":"user_preference"},"searches":{"href":"/api/v2/users/16096734/searches","class":"search"}}},{"name":"Dan
53
53
  Stern","public_name":"Dan","email":"dan@desk.com","level":"siteadmin","_links":{"self":{"href":"/api/v2/users/16107036","class":"user"},"preferences":{"href":"/api/v2/users/16107036/preferences","class":"user_preference"},"searches":{"href":"/api/v2/users/16107036/searches","class":"search"}}},{"name":"Mark","public_name":"Mark","email":"mchasse_old@desk.com","level":"siteadmin_billing","_links":{"self":{"href":"/api/v2/users/17069383","class":"user"},"preferences":{"href":"/api/v2/users/17069383/preferences","class":"user_preference"},"searches":{"href":"/api/v2/users/17069383/searches","class":"search"}}},{"name":"Mich","public_name":"Mich","email":"mich@desk.com","level":"siteadmin_billing","_links":{"self":{"href":"/api/v2/users/17069397","class":"user"},"preferences":{"href":"/api/v2/users/17069397/preferences","class":"user_preference"},"searches":{"href":"/api/v2/users/17069397/searches","class":"search"}}},{"name":"Keith","public_name":"Keith","email":"keith@desk.com","level":"agent","_links":{"self":{"href":"/api/v2/users/17250751","class":"user"},"preferences":{"href":"/api/v2/users/17250751/preferences","class":"user_preference"},"searches":{"href":"/api/v2/users/17250751/searches","class":"search"}}}]}}'
54
54
  http_version:
55
- recorded_at: Thu, 15 Aug 2013 21:20:33 GMT
55
+ recorded_at: Mon, 19 Aug 2013 23:51:34 GMT
56
56
  recorded_with: VCR 2.5.0