my_john_deere_api 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/my_john_deere_api/version.rb +1 -1
- data/test/lib/my_john_deere_api/client_test.rb +23 -4
- data/test/lib/my_john_deere_api/request/collection/assets_test.rb +1 -1
- data/test/lib/my_john_deere_api/request/create/asset_test.rb +1 -1
- data/test/support/helper.rb +0 -6
- data/test/support/vcr/catalog.yml +11 -12
- data/test/support/vcr/delete_asset.yml +10 -10
- data/test/support/vcr/get_access_token.yml +4 -4
- data/test/support/vcr/get_asset.yml +16 -16
- data/test/support/vcr/get_asset_locations.yml +29 -25
- data/test/support/vcr/get_assets.yml +23 -23
- data/test/support/vcr/get_contribution_definition.yml +10 -10
- data/test/support/vcr/get_contribution_definitions.yml +10 -10
- data/test/support/vcr/get_contribution_product.yml +10 -10
- data/test/support/vcr/get_contribution_products.yml +10 -10
- data/test/support/vcr/get_field.yml +15 -15
- data/test/support/vcr/get_fields.yml +15 -15
- data/test/support/vcr/get_flags.yml +5 -5
- data/test/support/vcr/get_organization.yml +9 -9
- data/test/support/vcr/get_organizations.yml +15 -15
- data/test/support/vcr/get_request_token.yml +9 -9
- data/test/support/vcr/post_asset_locations.yml +37 -33
- data/test/support/vcr/post_assets.yml +21 -21
- data/test/support/vcr/put_asset.yml +14 -14
- data/test/support/vcr/warning.txt +8 -4
- data/test/support/vcr_setup.rb +86 -32
- metadata +2 -3
- data/test/support/vcr/url.yml +0 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 323b2dbcafff1df5b7b99acdeca601dadbac2c505dcbc1083409c5140b24d004
|
4
|
+
data.tar.gz: '08836d5ef6a97a75a41819be9e0b4bc03e5b278c495c42e660e063dcd432f4c4'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2649b788f9abdad89c05f5335a181be1d2df328d1c093325c9e1dfc9ef728f87115ab2a5c386c509fecc649de5040aa64407c5d038258cee5b4fcf5ff26d604
|
7
|
+
data.tar.gz: baa8f6cf444d43be11907b42c618ff70b43a27e11c811c656c163ce56b7c7b4b9055281023603f4108d670cc8d5ec002e2f24398876210418208a9fe81fc4856
|
@@ -65,7 +65,17 @@ describe 'MyJohnDeereApi::Client' do
|
|
65
65
|
end
|
66
66
|
|
67
67
|
describe '#post' do
|
68
|
-
let(:attributes)
|
68
|
+
let(:attributes) do
|
69
|
+
CONFIG.sanitized_asset_attributes.merge(
|
70
|
+
links: [
|
71
|
+
{
|
72
|
+
'@type' => 'Link',
|
73
|
+
'rel' => 'contributionDefinition',
|
74
|
+
'uri' => "#{CONFIG.url}/contributionDefinitions/#{CONFIG.sanitized_asset_attributes[:contribution_definition_id]}"
|
75
|
+
}
|
76
|
+
]
|
77
|
+
)
|
78
|
+
end
|
69
79
|
|
70
80
|
it 'returns the response as a Hash' do
|
71
81
|
response = VCR.use_cassette('post_assets') do
|
@@ -92,14 +102,23 @@ describe 'MyJohnDeereApi::Client' do
|
|
92
102
|
let(:new_title) { 'i REALLY like turtles!' }
|
93
103
|
|
94
104
|
let(:attributes) do
|
95
|
-
CONFIG.
|
105
|
+
CONFIG.sanitized_asset_attributes.slice(
|
96
106
|
:asset_category, :asset_type, :asset_sub_type, :links
|
97
|
-
).merge(
|
107
|
+
).merge(
|
108
|
+
title: new_title,
|
109
|
+
links: [
|
110
|
+
{
|
111
|
+
'@type' => 'Link',
|
112
|
+
'rel' => 'contributionDefinition',
|
113
|
+
'uri' => "#{CONFIG.url}/contributionDefinitions/#{CONFIG.sanitized_asset_attributes[:contribution_definition_id]}"
|
114
|
+
}
|
115
|
+
]
|
116
|
+
)
|
98
117
|
end
|
99
118
|
|
100
119
|
it 'sends the request' do
|
101
120
|
response = VCR.use_cassette('put_asset') { client.put("/assets/#{asset_id}", attributes) }
|
102
|
-
|
121
|
+
puts "HASH!! #{response.inspect}" if response.is_a?(Hash)
|
103
122
|
assert_equal '204', response.code
|
104
123
|
assert_equal 'No Content', response.message
|
105
124
|
end
|
@@ -42,7 +42,7 @@ describe 'MyJohnDeereApi::Request::Collection::Assets' do
|
|
42
42
|
|
43
43
|
describe '#create(attributes)' do
|
44
44
|
it 'creates a new asset with the given attributes' do
|
45
|
-
attributes = CONFIG.
|
45
|
+
attributes = CONFIG.sanitized_asset_attributes
|
46
46
|
object = VCR.use_cassette('post_assets') { collection.create(attributes) }
|
47
47
|
|
48
48
|
assert_kind_of JD::Model::Asset, object
|
@@ -7,7 +7,7 @@ describe 'MyJohnDeereApi::Request::Create::Asset' do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
let(:valid_attributes) do
|
10
|
-
CONFIG.
|
10
|
+
CONFIG.sanitized_asset_attributes.merge(
|
11
11
|
organization_id: organization_id,
|
12
12
|
contribution_definition_id: contribution_definition_id,
|
13
13
|
)
|
data/test/support/helper.rb
CHANGED
@@ -12,12 +12,6 @@ Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new(:color => tru
|
|
12
12
|
# shortcut for long module name
|
13
13
|
JD = MyJohnDeereApi
|
14
14
|
|
15
|
-
API_KEY = ENV['API_KEY']
|
16
|
-
API_SECRET = ENV['API_SECRET']
|
17
|
-
|
18
|
-
ACCESS_TOKEN = ENV['ACCESS_TOKEN']
|
19
|
-
ACCESS_SECRET = ENV['ACCESS_SECRET']
|
20
|
-
|
21
15
|
TOKEN_PATTERN = /^[0-9a-z\-]+$/
|
22
16
|
SECRET_PATTERN = /^[0-9A-Za-z\-+=\/]+$/
|
23
17
|
|
@@ -16,22 +16,22 @@ http_interactions:
|
|
16
16
|
Authorization:
|
17
17
|
- OAuth oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
|
18
18
|
oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
|
19
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="
|
19
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_version="1.0"
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Mon, 10 Feb 2020 17:28:57 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/vnd.deere.axiom.v3+json;charset=UTF-8
|
29
29
|
X-Deere-Handling-Server:
|
30
|
-
- ip-10-214-45-
|
30
|
+
- ip-10-214-45-104
|
31
31
|
X-Frame-Options:
|
32
32
|
- SAMEORIGIN
|
33
33
|
X-Deere-Elapsed-Ms:
|
34
|
-
- '
|
34
|
+
- '9'
|
35
35
|
Cache-Control:
|
36
36
|
- no-store
|
37
37
|
Content-Language:
|
@@ -42,7 +42,7 @@ http_interactions:
|
|
42
42
|
encoding: ASCII-8BIT
|
43
43
|
string: '{"@type":"ApiCatalog","links":[{"@type":"Link","rel":"oauthRequestToken","uri":"https://sandboxapi.deere.com/platform/oauth/request_token"},{"@type":"Link","rel":"oauthAuthorizeRequestToken","uri":"https://my.deere.com/consentToUseOfData?oauth_token={token}"},{"@type":"Link","rel":"oauthAccessToken","uri":"https://sandboxapi.deere.com/platform/oauth/access_token"},{"@type":"Link","rel":"agencies","uri":"https://sandboxapi.deere.com/platform/agencies"}]}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Mon, 10 Feb 2020 17:28:57 GMT
|
46
46
|
- request:
|
47
47
|
method: get
|
48
48
|
uri: https://sandboxapi.deere.com/platform/
|
@@ -59,23 +59,22 @@ http_interactions:
|
|
59
59
|
Authorization:
|
60
60
|
- OAuth oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
|
61
61
|
oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
|
62
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="
|
63
|
-
oauth_version="1.0"
|
62
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_version="1.0"
|
64
63
|
response:
|
65
64
|
status:
|
66
65
|
code: 200
|
67
66
|
message: OK
|
68
67
|
headers:
|
69
68
|
Date:
|
70
|
-
-
|
69
|
+
- Mon, 10 Feb 2020 17:28:57 GMT
|
71
70
|
Content-Type:
|
72
71
|
- application/vnd.deere.axiom.v3+json;charset=UTF-8
|
73
72
|
X-Deere-Handling-Server:
|
74
|
-
- ip-10-214-
|
73
|
+
- ip-10-214-44-36
|
75
74
|
X-Frame-Options:
|
76
75
|
- SAMEORIGIN
|
77
76
|
X-Deere-Elapsed-Ms:
|
78
|
-
- '
|
77
|
+
- '16'
|
79
78
|
Cache-Control:
|
80
79
|
- no-store
|
81
80
|
Content-Language:
|
@@ -84,7 +83,7 @@ http_interactions:
|
|
84
83
|
- chunked
|
85
84
|
body:
|
86
85
|
encoding: ASCII-8BIT
|
87
|
-
string: '{"@type":"ApiCatalog","links":[{"@type":"Link","rel":"oauthRequestToken","uri":"https://sandboxapi.deere.com/platform/oauth/request_token"},{"@type":"Link","rel":"oauthAuthorizeRequestToken","uri":"https://my.deere.com/consentToUseOfData?oauth_token={token}"},{"@type":"Link","rel":"oauthAccessToken","uri":"https://sandboxapi.deere.com/platform/oauth/access_token"},{"@type":"Link","rel":"
|
86
|
+
string: '{"@type":"ApiCatalog","links":[{"@type":"Link","rel":"oauthRequestToken","uri":"https://sandboxapi.deere.com/platform/oauth/request_token"},{"@type":"Link","rel":"oauthAuthorizeRequestToken","uri":"https://my.deere.com/consentToUseOfData?oauth_token={token}"},{"@type":"Link","rel":"oauthAccessToken","uri":"https://sandboxapi.deere.com/platform/oauth/access_token"},{"@type":"Link","rel":"agencies","uri":"https://sandboxapi.deere.com/platform/agencies"}]}'
|
88
87
|
http_version:
|
89
|
-
recorded_at:
|
88
|
+
recorded_at: Mon, 10 Feb 2020 17:28:57 GMT
|
90
89
|
recorded_with: VCR 5.0.0
|
@@ -16,22 +16,22 @@ http_interactions:
|
|
16
16
|
Authorization:
|
17
17
|
- OAuth oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
|
18
18
|
oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
|
19
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="
|
19
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_version="1.0"
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Mon, 10 Feb 2020 17:29:35 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/vnd.deere.axiom.v3+json;charset=UTF-8
|
29
29
|
X-Deere-Handling-Server:
|
30
|
-
- ip-10-214-
|
30
|
+
- ip-10-214-45-213
|
31
31
|
X-Frame-Options:
|
32
32
|
- SAMEORIGIN
|
33
33
|
X-Deere-Elapsed-Ms:
|
34
|
-
- '
|
34
|
+
- '9'
|
35
35
|
Cache-Control:
|
36
36
|
- no-store
|
37
37
|
Content-Language:
|
@@ -42,7 +42,7 @@ http_interactions:
|
|
42
42
|
encoding: ASCII-8BIT
|
43
43
|
string: '{"@type":"ApiCatalog","links":[{"@type":"Link","rel":"oauthRequestToken","uri":"https://sandboxapi.deere.com/platform/oauth/request_token"},{"@type":"Link","rel":"oauthAuthorizeRequestToken","uri":"https://my.deere.com/consentToUseOfData?oauth_token={token}"},{"@type":"Link","rel":"oauthAccessToken","uri":"https://sandboxapi.deere.com/platform/oauth/access_token"},{"@type":"Link","rel":"agencies","uri":"https://sandboxapi.deere.com/platform/agencies"}]}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Mon, 10 Feb 2020 17:29:35 GMT
|
46
46
|
- request:
|
47
47
|
method: delete
|
48
48
|
uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
|
@@ -59,7 +59,7 @@ http_interactions:
|
|
59
59
|
Authorization:
|
60
60
|
- OAuth oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
|
61
61
|
oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
|
62
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="
|
62
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
|
63
63
|
oauth_version="1.0"
|
64
64
|
response:
|
65
65
|
status:
|
@@ -67,16 +67,16 @@ http_interactions:
|
|
67
67
|
message: No Content
|
68
68
|
headers:
|
69
69
|
Date:
|
70
|
-
-
|
70
|
+
- Mon, 10 Feb 2020 17:29:36 GMT
|
71
71
|
X-Deere-Handling-Server:
|
72
|
-
- ip-10-214-
|
72
|
+
- ip-10-214-45-99
|
73
73
|
X-Frame-Options:
|
74
74
|
- SAMEORIGIN
|
75
75
|
X-Deere-Elapsed-Ms:
|
76
|
-
- '
|
76
|
+
- '96'
|
77
77
|
body:
|
78
78
|
encoding: UTF-8
|
79
79
|
string: ''
|
80
80
|
http_version:
|
81
|
-
recorded_at:
|
81
|
+
recorded_at: Mon, 10 Feb 2020 17:29:36 GMT
|
82
82
|
recorded_with: VCR 5.0.0
|
@@ -16,7 +16,7 @@ http_interactions:
|
|
16
16
|
Authorization:
|
17
17
|
- OAuth oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
|
18
18
|
oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
|
19
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="
|
19
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
|
20
20
|
oauth_verifier="VERIFY", oauth_version="1.0"
|
21
21
|
response:
|
22
22
|
status:
|
@@ -24,11 +24,11 @@ http_interactions:
|
|
24
24
|
message: OK
|
25
25
|
headers:
|
26
26
|
Date:
|
27
|
-
-
|
27
|
+
- Mon, 10 Feb 2020 17:29:12 GMT
|
28
28
|
Content-Type:
|
29
29
|
- text/plain;charset=UTF-8
|
30
30
|
X-Deere-Handling-Server:
|
31
|
-
- ip-10-214-
|
31
|
+
- ip-10-214-44-36
|
32
32
|
Vary:
|
33
33
|
- Accept-Encoding
|
34
34
|
Transfer-Encoding:
|
@@ -37,5 +37,5 @@ http_interactions:
|
|
37
37
|
encoding: ASCII-8BIT
|
38
38
|
string: oauth_token=00000000-0000-0000-0000-000000000000&oauth_token_secret=000000000000000000000000000000000000000000
|
39
39
|
http_version:
|
40
|
-
recorded_at:
|
40
|
+
recorded_at: Mon, 10 Feb 2020 17:29:12 GMT
|
41
41
|
recorded_with: VCR 5.0.0
|
@@ -16,22 +16,22 @@ http_interactions:
|
|
16
16
|
Authorization:
|
17
17
|
- OAuth oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
|
18
18
|
oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
|
19
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="
|
19
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_version="1.0"
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Mon, 10 Feb 2020 17:29:28 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/vnd.deere.axiom.v3+json;charset=UTF-8
|
29
29
|
X-Deere-Handling-Server:
|
30
|
-
- ip-10-214-44-
|
30
|
+
- ip-10-214-44-28
|
31
31
|
X-Frame-Options:
|
32
32
|
- SAMEORIGIN
|
33
33
|
X-Deere-Elapsed-Ms:
|
34
|
-
- '
|
34
|
+
- '11'
|
35
35
|
Cache-Control:
|
36
36
|
- no-store
|
37
37
|
Content-Language:
|
@@ -42,7 +42,7 @@ http_interactions:
|
|
42
42
|
encoding: ASCII-8BIT
|
43
43
|
string: '{"@type":"ApiCatalog","links":[{"@type":"Link","rel":"oauthRequestToken","uri":"https://sandboxapi.deere.com/platform/oauth/request_token"},{"@type":"Link","rel":"oauthAuthorizeRequestToken","uri":"https://my.deere.com/consentToUseOfData?oauth_token={token}"},{"@type":"Link","rel":"oauthAccessToken","uri":"https://sandboxapi.deere.com/platform/oauth/access_token"},{"@type":"Link","rel":"agencies","uri":"https://sandboxapi.deere.com/platform/agencies"}]}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Mon, 10 Feb 2020 17:29:28 GMT
|
46
46
|
- request:
|
47
47
|
method: get
|
48
48
|
uri: https://sandboxapi.deere.com/platform/organizations
|
@@ -59,7 +59,7 @@ http_interactions:
|
|
59
59
|
Authorization:
|
60
60
|
- OAuth oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
|
61
61
|
oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
|
62
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="
|
62
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
|
63
63
|
oauth_version="1.0"
|
64
64
|
response:
|
65
65
|
status:
|
@@ -67,15 +67,15 @@ http_interactions:
|
|
67
67
|
message: OK
|
68
68
|
headers:
|
69
69
|
Date:
|
70
|
-
-
|
70
|
+
- Mon, 10 Feb 2020 17:29:28 GMT
|
71
71
|
Content-Type:
|
72
72
|
- application/vnd.deere.axiom.v3+json;charset=UTF-8
|
73
73
|
X-Deere-Handling-Server:
|
74
|
-
- ip-10-214-45-
|
74
|
+
- ip-10-214-45-144
|
75
75
|
X-Frame-Options:
|
76
76
|
- SAMEORIGIN
|
77
77
|
X-Deere-Elapsed-Ms:
|
78
|
-
- '
|
78
|
+
- '47'
|
79
79
|
Cache-Control:
|
80
80
|
- no-store
|
81
81
|
Content-Language:
|
@@ -96,7 +96,7 @@ http_interactions:
|
|
96
96
|
Name","type":"customer","member":true,"id":"000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"machines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"wdtCapableMachines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines?capability=wdt"},{"@type":"Link","rel":"files","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"transferableFiles","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files?transferable=true"},{"@type":"Link","rel":"uploadFile","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"sendFileToMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fileTransfers"},{"@type":"Link","rel":"addMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"addField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"assets","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"},{"@type":"Link","rel":"fields","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/farms"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/boundaries"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/clients"},{"@type":"Link","rel":"flags","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flags"},{"@type":"Link","rel":"flagCategory","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flagCategories"},{"@type":"Link","rel":"controllers","uri":"https://sandboxapi.deere.com/platform/organizations/000000/orgController"}]},{"@type":"Organization","name":"Organization
|
97
97
|
Name","type":"customer","member":true,"id":"000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"machines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"wdtCapableMachines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines?capability=wdt"},{"@type":"Link","rel":"files","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"transferableFiles","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files?transferable=true"},{"@type":"Link","rel":"uploadFile","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"sendFileToMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fileTransfers"},{"@type":"Link","rel":"addMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"addField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"assets","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"},{"@type":"Link","rel":"fields","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/farms"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/boundaries"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/clients"},{"@type":"Link","rel":"flags","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flags"},{"@type":"Link","rel":"flagCategory","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flagCategories"},{"@type":"Link","rel":"controllers","uri":"https://sandboxapi.deere.com/platform/organizations/000000/orgController"}]}]}'
|
98
98
|
http_version:
|
99
|
-
recorded_at:
|
99
|
+
recorded_at: Mon, 10 Feb 2020 17:29:29 GMT
|
100
100
|
- request:
|
101
101
|
method: get
|
102
102
|
uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000
|
@@ -113,7 +113,7 @@ http_interactions:
|
|
113
113
|
Authorization:
|
114
114
|
- OAuth oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
|
115
115
|
oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
|
116
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="
|
116
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
|
117
117
|
oauth_version="1.0"
|
118
118
|
response:
|
119
119
|
status:
|
@@ -121,15 +121,15 @@ http_interactions:
|
|
121
121
|
message: OK
|
122
122
|
headers:
|
123
123
|
Date:
|
124
|
-
-
|
124
|
+
- Mon, 10 Feb 2020 17:29:29 GMT
|
125
125
|
Content-Type:
|
126
126
|
- application/vnd.deere.axiom.v3+json;charset=UTF-8
|
127
127
|
X-Deere-Handling-Server:
|
128
|
-
- ip-10-214-
|
128
|
+
- ip-10-214-44-33
|
129
129
|
X-Frame-Options:
|
130
130
|
- SAMEORIGIN
|
131
131
|
X-Deere-Elapsed-Ms:
|
132
|
-
- '
|
132
|
+
- '81'
|
133
133
|
Cache-Control:
|
134
134
|
- no-store
|
135
135
|
Content-Language:
|
@@ -138,7 +138,7 @@ http_interactions:
|
|
138
138
|
- chunked
|
139
139
|
body:
|
140
140
|
encoding: ASCII-8BIT
|
141
|
-
string: '{"@type":"ContributedAsset","title":"Asset Title","assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","lastModifiedDate":"2020-02-
|
141
|
+
string: '{"@type":"ContributedAsset","title":"Asset Title","assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","lastModifiedDate":"2020-02-10T11:29:32.000Z","id":"00000000-0000-0000-0000-000000000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/platform/contributionDefinitions/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"organization","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"locations","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations"},{"@type":"Link","rel":"lastKnownLocation","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations?lastKnown=true"}]}'
|
142
142
|
http_version:
|
143
|
-
recorded_at:
|
143
|
+
recorded_at: Mon, 10 Feb 2020 17:29:29 GMT
|
144
144
|
recorded_with: VCR 5.0.0
|
@@ -16,18 +16,18 @@ http_interactions:
|
|
16
16
|
Authorization:
|
17
17
|
- OAuth oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
|
18
18
|
oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
|
19
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="
|
19
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_version="1.0"
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Mon, 10 Feb 2020 17:29:33 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/vnd.deere.axiom.v3+json;charset=UTF-8
|
29
29
|
X-Deere-Handling-Server:
|
30
|
-
- ip-10-214-44-
|
30
|
+
- ip-10-214-44-33
|
31
31
|
X-Frame-Options:
|
32
32
|
- SAMEORIGIN
|
33
33
|
X-Deere-Elapsed-Ms:
|
@@ -42,7 +42,7 @@ http_interactions:
|
|
42
42
|
encoding: ASCII-8BIT
|
43
43
|
string: '{"@type":"ApiCatalog","links":[{"@type":"Link","rel":"oauthRequestToken","uri":"https://sandboxapi.deere.com/platform/oauth/request_token"},{"@type":"Link","rel":"oauthAuthorizeRequestToken","uri":"https://my.deere.com/consentToUseOfData?oauth_token={token}"},{"@type":"Link","rel":"oauthAccessToken","uri":"https://sandboxapi.deere.com/platform/oauth/access_token"},{"@type":"Link","rel":"agencies","uri":"https://sandboxapi.deere.com/platform/agencies"}]}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Mon, 10 Feb 2020 17:29:33 GMT
|
46
46
|
- request:
|
47
47
|
method: get
|
48
48
|
uri: https://sandboxapi.deere.com/platform/organizations
|
@@ -59,7 +59,7 @@ http_interactions:
|
|
59
59
|
Authorization:
|
60
60
|
- OAuth oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
|
61
61
|
oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
|
62
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="
|
62
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
|
63
63
|
oauth_version="1.0"
|
64
64
|
response:
|
65
65
|
status:
|
@@ -67,15 +67,15 @@ http_interactions:
|
|
67
67
|
message: OK
|
68
68
|
headers:
|
69
69
|
Date:
|
70
|
-
-
|
70
|
+
- Mon, 10 Feb 2020 17:29:34 GMT
|
71
71
|
Content-Type:
|
72
72
|
- application/vnd.deere.axiom.v3+json;charset=UTF-8
|
73
73
|
X-Deere-Handling-Server:
|
74
|
-
- ip-10-214-
|
74
|
+
- ip-10-214-45-104
|
75
75
|
X-Frame-Options:
|
76
76
|
- SAMEORIGIN
|
77
77
|
X-Deere-Elapsed-Ms:
|
78
|
-
- '
|
78
|
+
- '36'
|
79
79
|
Cache-Control:
|
80
80
|
- no-store
|
81
81
|
Content-Language:
|
@@ -96,7 +96,7 @@ http_interactions:
|
|
96
96
|
Name","type":"customer","member":true,"id":"000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"machines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"wdtCapableMachines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines?capability=wdt"},{"@type":"Link","rel":"files","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"transferableFiles","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files?transferable=true"},{"@type":"Link","rel":"uploadFile","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"sendFileToMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fileTransfers"},{"@type":"Link","rel":"addMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"addField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"assets","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"},{"@type":"Link","rel":"fields","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/farms"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/boundaries"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/clients"},{"@type":"Link","rel":"flags","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flags"},{"@type":"Link","rel":"flagCategory","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flagCategories"},{"@type":"Link","rel":"controllers","uri":"https://sandboxapi.deere.com/platform/organizations/000000/orgController"}]},{"@type":"Organization","name":"Organization
|
97
97
|
Name","type":"customer","member":true,"id":"000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"machines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"wdtCapableMachines","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines?capability=wdt"},{"@type":"Link","rel":"files","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"transferableFiles","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files?transferable=true"},{"@type":"Link","rel":"uploadFile","uri":"https://sandboxapi.deere.com/platform/organizations/000000/files"},{"@type":"Link","rel":"sendFileToMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fileTransfers"},{"@type":"Link","rel":"addMachine","uri":"https://sandboxapi.deere.com/platform/organizations/000000/machines"},{"@type":"Link","rel":"addField","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"assets","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"},{"@type":"Link","rel":"fields","uri":"https://sandboxapi.deere.com/platform/organizations/000000/fields"},{"@type":"Link","rel":"farms","uri":"https://sandboxapi.deere.com/platform/organizations/000000/farms"},{"@type":"Link","rel":"boundaries","uri":"https://sandboxapi.deere.com/platform/organizations/000000/boundaries"},{"@type":"Link","rel":"clients","uri":"https://sandboxapi.deere.com/platform/organizations/000000/clients"},{"@type":"Link","rel":"flags","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flags"},{"@type":"Link","rel":"flagCategory","uri":"https://sandboxapi.deere.com/platform/organizations/000000/flagCategories"},{"@type":"Link","rel":"controllers","uri":"https://sandboxapi.deere.com/platform/organizations/000000/orgController"}]}]}'
|
98
98
|
http_version:
|
99
|
-
recorded_at:
|
99
|
+
recorded_at: Mon, 10 Feb 2020 17:29:34 GMT
|
100
100
|
- request:
|
101
101
|
method: get
|
102
102
|
uri: https://sandboxapi.deere.com/platform/organizations/000000/assets
|
@@ -113,7 +113,7 @@ http_interactions:
|
|
113
113
|
Authorization:
|
114
114
|
- OAuth oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
|
115
115
|
oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
|
116
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="
|
116
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
|
117
117
|
oauth_version="1.0"
|
118
118
|
response:
|
119
119
|
status:
|
@@ -121,15 +121,15 @@ http_interactions:
|
|
121
121
|
message: OK
|
122
122
|
headers:
|
123
123
|
Date:
|
124
|
-
-
|
124
|
+
- Mon, 10 Feb 2020 17:29:34 GMT
|
125
125
|
Content-Type:
|
126
126
|
- application/vnd.deere.axiom.v3+json;charset=UTF-8
|
127
127
|
X-Deere-Handling-Server:
|
128
|
-
- ip-10-214-
|
128
|
+
- ip-10-214-45-186
|
129
129
|
X-Frame-Options:
|
130
130
|
- SAMEORIGIN
|
131
131
|
X-Deere-Elapsed-Ms:
|
132
|
-
- '
|
132
|
+
- '48'
|
133
133
|
Cache-Control:
|
134
134
|
- no-store
|
135
135
|
Content-Language:
|
@@ -138,13 +138,17 @@ http_interactions:
|
|
138
138
|
- chunked
|
139
139
|
body:
|
140
140
|
encoding: ASCII-8BIT
|
141
|
-
string: '{"links":[{"rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"}],"total":
|
142
|
-
Title","assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","lastModifiedDate":"2020-02-
|
143
|
-
Title","assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","lastModifiedDate":"2020-02-
|
144
|
-
Title","assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","lastModifiedDate":"2020-02-
|
145
|
-
Title","assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","lastModifiedDate":"2020-02-
|
141
|
+
string: '{"links":[{"rel":"self","uri":"https://sandboxapi.deere.com/platform/organizations/000000/assets"}],"total":8,"values":[{"@type":"ContributedAsset","title":"Asset
|
142
|
+
Title","assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","lastModifiedDate":"2020-02-10T11:29:32.000Z","id":"00000000-0000-0000-0000-000000000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/platform/contributionDefinitions/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"organization","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"locations","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations"},{"@type":"Link","rel":"lastKnownLocation","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations?lastKnown=true"}]},{"@type":"ContributedAsset","title":"Asset
|
143
|
+
Title","assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","lastModifiedDate":"2020-02-10T11:29:32.000Z","id":"00000000-0000-0000-0000-000000000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/platform/contributionDefinitions/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"organization","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"locations","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations"},{"@type":"Link","rel":"lastKnownLocation","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations?lastKnown=true"}]},{"@type":"ContributedAsset","title":"Asset
|
144
|
+
Title","assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","lastModifiedDate":"2020-02-10T11:29:32.000Z","id":"00000000-0000-0000-0000-000000000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/platform/contributionDefinitions/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"organization","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"locations","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations"},{"@type":"Link","rel":"lastKnownLocation","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations?lastKnown=true"}]},{"@type":"ContributedAsset","title":"Asset
|
145
|
+
Title","assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","lastModifiedDate":"2020-02-10T11:29:32.000Z","id":"00000000-0000-0000-0000-000000000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/platform/contributionDefinitions/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"organization","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"locations","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations"},{"@type":"Link","rel":"lastKnownLocation","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations?lastKnown=true"}]},{"@type":"ContributedAsset","title":"Asset
|
146
|
+
Title","assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","lastModifiedDate":"2020-02-10T11:29:32.000Z","id":"00000000-0000-0000-0000-000000000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/platform/contributionDefinitions/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"organization","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"locations","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations"},{"@type":"Link","rel":"lastKnownLocation","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations?lastKnown=true"}]},{"@type":"ContributedAsset","title":"Asset
|
147
|
+
Title","assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","lastModifiedDate":"2020-02-10T11:29:32.000Z","id":"00000000-0000-0000-0000-000000000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/platform/contributionDefinitions/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"organization","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"locations","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations"},{"@type":"Link","rel":"lastKnownLocation","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations?lastKnown=true"}]},{"@type":"ContributedAsset","title":"Asset
|
148
|
+
Title","assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","lastModifiedDate":"2020-02-10T11:29:32.000Z","id":"00000000-0000-0000-0000-000000000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/platform/contributionDefinitions/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"organization","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"locations","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations"},{"@type":"Link","rel":"lastKnownLocation","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations?lastKnown=true"}]},{"@type":"ContributedAsset","title":"Asset
|
149
|
+
Title","assetCategory":"DEVICE","assetType":"SENSOR","assetSubType":"ENVIRONMENTAL","lastModifiedDate":"2020-02-10T11:29:32.000Z","id":"00000000-0000-0000-0000-000000000000","links":[{"@type":"Link","rel":"self","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"contributionDefinition","uri":"https://sandboxapi.deere.com/platform/contributionDefinitions/00000000-0000-0000-0000-000000000000"},{"@type":"Link","rel":"organization","uri":"https://sandboxapi.deere.com/platform/organizations/000000"},{"@type":"Link","rel":"locations","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations"},{"@type":"Link","rel":"lastKnownLocation","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations?lastKnown=true"}]}]}'
|
146
150
|
http_version:
|
147
|
-
recorded_at:
|
151
|
+
recorded_at: Mon, 10 Feb 2020 17:29:34 GMT
|
148
152
|
- request:
|
149
153
|
method: get
|
150
154
|
uri: https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations
|
@@ -161,7 +165,7 @@ http_interactions:
|
|
161
165
|
Authorization:
|
162
166
|
- OAuth oauth_consumer_key="johndeere-0000000000000000000000000000000000000000",
|
163
167
|
oauth_nonce="000000000000000000000000000000000000000000", oauth_signature="0000000000000000000000000000",
|
164
|
-
oauth_signature_method="HMAC-SHA1", oauth_timestamp="
|
168
|
+
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1581334172", oauth_token="00000000-0000-0000-0000-000000000000",
|
165
169
|
oauth_version="1.0"
|
166
170
|
response:
|
167
171
|
status:
|
@@ -169,15 +173,15 @@ http_interactions:
|
|
169
173
|
message: OK
|
170
174
|
headers:
|
171
175
|
Date:
|
172
|
-
-
|
176
|
+
- Mon, 10 Feb 2020 17:29:35 GMT
|
173
177
|
Content-Type:
|
174
178
|
- application/vnd.deere.axiom.v3+json;charset=UTF-8
|
175
179
|
X-Deere-Handling-Server:
|
176
|
-
- ip-10-214-44-
|
180
|
+
- ip-10-214-44-215
|
177
181
|
X-Frame-Options:
|
178
182
|
- SAMEORIGIN
|
179
183
|
X-Deere-Elapsed-Ms:
|
180
|
-
- '
|
184
|
+
- '59'
|
181
185
|
Cache-Control:
|
182
186
|
- no-store
|
183
187
|
Content-Language:
|
@@ -186,7 +190,7 @@ http_interactions:
|
|
186
190
|
- chunked
|
187
191
|
body:
|
188
192
|
encoding: ASCII-8BIT
|
189
|
-
string: '{"links":[{"rel":"self","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations"}],"total":1,"values":[{"@type":"ContributedAssetLocation","timestamp":"2020-02-
|
193
|
+
string: '{"links":[{"rel":"self","uri":"https://sandboxapi.deere.com/platform/assets/00000000-0000-0000-0000-000000000000/locations"}],"total":1,"values":[{"@type":"ContributedAssetLocation","timestamp":"2020-02-10T11:29:32.000Z","geometry":"{\"type\":\"Feature\",\"geometry\":{\"geometries\":[{\"coordinates\":[-96.668978,40.865984],\"type\":\"Point\"}],\"type\":\"GeometryCollection\"}}","measurementData":[{"@type":"BasicMeasurement","name":"Temperature","value":"68.0","unit":"F"}],"links":[]}]}'
|
190
194
|
http_version:
|
191
|
-
recorded_at:
|
195
|
+
recorded_at: Mon, 10 Feb 2020 17:29:35 GMT
|
192
196
|
recorded_with: VCR 5.0.0
|