my_john_deere_api 2.3.4 → 2.5.0

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