my_john_deere_api 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +813 -0
  3. data/Rakefile +9 -0
  4. data/lib/my_john_deere_api.rb +17 -0
  5. data/lib/my_john_deere_api/authorize.rb +69 -0
  6. data/lib/my_john_deere_api/client.rb +151 -0
  7. data/lib/my_john_deere_api/consumer.rb +90 -0
  8. data/lib/my_john_deere_api/errors.rb +7 -0
  9. data/lib/my_john_deere_api/errors/invalid_record_error.rb +29 -0
  10. data/lib/my_john_deere_api/errors/missing_contribution_definition_id_error.rb +12 -0
  11. data/lib/my_john_deere_api/errors/not_yet_implemented_error.rb +12 -0
  12. data/lib/my_john_deere_api/errors/type_mismatch_error.rb +12 -0
  13. data/lib/my_john_deere_api/errors/unsupported_environment_error.rb +18 -0
  14. data/lib/my_john_deere_api/helpers.rb +6 -0
  15. data/lib/my_john_deere_api/helpers/case_conversion.rb +37 -0
  16. data/lib/my_john_deere_api/helpers/environment_helper.rb +25 -0
  17. data/lib/my_john_deere_api/helpers/uri_helpers.rb +19 -0
  18. data/lib/my_john_deere_api/helpers/validate_contribution_definition.rb +18 -0
  19. data/lib/my_john_deere_api/model.rb +10 -0
  20. data/lib/my_john_deere_api/model/asset.rb +69 -0
  21. data/lib/my_john_deere_api/model/asset_location.rb +19 -0
  22. data/lib/my_john_deere_api/model/base.rb +97 -0
  23. data/lib/my_john_deere_api/model/contribution_definition.rb +15 -0
  24. data/lib/my_john_deere_api/model/contribution_product.rb +33 -0
  25. data/lib/my_john_deere_api/model/field.rb +40 -0
  26. data/lib/my_john_deere_api/model/flag.rb +36 -0
  27. data/lib/my_john_deere_api/model/organization.rb +43 -0
  28. data/lib/my_john_deere_api/net_http_retry.rb +2 -0
  29. data/lib/my_john_deere_api/net_http_retry/decorator.rb +53 -0
  30. data/lib/my_john_deere_api/net_http_retry/max_retries_exceeded_error.rb +20 -0
  31. data/lib/my_john_deere_api/request.rb +6 -0
  32. data/lib/my_john_deere_api/request/collection.rb +10 -0
  33. data/lib/my_john_deere_api/request/collection/asset_locations.rb +27 -0
  34. data/lib/my_john_deere_api/request/collection/assets.rb +34 -0
  35. data/lib/my_john_deere_api/request/collection/base.rb +91 -0
  36. data/lib/my_john_deere_api/request/collection/contribution_definitions.rb +26 -0
  37. data/lib/my_john_deere_api/request/collection/contribution_products.rb +26 -0
  38. data/lib/my_john_deere_api/request/collection/fields.rb +26 -0
  39. data/lib/my_john_deere_api/request/collection/flags.rb +33 -0
  40. data/lib/my_john_deere_api/request/collection/organizations.rb +26 -0
  41. data/lib/my_john_deere_api/request/create.rb +5 -0
  42. data/lib/my_john_deere_api/request/create/asset.rb +57 -0
  43. data/lib/my_john_deere_api/request/create/asset_location.rb +110 -0
  44. data/lib/my_john_deere_api/request/create/base.rb +67 -0
  45. data/lib/my_john_deere_api/request/individual.rb +8 -0
  46. data/lib/my_john_deere_api/request/individual/asset.rb +19 -0
  47. data/lib/my_john_deere_api/request/individual/base.rb +52 -0
  48. data/lib/my_john_deere_api/request/individual/contribution_definition.rb +19 -0
  49. data/lib/my_john_deere_api/request/individual/contribution_product.rb +19 -0
  50. data/lib/my_john_deere_api/request/individual/field.rb +19 -0
  51. data/lib/my_john_deere_api/request/individual/organization.rb +19 -0
  52. data/lib/my_john_deere_api/request/update.rb +4 -0
  53. data/lib/my_john_deere_api/request/update/asset.rb +40 -0
  54. data/lib/my_john_deere_api/request/update/base.rb +67 -0
  55. data/lib/my_john_deere_api/validators.rb +5 -0
  56. data/lib/my_john_deere_api/validators/asset.rb +35 -0
  57. data/lib/my_john_deere_api/validators/asset_location.rb +34 -0
  58. data/lib/my_john_deere_api/validators/base.rb +67 -0
  59. data/lib/my_john_deere_api/version.rb +3 -0
  60. data/test/lib/my_john_deere_api/authorize_test.rb +81 -0
  61. data/test/lib/my_john_deere_api/client_test.rb +225 -0
  62. data/test/lib/my_john_deere_api/consumer_test.rb +58 -0
  63. data/test/lib/my_john_deere_api/errors/invalid_record_error_test.rb +26 -0
  64. data/test/lib/my_john_deere_api/errors/max_retries_exceeded_error_test.rb +13 -0
  65. data/test/lib/my_john_deere_api/errors/missing_contribution_definition_id_error_test.rb +14 -0
  66. data/test/lib/my_john_deere_api/errors/not_yet_implemented_error_test.rb +13 -0
  67. data/test/lib/my_john_deere_api/errors/type_mismatch_error_test.rb +13 -0
  68. data/test/lib/my_john_deere_api/errors/unsupported_environment_error_test.rb +18 -0
  69. data/test/lib/my_john_deere_api/errors_test.rb +25 -0
  70. data/test/lib/my_john_deere_api/helpers/case_conversion_test.rb +100 -0
  71. data/test/lib/my_john_deere_api/helpers/environment_helper_test.rb +67 -0
  72. data/test/lib/my_john_deere_api/helpers/uri_helpers_test.rb +58 -0
  73. data/test/lib/my_john_deere_api/helpers/validate_contribution_definition_test.rb +74 -0
  74. data/test/lib/my_john_deere_api/helpers_test.rb +21 -0
  75. data/test/lib/my_john_deere_api/model/asset_location_test.rb +38 -0
  76. data/test/lib/my_john_deere_api/model/asset_test.rb +133 -0
  77. data/test/lib/my_john_deere_api/model/base_test.rb +76 -0
  78. data/test/lib/my_john_deere_api/model/contribution_definition_test.rb +52 -0
  79. data/test/lib/my_john_deere_api/model/contribution_product_test.rb +82 -0
  80. data/test/lib/my_john_deere_api/model/field_test.rb +65 -0
  81. data/test/lib/my_john_deere_api/model/flag_test.rb +48 -0
  82. data/test/lib/my_john_deere_api/model/organization_test.rb +84 -0
  83. data/test/lib/my_john_deere_api/model_test.rb +37 -0
  84. data/test/lib/my_john_deere_api/net_http_retry/decorator_test.rb +163 -0
  85. data/test/lib/my_john_deere_api/request/collection/asset_locations_test.rb +102 -0
  86. data/test/lib/my_john_deere_api/request/collection/assets_test.rb +99 -0
  87. data/test/lib/my_john_deere_api/request/collection/base_test.rb +27 -0
  88. data/test/lib/my_john_deere_api/request/collection/contribution_definitions_test.rb +88 -0
  89. data/test/lib/my_john_deere_api/request/collection/contribution_products_test.rb +88 -0
  90. data/test/lib/my_john_deere_api/request/collection/fields_test.rb +86 -0
  91. data/test/lib/my_john_deere_api/request/collection/flags_test.rb +92 -0
  92. data/test/lib/my_john_deere_api/request/collection/organizations_test.rb +87 -0
  93. data/test/lib/my_john_deere_api/request/collection_test.rb +37 -0
  94. data/test/lib/my_john_deere_api/request/create/asset_location_test.rb +163 -0
  95. data/test/lib/my_john_deere_api/request/create/asset_test.rb +182 -0
  96. data/test/lib/my_john_deere_api/request/create/base_test.rb +29 -0
  97. data/test/lib/my_john_deere_api/request/create_test.rb +17 -0
  98. data/test/lib/my_john_deere_api/request/individual/asset_test.rb +33 -0
  99. data/test/lib/my_john_deere_api/request/individual/base_test.rb +18 -0
  100. data/test/lib/my_john_deere_api/request/individual/contribution_definition_test.rb +33 -0
  101. data/test/lib/my_john_deere_api/request/individual/contribution_product_test.rb +33 -0
  102. data/test/lib/my_john_deere_api/request/individual/field_test.rb +37 -0
  103. data/test/lib/my_john_deere_api/request/individual/organization_test.rb +33 -0
  104. data/test/lib/my_john_deere_api/request/individual_test.rb +29 -0
  105. data/test/lib/my_john_deere_api/request/update/asset_test.rb +99 -0
  106. data/test/lib/my_john_deere_api/request/update/base_test.rb +60 -0
  107. data/test/lib/my_john_deere_api/request/update_test.rb +13 -0
  108. data/test/lib/my_john_deere_api/request_test.rb +21 -0
  109. data/test/lib/my_john_deere_api/validators/asset_location_test.rb +61 -0
  110. data/test/lib/my_john_deere_api/validators/asset_test.rb +93 -0
  111. data/test/lib/my_john_deere_api/validators/base_test.rb +92 -0
  112. data/test/lib/my_john_deere_api/validators_test.rb +17 -0
  113. data/test/lib/my_john_deere_api/version_test.rb +9 -0
  114. data/test/my_john_deere_api_test.rb +37 -0
  115. data/test/support/helper.rb +97 -0
  116. data/test/support/vcr/accessor/delete_failed.yml +327 -0
  117. data/test/support/vcr/accessor/delete_max_failed.yml +615 -0
  118. data/test/support/vcr/accessor/delete_retry.yml +191 -0
  119. data/test/support/vcr/accessor/delete_retry_too_soon.yml +191 -0
  120. data/test/support/vcr/accessor/get_failed.yml +390 -0
  121. data/test/support/vcr/accessor/get_max_failed.yml +734 -0
  122. data/test/support/vcr/accessor/get_retry.yml +226 -0
  123. data/test/support/vcr/accessor/get_retry_too_soon.yml +226 -0
  124. data/test/support/vcr/accessor/post_failed.yml +417 -0
  125. data/test/support/vcr/accessor/post_max_failed.yml +785 -0
  126. data/test/support/vcr/accessor/post_retry.yml +241 -0
  127. data/test/support/vcr/accessor/post_retry_too_soon.yml +241 -0
  128. data/test/support/vcr/accessor/put_failed.yml +372 -0
  129. data/test/support/vcr/accessor/put_max_failed.yml +700 -0
  130. data/test/support/vcr/accessor/put_retry.yml +216 -0
  131. data/test/support/vcr/accessor/put_retry_too_soon.yml +216 -0
  132. data/test/support/vcr/catalog.yml +89 -0
  133. data/test/support/vcr/delete_asset.yml +82 -0
  134. data/test/support/vcr/get_access_token.yml +41 -0
  135. data/test/support/vcr/get_asset.yml +144 -0
  136. data/test/support/vcr/get_asset_locations.yml +196 -0
  137. data/test/support/vcr/get_assets.yml +152 -0
  138. data/test/support/vcr/get_contribution_definition.yml +90 -0
  139. data/test/support/vcr/get_contribution_definitions.yml +91 -0
  140. data/test/support/vcr/get_contribution_product.yml +91 -0
  141. data/test/support/vcr/get_contribution_products.yml +91 -0
  142. data/test/support/vcr/get_field.yml +144 -0
  143. data/test/support/vcr/get_fields.yml +146 -0
  144. data/test/support/vcr/get_flags.yml +47 -0
  145. data/test/support/vcr/get_organization.yml +90 -0
  146. data/test/support/vcr/get_organizations.yml +149 -0
  147. data/test/support/vcr/get_request_token.yml +83 -0
  148. data/test/support/vcr/post_asset_locations.yml +244 -0
  149. data/test/support/vcr/post_assets.yml +192 -0
  150. data/test/support/vcr/put_asset.yml +87 -0
  151. data/test/support/vcr/warning.txt +28 -0
  152. data/test/support/vcr_setup.rb +488 -0
  153. metadata +277 -0
@@ -0,0 +1,372 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
9
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
10
+ headers:
11
+ Accept:
12
+ - application/vnd.deere.axiom.v3+json
13
+ Content-Type:
14
+ - application/vnd.deere.axiom.v3+json
15
+ Accept-Encoding:
16
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
17
+ User-Agent:
18
+ - OAuth gem v0.5.4
19
+ Content-Length:
20
+ - '267'
21
+ Authorization:
22
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
23
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
24
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
25
+ oauth_version="1.0"
26
+ response:
27
+ status:
28
+ code: 429
29
+ message: Too Many Requests
30
+ headers:
31
+ Date:
32
+ - Mon, 10 Feb 2020 17:29:30 GMT
33
+ X-Deere-Handling-Server:
34
+ - ip-10-214-44-33
35
+ X-Frame-Options:
36
+ - SAMEORIGIN
37
+ X-Deere-Elapsed-Ms:
38
+ - '185'
39
+ body:
40
+ encoding: UTF-8
41
+ string: ''
42
+ http_version:
43
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
44
+ - request:
45
+ method: put
46
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
50
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
51
+ headers:
52
+ Accept:
53
+ - application/vnd.deere.axiom.v3+json
54
+ Content-Type:
55
+ - application/vnd.deere.axiom.v3+json
56
+ Accept-Encoding:
57
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
58
+ User-Agent:
59
+ - OAuth gem v0.5.4
60
+ Content-Length:
61
+ - '267'
62
+ Authorization:
63
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
64
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
65
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
66
+ oauth_version="1.0"
67
+ response:
68
+ status:
69
+ code: 429
70
+ message: Too Many Requests
71
+ headers:
72
+ Date:
73
+ - Mon, 10 Feb 2020 17:29:30 GMT
74
+ X-Deere-Handling-Server:
75
+ - ip-10-214-44-33
76
+ X-Frame-Options:
77
+ - SAMEORIGIN
78
+ X-Deere-Elapsed-Ms:
79
+ - '185'
80
+ body:
81
+ encoding: UTF-8
82
+ string: ''
83
+ http_version:
84
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
85
+ - request:
86
+ method: put
87
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
88
+ body:
89
+ encoding: UTF-8
90
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
91
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
92
+ headers:
93
+ Accept:
94
+ - application/vnd.deere.axiom.v3+json
95
+ Content-Type:
96
+ - application/vnd.deere.axiom.v3+json
97
+ Accept-Encoding:
98
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
99
+ User-Agent:
100
+ - OAuth gem v0.5.4
101
+ Content-Length:
102
+ - '267'
103
+ Authorization:
104
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
105
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
106
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
107
+ oauth_version="1.0"
108
+ response:
109
+ status:
110
+ code: 503
111
+ message: Service Unavailable
112
+ headers:
113
+ Date:
114
+ - Mon, 10 Feb 2020 17:29:30 GMT
115
+ X-Deere-Handling-Server:
116
+ - ip-10-214-44-33
117
+ X-Frame-Options:
118
+ - SAMEORIGIN
119
+ X-Deere-Elapsed-Ms:
120
+ - '185'
121
+ body:
122
+ encoding: UTF-8
123
+ string: ''
124
+ http_version:
125
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
126
+ - request:
127
+ method: put
128
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
129
+ body:
130
+ encoding: UTF-8
131
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
132
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
133
+ headers:
134
+ Accept:
135
+ - application/vnd.deere.axiom.v3+json
136
+ Content-Type:
137
+ - application/vnd.deere.axiom.v3+json
138
+ Accept-Encoding:
139
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
140
+ User-Agent:
141
+ - OAuth gem v0.5.4
142
+ Content-Length:
143
+ - '267'
144
+ Authorization:
145
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
146
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
147
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
148
+ oauth_version="1.0"
149
+ response:
150
+ status:
151
+ code: 503
152
+ message: Service Unavailable
153
+ headers:
154
+ Date:
155
+ - Mon, 10 Feb 2020 17:29:30 GMT
156
+ X-Deere-Handling-Server:
157
+ - ip-10-214-44-33
158
+ X-Frame-Options:
159
+ - SAMEORIGIN
160
+ X-Deere-Elapsed-Ms:
161
+ - '185'
162
+ body:
163
+ encoding: UTF-8
164
+ string: ''
165
+ http_version:
166
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
167
+ - request:
168
+ method: put
169
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
170
+ body:
171
+ encoding: UTF-8
172
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
173
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
174
+ headers:
175
+ Accept:
176
+ - application/vnd.deere.axiom.v3+json
177
+ Content-Type:
178
+ - application/vnd.deere.axiom.v3+json
179
+ Accept-Encoding:
180
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
181
+ User-Agent:
182
+ - OAuth gem v0.5.4
183
+ Content-Length:
184
+ - '267'
185
+ Authorization:
186
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
187
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
188
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
189
+ oauth_version="1.0"
190
+ response:
191
+ status:
192
+ code: 429
193
+ message: Too Many Requests
194
+ headers:
195
+ Date:
196
+ - Mon, 10 Feb 2020 17:29:30 GMT
197
+ X-Deere-Handling-Server:
198
+ - ip-10-214-44-33
199
+ X-Frame-Options:
200
+ - SAMEORIGIN
201
+ X-Deere-Elapsed-Ms:
202
+ - '185'
203
+ body:
204
+ encoding: UTF-8
205
+ string: ''
206
+ http_version:
207
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
208
+ - request:
209
+ method: put
210
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
211
+ body:
212
+ encoding: UTF-8
213
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
214
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
215
+ headers:
216
+ Accept:
217
+ - application/vnd.deere.axiom.v3+json
218
+ Content-Type:
219
+ - application/vnd.deere.axiom.v3+json
220
+ Accept-Encoding:
221
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
222
+ User-Agent:
223
+ - OAuth gem v0.5.4
224
+ Content-Length:
225
+ - '267'
226
+ Authorization:
227
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
228
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
229
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
230
+ oauth_version="1.0"
231
+ response:
232
+ status:
233
+ code: 429
234
+ message: Too Many Requests
235
+ headers:
236
+ Date:
237
+ - Mon, 10 Feb 2020 17:29:30 GMT
238
+ X-Deere-Handling-Server:
239
+ - ip-10-214-44-33
240
+ X-Frame-Options:
241
+ - SAMEORIGIN
242
+ X-Deere-Elapsed-Ms:
243
+ - '185'
244
+ body:
245
+ encoding: UTF-8
246
+ string: ''
247
+ http_version:
248
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
249
+ - request:
250
+ method: put
251
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
252
+ body:
253
+ encoding: UTF-8
254
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
255
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
256
+ headers:
257
+ Accept:
258
+ - application/vnd.deere.axiom.v3+json
259
+ Content-Type:
260
+ - application/vnd.deere.axiom.v3+json
261
+ Accept-Encoding:
262
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
263
+ User-Agent:
264
+ - OAuth gem v0.5.4
265
+ Content-Length:
266
+ - '267'
267
+ Authorization:
268
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
269
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
270
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
271
+ oauth_version="1.0"
272
+ response:
273
+ status:
274
+ code: 503
275
+ message: Service Unavailable
276
+ headers:
277
+ Date:
278
+ - Mon, 10 Feb 2020 17:29:30 GMT
279
+ X-Deere-Handling-Server:
280
+ - ip-10-214-44-33
281
+ X-Frame-Options:
282
+ - SAMEORIGIN
283
+ X-Deere-Elapsed-Ms:
284
+ - '185'
285
+ body:
286
+ encoding: UTF-8
287
+ string: ''
288
+ http_version:
289
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
290
+ - request:
291
+ method: put
292
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
293
+ body:
294
+ encoding: UTF-8
295
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
296
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
297
+ headers:
298
+ Accept:
299
+ - application/vnd.deere.axiom.v3+json
300
+ Content-Type:
301
+ - application/vnd.deere.axiom.v3+json
302
+ Accept-Encoding:
303
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
304
+ User-Agent:
305
+ - OAuth gem v0.5.4
306
+ Content-Length:
307
+ - '267'
308
+ Authorization:
309
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
310
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
311
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
312
+ oauth_version="1.0"
313
+ response:
314
+ status:
315
+ code: 503
316
+ message: Service Unavailable
317
+ headers:
318
+ Date:
319
+ - Mon, 10 Feb 2020 17:29:30 GMT
320
+ X-Deere-Handling-Server:
321
+ - ip-10-214-44-33
322
+ X-Frame-Options:
323
+ - SAMEORIGIN
324
+ X-Deere-Elapsed-Ms:
325
+ - '185'
326
+ body:
327
+ encoding: UTF-8
328
+ string: ''
329
+ http_version:
330
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
331
+ - request:
332
+ method: put
333
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
334
+ body:
335
+ encoding: UTF-8
336
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
337
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
338
+ headers:
339
+ Accept:
340
+ - application/vnd.deere.axiom.v3+json
341
+ Content-Type:
342
+ - application/vnd.deere.axiom.v3+json
343
+ Accept-Encoding:
344
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
345
+ User-Agent:
346
+ - OAuth gem v0.5.4
347
+ Content-Length:
348
+ - '267'
349
+ Authorization:
350
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
351
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
352
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
353
+ oauth_version="1.0"
354
+ response:
355
+ status:
356
+ code: 204
357
+ message: No Content
358
+ headers:
359
+ Date:
360
+ - Mon, 10 Feb 2020 17:29:30 GMT
361
+ X-Deere-Handling-Server:
362
+ - ip-10-214-44-33
363
+ X-Frame-Options:
364
+ - SAMEORIGIN
365
+ X-Deere-Elapsed-Ms:
366
+ - '185'
367
+ body:
368
+ encoding: UTF-8
369
+ string: ''
370
+ http_version:
371
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
372
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,700 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
9
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
10
+ headers:
11
+ Accept:
12
+ - application/vnd.deere.axiom.v3+json
13
+ Content-Type:
14
+ - application/vnd.deere.axiom.v3+json
15
+ Accept-Encoding:
16
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
17
+ User-Agent:
18
+ - OAuth gem v0.5.4
19
+ Content-Length:
20
+ - '267'
21
+ Authorization:
22
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
23
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
24
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
25
+ oauth_version="1.0"
26
+ response:
27
+ status:
28
+ code: 429
29
+ message: Too Many Requests
30
+ headers:
31
+ Date:
32
+ - Mon, 10 Feb 2020 17:29:30 GMT
33
+ X-Deere-Handling-Server:
34
+ - ip-10-214-44-33
35
+ X-Frame-Options:
36
+ - SAMEORIGIN
37
+ X-Deere-Elapsed-Ms:
38
+ - '185'
39
+ body:
40
+ encoding: UTF-8
41
+ string: ''
42
+ http_version:
43
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
44
+ - request:
45
+ method: put
46
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
50
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
51
+ headers:
52
+ Accept:
53
+ - application/vnd.deere.axiom.v3+json
54
+ Content-Type:
55
+ - application/vnd.deere.axiom.v3+json
56
+ Accept-Encoding:
57
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
58
+ User-Agent:
59
+ - OAuth gem v0.5.4
60
+ Content-Length:
61
+ - '267'
62
+ Authorization:
63
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
64
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
65
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
66
+ oauth_version="1.0"
67
+ response:
68
+ status:
69
+ code: 429
70
+ message: Too Many Requests
71
+ headers:
72
+ Date:
73
+ - Mon, 10 Feb 2020 17:29:30 GMT
74
+ X-Deere-Handling-Server:
75
+ - ip-10-214-44-33
76
+ X-Frame-Options:
77
+ - SAMEORIGIN
78
+ X-Deere-Elapsed-Ms:
79
+ - '185'
80
+ body:
81
+ encoding: UTF-8
82
+ string: ''
83
+ http_version:
84
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
85
+ - request:
86
+ method: put
87
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
88
+ body:
89
+ encoding: UTF-8
90
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
91
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
92
+ headers:
93
+ Accept:
94
+ - application/vnd.deere.axiom.v3+json
95
+ Content-Type:
96
+ - application/vnd.deere.axiom.v3+json
97
+ Accept-Encoding:
98
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
99
+ User-Agent:
100
+ - OAuth gem v0.5.4
101
+ Content-Length:
102
+ - '267'
103
+ Authorization:
104
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
105
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
106
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
107
+ oauth_version="1.0"
108
+ response:
109
+ status:
110
+ code: 503
111
+ message: Service Unavailable
112
+ headers:
113
+ Date:
114
+ - Mon, 10 Feb 2020 17:29:30 GMT
115
+ X-Deere-Handling-Server:
116
+ - ip-10-214-44-33
117
+ X-Frame-Options:
118
+ - SAMEORIGIN
119
+ X-Deere-Elapsed-Ms:
120
+ - '185'
121
+ body:
122
+ encoding: UTF-8
123
+ string: ''
124
+ http_version:
125
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
126
+ - request:
127
+ method: put
128
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
129
+ body:
130
+ encoding: UTF-8
131
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
132
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
133
+ headers:
134
+ Accept:
135
+ - application/vnd.deere.axiom.v3+json
136
+ Content-Type:
137
+ - application/vnd.deere.axiom.v3+json
138
+ Accept-Encoding:
139
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
140
+ User-Agent:
141
+ - OAuth gem v0.5.4
142
+ Content-Length:
143
+ - '267'
144
+ Authorization:
145
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
146
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
147
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
148
+ oauth_version="1.0"
149
+ response:
150
+ status:
151
+ code: 503
152
+ message: Service Unavailable
153
+ headers:
154
+ Date:
155
+ - Mon, 10 Feb 2020 17:29:30 GMT
156
+ X-Deere-Handling-Server:
157
+ - ip-10-214-44-33
158
+ X-Frame-Options:
159
+ - SAMEORIGIN
160
+ X-Deere-Elapsed-Ms:
161
+ - '185'
162
+ body:
163
+ encoding: UTF-8
164
+ string: ''
165
+ http_version:
166
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
167
+ - request:
168
+ method: put
169
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
170
+ body:
171
+ encoding: UTF-8
172
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
173
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
174
+ headers:
175
+ Accept:
176
+ - application/vnd.deere.axiom.v3+json
177
+ Content-Type:
178
+ - application/vnd.deere.axiom.v3+json
179
+ Accept-Encoding:
180
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
181
+ User-Agent:
182
+ - OAuth gem v0.5.4
183
+ Content-Length:
184
+ - '267'
185
+ Authorization:
186
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
187
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
188
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
189
+ oauth_version="1.0"
190
+ response:
191
+ status:
192
+ code: 429
193
+ message: Too Many Requests
194
+ headers:
195
+ Date:
196
+ - Mon, 10 Feb 2020 17:29:30 GMT
197
+ X-Deere-Handling-Server:
198
+ - ip-10-214-44-33
199
+ X-Frame-Options:
200
+ - SAMEORIGIN
201
+ X-Deere-Elapsed-Ms:
202
+ - '185'
203
+ body:
204
+ encoding: UTF-8
205
+ string: ''
206
+ http_version:
207
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
208
+ - request:
209
+ method: put
210
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
211
+ body:
212
+ encoding: UTF-8
213
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
214
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
215
+ headers:
216
+ Accept:
217
+ - application/vnd.deere.axiom.v3+json
218
+ Content-Type:
219
+ - application/vnd.deere.axiom.v3+json
220
+ Accept-Encoding:
221
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
222
+ User-Agent:
223
+ - OAuth gem v0.5.4
224
+ Content-Length:
225
+ - '267'
226
+ Authorization:
227
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
228
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
229
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
230
+ oauth_version="1.0"
231
+ response:
232
+ status:
233
+ code: 429
234
+ message: Too Many Requests
235
+ headers:
236
+ Date:
237
+ - Mon, 10 Feb 2020 17:29:30 GMT
238
+ X-Deere-Handling-Server:
239
+ - ip-10-214-44-33
240
+ X-Frame-Options:
241
+ - SAMEORIGIN
242
+ X-Deere-Elapsed-Ms:
243
+ - '185'
244
+ body:
245
+ encoding: UTF-8
246
+ string: ''
247
+ http_version:
248
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
249
+ - request:
250
+ method: put
251
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
252
+ body:
253
+ encoding: UTF-8
254
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
255
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
256
+ headers:
257
+ Accept:
258
+ - application/vnd.deere.axiom.v3+json
259
+ Content-Type:
260
+ - application/vnd.deere.axiom.v3+json
261
+ Accept-Encoding:
262
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
263
+ User-Agent:
264
+ - OAuth gem v0.5.4
265
+ Content-Length:
266
+ - '267'
267
+ Authorization:
268
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
269
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
270
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
271
+ oauth_version="1.0"
272
+ response:
273
+ status:
274
+ code: 503
275
+ message: Service Unavailable
276
+ headers:
277
+ Date:
278
+ - Mon, 10 Feb 2020 17:29:30 GMT
279
+ X-Deere-Handling-Server:
280
+ - ip-10-214-44-33
281
+ X-Frame-Options:
282
+ - SAMEORIGIN
283
+ X-Deere-Elapsed-Ms:
284
+ - '185'
285
+ body:
286
+ encoding: UTF-8
287
+ string: ''
288
+ http_version:
289
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
290
+ - request:
291
+ method: put
292
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
293
+ body:
294
+ encoding: UTF-8
295
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
296
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
297
+ headers:
298
+ Accept:
299
+ - application/vnd.deere.axiom.v3+json
300
+ Content-Type:
301
+ - application/vnd.deere.axiom.v3+json
302
+ Accept-Encoding:
303
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
304
+ User-Agent:
305
+ - OAuth gem v0.5.4
306
+ Content-Length:
307
+ - '267'
308
+ Authorization:
309
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
310
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
311
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
312
+ oauth_version="1.0"
313
+ response:
314
+ status:
315
+ code: 503
316
+ message: Service Unavailable
317
+ headers:
318
+ Date:
319
+ - Mon, 10 Feb 2020 17:29:30 GMT
320
+ X-Deere-Handling-Server:
321
+ - ip-10-214-44-33
322
+ X-Frame-Options:
323
+ - SAMEORIGIN
324
+ X-Deere-Elapsed-Ms:
325
+ - '185'
326
+ body:
327
+ encoding: UTF-8
328
+ string: ''
329
+ http_version:
330
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
331
+ - request:
332
+ method: put
333
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
334
+ body:
335
+ encoding: UTF-8
336
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
337
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
338
+ headers:
339
+ Accept:
340
+ - application/vnd.deere.axiom.v3+json
341
+ Content-Type:
342
+ - application/vnd.deere.axiom.v3+json
343
+ Accept-Encoding:
344
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
345
+ User-Agent:
346
+ - OAuth gem v0.5.4
347
+ Content-Length:
348
+ - '267'
349
+ Authorization:
350
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
351
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
352
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
353
+ oauth_version="1.0"
354
+ response:
355
+ status:
356
+ code: 429
357
+ message: Too Many Requests
358
+ headers:
359
+ Date:
360
+ - Mon, 10 Feb 2020 17:29:30 GMT
361
+ X-Deere-Handling-Server:
362
+ - ip-10-214-44-33
363
+ X-Frame-Options:
364
+ - SAMEORIGIN
365
+ X-Deere-Elapsed-Ms:
366
+ - '185'
367
+ body:
368
+ encoding: UTF-8
369
+ string: ''
370
+ http_version:
371
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
372
+ - request:
373
+ method: put
374
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
375
+ body:
376
+ encoding: UTF-8
377
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
378
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
379
+ headers:
380
+ Accept:
381
+ - application/vnd.deere.axiom.v3+json
382
+ Content-Type:
383
+ - application/vnd.deere.axiom.v3+json
384
+ Accept-Encoding:
385
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
386
+ User-Agent:
387
+ - OAuth gem v0.5.4
388
+ Content-Length:
389
+ - '267'
390
+ Authorization:
391
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
392
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
393
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
394
+ oauth_version="1.0"
395
+ response:
396
+ status:
397
+ code: 429
398
+ message: Too Many Requests
399
+ headers:
400
+ Date:
401
+ - Mon, 10 Feb 2020 17:29:30 GMT
402
+ X-Deere-Handling-Server:
403
+ - ip-10-214-44-33
404
+ X-Frame-Options:
405
+ - SAMEORIGIN
406
+ X-Deere-Elapsed-Ms:
407
+ - '185'
408
+ body:
409
+ encoding: UTF-8
410
+ string: ''
411
+ http_version:
412
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
413
+ - request:
414
+ method: put
415
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
416
+ body:
417
+ encoding: UTF-8
418
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
419
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
420
+ headers:
421
+ Accept:
422
+ - application/vnd.deere.axiom.v3+json
423
+ Content-Type:
424
+ - application/vnd.deere.axiom.v3+json
425
+ Accept-Encoding:
426
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
427
+ User-Agent:
428
+ - OAuth gem v0.5.4
429
+ Content-Length:
430
+ - '267'
431
+ Authorization:
432
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
433
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
434
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
435
+ oauth_version="1.0"
436
+ response:
437
+ status:
438
+ code: 503
439
+ message: Service Unavailable
440
+ headers:
441
+ Date:
442
+ - Mon, 10 Feb 2020 17:29:30 GMT
443
+ X-Deere-Handling-Server:
444
+ - ip-10-214-44-33
445
+ X-Frame-Options:
446
+ - SAMEORIGIN
447
+ X-Deere-Elapsed-Ms:
448
+ - '185'
449
+ body:
450
+ encoding: UTF-8
451
+ string: ''
452
+ http_version:
453
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
454
+ - request:
455
+ method: put
456
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
457
+ body:
458
+ encoding: UTF-8
459
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
460
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
461
+ headers:
462
+ Accept:
463
+ - application/vnd.deere.axiom.v3+json
464
+ Content-Type:
465
+ - application/vnd.deere.axiom.v3+json
466
+ Accept-Encoding:
467
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
468
+ User-Agent:
469
+ - OAuth gem v0.5.4
470
+ Content-Length:
471
+ - '267'
472
+ Authorization:
473
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
474
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
475
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
476
+ oauth_version="1.0"
477
+ response:
478
+ status:
479
+ code: 503
480
+ message: Service Unavailable
481
+ headers:
482
+ Date:
483
+ - Mon, 10 Feb 2020 17:29:30 GMT
484
+ X-Deere-Handling-Server:
485
+ - ip-10-214-44-33
486
+ X-Frame-Options:
487
+ - SAMEORIGIN
488
+ X-Deere-Elapsed-Ms:
489
+ - '185'
490
+ body:
491
+ encoding: UTF-8
492
+ string: ''
493
+ http_version:
494
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
495
+ - request:
496
+ method: put
497
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
498
+ body:
499
+ encoding: UTF-8
500
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
501
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
502
+ headers:
503
+ Accept:
504
+ - application/vnd.deere.axiom.v3+json
505
+ Content-Type:
506
+ - application/vnd.deere.axiom.v3+json
507
+ Accept-Encoding:
508
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
509
+ User-Agent:
510
+ - OAuth gem v0.5.4
511
+ Content-Length:
512
+ - '267'
513
+ Authorization:
514
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
515
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
516
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
517
+ oauth_version="1.0"
518
+ response:
519
+ status:
520
+ code: 429
521
+ message: Too Many Requests
522
+ headers:
523
+ Date:
524
+ - Mon, 10 Feb 2020 17:29:30 GMT
525
+ X-Deere-Handling-Server:
526
+ - ip-10-214-44-33
527
+ X-Frame-Options:
528
+ - SAMEORIGIN
529
+ X-Deere-Elapsed-Ms:
530
+ - '185'
531
+ body:
532
+ encoding: UTF-8
533
+ string: ''
534
+ http_version:
535
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
536
+ - request:
537
+ method: put
538
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
539
+ body:
540
+ encoding: UTF-8
541
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
542
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
543
+ headers:
544
+ Accept:
545
+ - application/vnd.deere.axiom.v3+json
546
+ Content-Type:
547
+ - application/vnd.deere.axiom.v3+json
548
+ Accept-Encoding:
549
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
550
+ User-Agent:
551
+ - OAuth gem v0.5.4
552
+ Content-Length:
553
+ - '267'
554
+ Authorization:
555
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
556
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
557
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
558
+ oauth_version="1.0"
559
+ response:
560
+ status:
561
+ code: 429
562
+ message: Too Many Requests
563
+ headers:
564
+ Date:
565
+ - Mon, 10 Feb 2020 17:29:30 GMT
566
+ X-Deere-Handling-Server:
567
+ - ip-10-214-44-33
568
+ X-Frame-Options:
569
+ - SAMEORIGIN
570
+ X-Deere-Elapsed-Ms:
571
+ - '185'
572
+ body:
573
+ encoding: UTF-8
574
+ string: ''
575
+ http_version:
576
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
577
+ - request:
578
+ method: put
579
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
580
+ body:
581
+ encoding: UTF-8
582
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
583
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
584
+ headers:
585
+ Accept:
586
+ - application/vnd.deere.axiom.v3+json
587
+ Content-Type:
588
+ - application/vnd.deere.axiom.v3+json
589
+ Accept-Encoding:
590
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
591
+ User-Agent:
592
+ - OAuth gem v0.5.4
593
+ Content-Length:
594
+ - '267'
595
+ Authorization:
596
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
597
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
598
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
599
+ oauth_version="1.0"
600
+ response:
601
+ status:
602
+ code: 503
603
+ message: Service Unavailable
604
+ headers:
605
+ Date:
606
+ - Mon, 10 Feb 2020 17:29:30 GMT
607
+ X-Deere-Handling-Server:
608
+ - ip-10-214-44-33
609
+ X-Frame-Options:
610
+ - SAMEORIGIN
611
+ X-Deere-Elapsed-Ms:
612
+ - '185'
613
+ body:
614
+ encoding: UTF-8
615
+ string: ''
616
+ http_version:
617
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
618
+ - request:
619
+ method: put
620
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
621
+ body:
622
+ encoding: UTF-8
623
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
624
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
625
+ headers:
626
+ Accept:
627
+ - application/vnd.deere.axiom.v3+json
628
+ Content-Type:
629
+ - application/vnd.deere.axiom.v3+json
630
+ Accept-Encoding:
631
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
632
+ User-Agent:
633
+ - OAuth gem v0.5.4
634
+ Content-Length:
635
+ - '267'
636
+ Authorization:
637
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
638
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
639
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
640
+ oauth_version="1.0"
641
+ response:
642
+ status:
643
+ code: 503
644
+ message: Service Unavailable
645
+ headers:
646
+ Date:
647
+ - Mon, 10 Feb 2020 17:29:30 GMT
648
+ X-Deere-Handling-Server:
649
+ - ip-10-214-44-33
650
+ X-Frame-Options:
651
+ - SAMEORIGIN
652
+ X-Deere-Elapsed-Ms:
653
+ - '185'
654
+ body:
655
+ encoding: UTF-8
656
+ string: ''
657
+ http_version:
658
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
659
+ - request:
660
+ method: put
661
+ uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
662
+ body:
663
+ encoding: UTF-8
664
+ string: '{"assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","title":"i
665
+ REALLY like turtles!","links":[{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/contributionDefinitions/00000000-0000-0000-0000-000000000000"}]}'
666
+ headers:
667
+ Accept:
668
+ - application/vnd.deere.axiom.v3+json
669
+ Content-Type:
670
+ - application/vnd.deere.axiom.v3+json
671
+ Accept-Encoding:
672
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
673
+ User-Agent:
674
+ - OAuth gem v0.5.4
675
+ Content-Length:
676
+ - '267'
677
+ Authorization:
678
+ - OAuth oauth_body_hash="JXqhMr0ayK5gfHyej3M1xuUfSbw%3D", oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
679
+ oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
680
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
681
+ oauth_version="1.0"
682
+ response:
683
+ status:
684
+ code: 204
685
+ message: No Content
686
+ headers:
687
+ Date:
688
+ - Mon, 10 Feb 2020 17:29:30 GMT
689
+ X-Deere-Handling-Server:
690
+ - ip-10-214-44-33
691
+ X-Frame-Options:
692
+ - SAMEORIGIN
693
+ X-Deere-Elapsed-Ms:
694
+ - '185'
695
+ body:
696
+ encoding: UTF-8
697
+ string: ''
698
+ http_version:
699
+ recorded_at: Mon, 10 Feb 2020 17:29:30 GMT
700
+ recorded_with: VCR 5.0.0