amee 4.3.2 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.txt +6 -0
- data/Gemfile +7 -1
- data/Rakefile +2 -0
- data/VERSION +1 -1
- data/amee.gemspec +57 -6
- data/amee_test_credentials.example.yml +11 -0
- data/cassettes/AMEE_Connection/v2/raising_unhandled_errors.yml +36 -0
- data/cassettes/AMEE_Connection/v3/retries/502.yml +36 -0
- data/cassettes/AMEE_Connection/v3/retries/503.yml +36 -0
- data/cassettes/AMEE_Connection/v3/retries/504.yml +36 -0
- data/cassettes/AMEE_Connection/v3/retries/AMEE_TimeOut.yml +36 -0
- data/cassettes/AMEE_Connection/v3/should_be_able_to_get_from_meta_server.yml +30 -0
- data/cassettes/AMEE_Connection/v3/should_be_able_to_handle_failed_gets_from_meta_server.yml +30 -0
- data/cassettes/AMEE_Connection/v3/should_be_able_to_post_to_meta_server.yml +59 -0
- data/cassettes/AMEE_Connection/v3/should_have_a_connection_to_meta_server.yml +36 -0
- data/cassettes/AMEE_Connection/v3/should_login_and_know_the_path_to_the_server.yml +36 -0
- data/cassettes/AMEE_Connection_Caching_Off/authenticating.yml +36 -0
- data/cassettes/AMEE_Connection_Caching_Off/first_request.yml +40 -0
- data/cassettes/AMEE_Connection_Caching_Off/second_request.yml +40 -0
- data/cassettes/AMEE_Connection_Caching_On/authenticating.yml +36 -0
- data/cassettes/AMEE_Connection_Caching_On/first_request.yml +40 -0
- data/cassettes/AMEE_Connection_Caching_clear_all/second_request.yml +40 -0
- data/cassettes/AMEE_Connection_Caching_clear_manually/second_request.yml +40 -0
- data/cassettes/AMEE_Connection_Caching_further_down_tree/second_request.yml +79 -0
- data/cassettes/AMEE_Connection_with_authentication/handling_404s.yml +69 -0
- data/cassettes/AMEE_Connection_with_authentication/hitting_private_urls.yml +75 -0
- data/cassettes/AMEE_Connection_with_authentication/raising_errors_if_permission_denied.yml +69 -0
- data/cassettes/AMEE_Connection_with_authentication/should_re-authenticate_and_refresh_authtoken_when_authtoken_expires.yml +104 -0
- data/cassettes/AMEE_Connection_with_authentication/should_refresh_authtoken_when_authtoken_is_changed.yml +114 -0
- data/cassettes/AMEE_Connection_with_authentication/using_a_v1_key.yml +71 -0
- data/cassettes/AMEE_Connection_with_authentication/using_a_v2_key/detects_the_API_version_for_JSON.yml +36 -0
- data/cassettes/AMEE_Connection_with_authentication/using_a_v2_key/detects_the_API_version_for_XML.yml +36 -0
- data/cassettes/AMEE_Connection_with_authentication_doing_write-requests.yml +75 -0
- data/cassettes/AMEE_Connection_with_authentication_doing_write-requests/working_with_an_existing_profile/deleting_existing_items.yml +108 -0
- data/cassettes/AMEE_Connection_with_authentication_doing_write-requests/working_with_an_existing_profile/sending_updates_to_existing_items.yml +108 -0
- data/cassettes/AMEE_Connection_with_bad_authentication_information/hitting_a_private_url.yml +29 -0
- data/cassettes/AMEE_Connection_with_bad_authentication_information/hitting_a_public_url.yml +32 -0
- data/cassettes/AMEE_Connection_with_incorrect_server_name.yml +16 -0
- data/cassettes/AMEE_Connection_with_retry_enabled.yml +36 -0
- data/lib/amee/connection.rb +234 -110
- data/lib/amee/data_category.rb +2 -2
- data/lib/amee/data_item.rb +45 -2
- data/lib/amee/data_item_value.rb +1 -1
- data/lib/amee/exceptions.rb +5 -2
- data/lib/amee/parse_helper.rb +2 -0
- data/lib/amee/profile_item.rb +6 -2
- data/lib/amee/v3/connection.rb +77 -70
- data/lib/amee/v3/item_value_definition.rb +1 -1
- data/lib/amee/v3/return_value_definition.rb +1 -1
- data/spec/cache_spec.rb +107 -48
- data/spec/connection_spec.rb +224 -183
- data/spec/data_item_spec.rb +12 -0
- data/spec/data_item_value_history_spec.rb +4 -4
- data/spec/data_item_value_spec.rb +2 -2
- data/spec/fixtures/AD63A83B4D41.json +1 -1
- data/spec/fixtures/AD63A83B4D41.xml +1 -1
- data/spec/profile_item_spec.rb +14 -10
- data/spec/spec_helper.rb +29 -0
- data/spec/v3/connection_spec.rb +77 -65
- data/spec/v3/item_value_definition_spec.rb +1 -0
- data/spec/v3/return_value_definition_spec.rb +1 -1
- metadata +140 -24
- data/Gemfile.lock +0 -63
@@ -0,0 +1,75 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: post
|
5
|
+
uri: https://stage.amee.com:443/auth/signIn
|
6
|
+
body: username=<AMEE_V2_API_KEY>&password=<AMEE_V2_PASSWORD>
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/xml
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
expires:
|
16
|
+
- Sun, 27 Nov 2011 01:14:29 GMT
|
17
|
+
last-modified:
|
18
|
+
- Mon, 28 Nov 2011 01:14:29 GMT
|
19
|
+
content-type:
|
20
|
+
- application/xml; charset=UTF-8
|
21
|
+
via:
|
22
|
+
- 1.1 stage.amee.com
|
23
|
+
server:
|
24
|
+
- Noelios-Restlet-Engine/1.1.10
|
25
|
+
date:
|
26
|
+
- Mon, 28 Nov 2011 01:14:29 GMT
|
27
|
+
set-cookie:
|
28
|
+
- authToken=m9EfzlSsx+o9gnGiWrXmGSOTaiL3GZ9Wz/1/16s8yPximcInyKmBfnNK3v+E7VYvqq1lcePG7xf91awEbH+QcPEmpEYhG+cLl1vyBT+BwXs=; Path=/
|
29
|
+
authtoken:
|
30
|
+
- m9EfzlSsx+o9gnGiWrXmGSOTaiL3GZ9Wz/1/16s8yPximcInyKmBfnNK3v+E7VYvqq1lcePG7xf91awEbH+QcPEmpEYhG+cLl1vyBT+BwXs=
|
31
|
+
vary:
|
32
|
+
- Accept-Charset,Accept-Encoding,Accept-Language,Accept
|
33
|
+
transfer-encoding:
|
34
|
+
- chunked
|
35
|
+
body: <?xml version="1.0" encoding="UTF-8" standalone="no"?><Resources><SignInResource><Next>/auth</Next><User uid="58F26PHHLFEB"><Status>ACTIVE</Status><Type>STANDARD</Type><ApiVersion>2.0</ApiVersion><Locale>en_GB</Locale><TimeZone>UTC</TimeZone></User></SignInResource></Resources>
|
36
|
+
http_version: "1.1"
|
37
|
+
- !ruby/struct:VCR::HTTPInteraction
|
38
|
+
request: !ruby/struct:VCR::Request
|
39
|
+
method: get
|
40
|
+
uri: https://stage.amee.com:443/data
|
41
|
+
body:
|
42
|
+
headers:
|
43
|
+
accept:
|
44
|
+
- application/json
|
45
|
+
cookie:
|
46
|
+
- AuthToken=m9EfzlSsx+o9gnGiWrXmGSOTaiL3GZ9Wz/1/16s8yPximcInyKmBfnNK3v+E7VYvqq1lcePG7xf91awEbH+QcPEmpEYhG+cLl1vyBT+BwXs=
|
47
|
+
authtoken:
|
48
|
+
- m9EfzlSsx+o9gnGiWrXmGSOTaiL3GZ9Wz/1/16s8yPximcInyKmBfnNK3v+E7VYvqq1lcePG7xf91awEbH+QcPEmpEYhG+cLl1vyBT+BwXs=
|
49
|
+
response: !ruby/struct:VCR::Response
|
50
|
+
status: !ruby/struct:VCR::ResponseStatus
|
51
|
+
code: 200
|
52
|
+
message: OK
|
53
|
+
headers:
|
54
|
+
expires:
|
55
|
+
- Sun, 27 Nov 2011 01:14:29 GMT
|
56
|
+
last-modified:
|
57
|
+
- Mon, 28 Nov 2011 01:14:29 GMT
|
58
|
+
content-type:
|
59
|
+
- application/json; charset=UTF-8
|
60
|
+
via:
|
61
|
+
- 1.1 stage.amee.com
|
62
|
+
server:
|
63
|
+
- Noelios-Restlet-Engine/1.1.10
|
64
|
+
date:
|
65
|
+
- Mon, 28 Nov 2011 01:14:29 GMT
|
66
|
+
content-length:
|
67
|
+
- "1041"
|
68
|
+
set-cookie:
|
69
|
+
- authToken=m9EfzlSsx+o9gnGiWrXmGSOTaiL3GZ9Wz/1/16s8yPximcInyKmBfnNK3v+E7VYvqq1lcePG7xf91awEbH+QcPEmpEYhG+cLl1vyBT+BwXs=; Path=/
|
70
|
+
authtoken:
|
71
|
+
- m9EfzlSsx+o9gnGiWrXmGSOTaiL3GZ9Wz/1/16s8yPximcInyKmBfnNK3v+E7VYvqq1lcePG7xf91awEbH+QcPEmpEYhG+cLl1vyBT+BwXs=
|
72
|
+
vary:
|
73
|
+
- Accept-Charset,Accept-Encoding,Accept-Language,Accept
|
74
|
+
body: "{\"apiVersion\":\"2.0\",\"dataCategory\":{\"uid\":\"CD310BEBAC52\",\"deprecated\":false,\"environment\":{\"uid\":\"5F5887BCF726\",\"itemsPerFeed\":10,\"description\":\"\",\"name\":\"AMEE\",\"owner\":\"\",\"path\":\"\",\"itemsPerPage\":10},\"created\":\"2007-07-27 07:30:44.0\",\"name\":\"Root\",\"path\":\"\",\"modified\":\"2007-07-27 07:30:44.0\"},\"path\":\"\",\"children\":{\"pager\":{},\"dataItems\":{},\"dataCategories\":[{\"uid\":\"99B121BB416C\",\"name\":\"Business\",\"path\":\"business\"},{\"uid\":\"Q9G5P7ZIZXYX\",\"name\":\"Documentation\",\"path\":\"documentation\"},{\"uid\":\"15AC6CF74915\",\"name\":\"Embodied\",\"path\":\"embodied\"},{\"uid\":\"BBA3AC3E795E\",\"name\":\"Home\",\"path\":\"home\"},{\"uid\":\"85A9172C31AF\",\"name\":\"Import\",\"path\":\"import\"},{\"uid\":\"U1X3EBU9QQ2K\",\"name\":\"LCA\",\"path\":\"lca\"},{\"uid\":\"9E5362EAB0E7\",\"name\":\"Metadata\",\"path\":\"metadata\"},{\"uid\":\"A0CF90F6C0B9\",\"name\":\"Personal\",\"path\":\"personal\"},{\"uid\":\"6FF29F7DACDA\",\"name\":\"Planet\",\"path\":\"planet\"},{\"uid\":\"6153F468BE05\",\"name\":\"Test\",\"path\":\"test\"},{\"uid\":\"263FC0186834\",\"name\":\"Transport\",\"path\":\"transport\"},{\"uid\":\"2957AE9B6E6B\",\"name\":\"User\",\"path\":\"user\"}]}}"
|
75
|
+
http_version: "1.1"
|
@@ -0,0 +1,69 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: post
|
5
|
+
uri: https://stage.amee.com:443/auth/signIn
|
6
|
+
body: username=<AMEE_V2_API_KEY>&password=<AMEE_V2_PASSWORD>
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/xml
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
expires:
|
16
|
+
- Sun, 27 Nov 2011 01:15:19 GMT
|
17
|
+
last-modified:
|
18
|
+
- Mon, 28 Nov 2011 01:15:19 GMT
|
19
|
+
content-type:
|
20
|
+
- application/xml; charset=UTF-8
|
21
|
+
via:
|
22
|
+
- 1.1 stage.amee.com
|
23
|
+
server:
|
24
|
+
- Noelios-Restlet-Engine/1.1.10
|
25
|
+
date:
|
26
|
+
- Mon, 28 Nov 2011 01:15:19 GMT
|
27
|
+
set-cookie:
|
28
|
+
- authToken=uJ4jlTadT9uSoe3F1+B0vBsTSvLG43P2Wv1UX0FfuvMFQRoMOl2HT0a8P5/pYy7ND6vwyabOh7kU8gNDRabztPL9wWXv7WNWlv9vtk8UTxo=; Path=/
|
29
|
+
authtoken:
|
30
|
+
- uJ4jlTadT9uSoe3F1+B0vBsTSvLG43P2Wv1UX0FfuvMFQRoMOl2HT0a8P5/pYy7ND6vwyabOh7kU8gNDRabztPL9wWXv7WNWlv9vtk8UTxo=
|
31
|
+
vary:
|
32
|
+
- Accept-Charset,Accept-Encoding,Accept-Language,Accept
|
33
|
+
transfer-encoding:
|
34
|
+
- chunked
|
35
|
+
body: <?xml version="1.0" encoding="UTF-8" standalone="no"?><Resources><SignInResource><Next>/auth</Next><User uid="58F26PHHLFEB"><Status>ACTIVE</Status><Type>STANDARD</Type><ApiVersion>2.0</ApiVersion><Locale>en_GB</Locale><TimeZone>UTC</TimeZone></User></SignInResource></Resources>
|
36
|
+
http_version: "1.1"
|
37
|
+
- !ruby/struct:VCR::HTTPInteraction
|
38
|
+
request: !ruby/struct:VCR::Request
|
39
|
+
method: get
|
40
|
+
uri: https://stage.amee.com:443/data/lca/ecoinvent
|
41
|
+
body:
|
42
|
+
headers:
|
43
|
+
accept:
|
44
|
+
- application/json
|
45
|
+
cookie:
|
46
|
+
- AuthToken=uJ4jlTadT9uSoe3F1+B0vBsTSvLG43P2Wv1UX0FfuvMFQRoMOl2HT0a8P5/pYy7ND6vwyabOh7kU8gNDRabztPL9wWXv7WNWlv9vtk8UTxo=
|
47
|
+
authtoken:
|
48
|
+
- uJ4jlTadT9uSoe3F1+B0vBsTSvLG43P2Wv1UX0FfuvMFQRoMOl2HT0a8P5/pYy7ND6vwyabOh7kU8gNDRabztPL9wWXv7WNWlv9vtk8UTxo=
|
49
|
+
response: !ruby/struct:VCR::Response
|
50
|
+
status: !ruby/struct:VCR::ResponseStatus
|
51
|
+
code: 403
|
52
|
+
message: Forbidden
|
53
|
+
headers:
|
54
|
+
content-type:
|
55
|
+
- application/json; charset=UTF-8
|
56
|
+
via:
|
57
|
+
- 1.1 stage.amee.com
|
58
|
+
server:
|
59
|
+
- Noelios-Restlet-Engine/1.1.10
|
60
|
+
date:
|
61
|
+
- Mon, 28 Nov 2011 01:15:20 GMT
|
62
|
+
content-length:
|
63
|
+
- "132"
|
64
|
+
set-cookie:
|
65
|
+
- authToken=uJ4jlTadT9uSoe3F1+B0vBsTSvLG43P2Wv1UX0FfuvMFQRoMOl2HT0a8P5/pYy7ND6vwyabOh7kU8gNDRabztPL9wWXv7WNWlv9vtk8UTxo=; Path=/
|
66
|
+
authtoken:
|
67
|
+
- uJ4jlTadT9uSoe3F1+B0vBsTSvLG43P2Wv1UX0FfuvMFQRoMOl2HT0a8P5/pYy7ND6vwyabOh7kU8gNDRabztPL9wWXv7WNWlv9vtk8UTxo=
|
68
|
+
body: "{\"status\":{\"description\":\"\",\"name\":\"Forbidden\",\"code\":403,\"uri\":\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4\"}}"
|
69
|
+
http_version: "1.1"
|
@@ -0,0 +1,104 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: get
|
5
|
+
uri: https://stage.amee.com:443/profiles
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/json
|
10
|
+
cookie:
|
11
|
+
- AuthToken=old_token
|
12
|
+
authtoken:
|
13
|
+
- old_token
|
14
|
+
response: !ruby/struct:VCR::Response
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
16
|
+
code: 401
|
17
|
+
message: Unauthorized
|
18
|
+
headers:
|
19
|
+
content-type:
|
20
|
+
- application/json; charset=UTF-8
|
21
|
+
via:
|
22
|
+
- 1.1 stage.amee.com
|
23
|
+
server:
|
24
|
+
- Noelios-Restlet-Engine/1.1.10
|
25
|
+
date:
|
26
|
+
- Thu, 19 Jan 2012 02:37:47 GMT
|
27
|
+
content-length:
|
28
|
+
- "175"
|
29
|
+
body: "{\"status\":{\"description\":\"The request requires user authentication\",\"name\":\"Unauthorized\",\"code\":401,\"uri\":\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2\"}}"
|
30
|
+
http_version: "1.1"
|
31
|
+
- !ruby/struct:VCR::HTTPInteraction
|
32
|
+
request: !ruby/struct:VCR::Request
|
33
|
+
method: post
|
34
|
+
uri: https://stage.amee.com:443/auth/signIn
|
35
|
+
body: password=<AMEE_V2_PASSWORD>&username=<AMEE_V2_API_KEY>
|
36
|
+
headers:
|
37
|
+
accept:
|
38
|
+
- application/xml
|
39
|
+
response: !ruby/struct:VCR::Response
|
40
|
+
status: !ruby/struct:VCR::ResponseStatus
|
41
|
+
code: 200
|
42
|
+
message: OK
|
43
|
+
headers:
|
44
|
+
expires:
|
45
|
+
- Wed, 18 Jan 2012 02:37:47 GMT
|
46
|
+
last-modified:
|
47
|
+
- Thu, 19 Jan 2012 02:37:47 GMT
|
48
|
+
content-type:
|
49
|
+
- application/xml; charset=UTF-8
|
50
|
+
via:
|
51
|
+
- 1.1 stage.amee.com
|
52
|
+
server:
|
53
|
+
- Noelios-Restlet-Engine/1.1.10
|
54
|
+
date:
|
55
|
+
- Thu, 19 Jan 2012 02:37:47 GMT
|
56
|
+
set-cookie:
|
57
|
+
- authToken=66RMPv4JHsc0nAsLamcVWLj7xkXR/y64cQ/lwvVpRbWMRS/TtCThi4bTwKw+0LwvfbyDIcSER04c5VoBAUBQQJkmPLvYdXi7Y77AvArD0t0=; Path=/
|
58
|
+
authtoken:
|
59
|
+
- 66RMPv4JHsc0nAsLamcVWLj7xkXR/y64cQ/lwvVpRbWMRS/TtCThi4bTwKw+0LwvfbyDIcSER04c5VoBAUBQQJkmPLvYdXi7Y77AvArD0t0=
|
60
|
+
vary:
|
61
|
+
- Accept-Charset,Accept-Encoding,Accept-Language,Accept
|
62
|
+
transfer-encoding:
|
63
|
+
- chunked
|
64
|
+
body: <?xml version="1.0" encoding="UTF-8" standalone="no"?><Resources><SignInResource><Next>/auth</Next><User uid="58F26PHHLFEB"><Status>ACTIVE</Status><Type>STANDARD</Type><ApiVersion>2.0</ApiVersion><Locale>en_GB</Locale><TimeZone>UTC</TimeZone></User></SignInResource></Resources>
|
65
|
+
http_version: "1.1"
|
66
|
+
- !ruby/struct:VCR::HTTPInteraction
|
67
|
+
request: !ruby/struct:VCR::Request
|
68
|
+
method: get
|
69
|
+
uri: https://stage.amee.com:443/profiles
|
70
|
+
body:
|
71
|
+
headers:
|
72
|
+
accept:
|
73
|
+
- application/json
|
74
|
+
cookie:
|
75
|
+
- AuthToken=66RMPv4JHsc0nAsLamcVWLj7xkXR/y64cQ/lwvVpRbWMRS/TtCThi4bTwKw+0LwvfbyDIcSER04c5VoBAUBQQJkmPLvYdXi7Y77AvArD0t0=
|
76
|
+
authtoken:
|
77
|
+
- 66RMPv4JHsc0nAsLamcVWLj7xkXR/y64cQ/lwvVpRbWMRS/TtCThi4bTwKw+0LwvfbyDIcSER04c5VoBAUBQQJkmPLvYdXi7Y77AvArD0t0=
|
78
|
+
response: !ruby/struct:VCR::Response
|
79
|
+
status: !ruby/struct:VCR::ResponseStatus
|
80
|
+
code: 200
|
81
|
+
message: OK
|
82
|
+
headers:
|
83
|
+
expires:
|
84
|
+
- Wed, 18 Jan 2012 02:37:47 GMT
|
85
|
+
last-modified:
|
86
|
+
- Thu, 19 Jan 2012 02:37:47 GMT
|
87
|
+
content-type:
|
88
|
+
- application/json; charset=UTF-8
|
89
|
+
via:
|
90
|
+
- 1.1 stage.amee.com
|
91
|
+
server:
|
92
|
+
- Noelios-Restlet-Engine/1.1.10
|
93
|
+
date:
|
94
|
+
- Thu, 19 Jan 2012 02:37:47 GMT
|
95
|
+
content-length:
|
96
|
+
- "2523"
|
97
|
+
set-cookie:
|
98
|
+
- authToken=66RMPv4JHsc0nAsLamcVWLj7xkXR/y64cQ/lwvVpRbWMRS/TtCThi4bTwKw+0LwvfbyDIcSER04c5VoBAUBQQJkmPLvYdXi7Y77AvArD0t0=; Path=/
|
99
|
+
authtoken:
|
100
|
+
- 66RMPv4JHsc0nAsLamcVWLj7xkXR/y64cQ/lwvVpRbWMRS/TtCThi4bTwKw+0LwvfbyDIcSER04c5VoBAUBQQJkmPLvYdXi7Y77AvArD0t0=
|
101
|
+
vary:
|
102
|
+
- Accept-Charset,Accept-Encoding,Accept-Language,Accept
|
103
|
+
body: "{\"apiVersion\":\"2.0\",\"pager\":{\"to\":10,\"lastPage\":5,\"nextPage\":2,\"items\":47,\"start\":0,\"itemsFound\":10,\"requestedPage\":1,\"currentPage\":1,\"from\":1,\"itemsPerPage\":10,\"previousPage\":-1},\"profiles\":[{\"uid\":\"K4CC51L3WX0C\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2012-01-19 02:28:12.0\",\"name\":\"K4CC51L3WX0C\",\"path\":\"K4CC51L3WX0C\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2012-01-19 02:28:12.0\"},{\"uid\":\"7FQIICXECJ0Y\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2012-01-12 22:57:58.0\",\"name\":\"7FQIICXECJ0Y\",\"path\":\"7FQIICXECJ0Y\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2012-01-12 22:57:58.0\"},{\"uid\":\"DTTDCGBH0U8J\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2012-01-12 21:57:40.0\",\"name\":\"DTTDCGBH0U8J\",\"path\":\"DTTDCGBH0U8J\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2012-01-12 21:57:40.0\"},{\"uid\":\"DC38FQ10LTCO\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2012-01-12 21:51:45.0\",\"name\":\"DC38FQ10LTCO\",\"path\":\"DC38FQ10LTCO\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2012-01-12 21:51:45.0\"},{\"uid\":\"8YUXNC2S1KDB\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-28 01:16:13.0\",\"name\":\"8YUXNC2S1KDB\",\"path\":\"8YUXNC2S1KDB\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-28 01:16:13.0\"},{\"uid\":\"S38H6VRASYET\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:59:30.0\",\"name\":\"S38H6VRASYET\",\"path\":\"S38H6VRASYET\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:59:30.0\"},{\"uid\":\"R02I5JB38D0T\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:42:16.0\",\"name\":\"R02I5JB38D0T\",\"path\":\"R02I5JB38D0T\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:42:16.0\"},{\"uid\":\"3Y6QXZXYIVFD\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:19:43.0\",\"name\":\"3Y6QXZXYIVFD\",\"path\":\"3Y6QXZXYIVFD\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:19:43.0\"},{\"uid\":\"G2P9LZY9DMK6\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:18:37.0\",\"name\":\"G2P9LZY9DMK6\",\"path\":\"G2P9LZY9DMK6\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:18:37.0\"},{\"uid\":\"A2L8OG67E9BW\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:13:05.0\",\"name\":\"A2L8OG67E9BW\",\"path\":\"A2L8OG67E9BW\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:13:05.0\"}]}"
|
104
|
+
http_version: "1.1"
|
@@ -0,0 +1,114 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: post
|
5
|
+
uri: https://stage.amee.com:443/auth/signIn
|
6
|
+
body: password=<AMEE_V2_PASSWORD>&username=<AMEE_V2_API_KEY>
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/xml
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
expires:
|
16
|
+
- Wed, 18 Jan 2012 00:20:52 GMT
|
17
|
+
last-modified:
|
18
|
+
- Thu, 19 Jan 2012 00:20:52 GMT
|
19
|
+
content-type:
|
20
|
+
- application/xml; charset=UTF-8
|
21
|
+
via:
|
22
|
+
- 1.1 stage.amee.com
|
23
|
+
server:
|
24
|
+
- Noelios-Restlet-Engine/1.1.10
|
25
|
+
date:
|
26
|
+
- Thu, 19 Jan 2012 00:20:52 GMT
|
27
|
+
set-cookie:
|
28
|
+
- authToken=D86WJz0DmsPOuilmCAswHjVQe2lMzRhpAqFdBk5jSK0UolV0UgRQfTm8xm19lnWTN81vBJ2hW39kwLq8W2JX+sNwY1Fm8Aj8hO+mrkTPkOQ=; Path=/
|
29
|
+
authtoken:
|
30
|
+
- D86WJz0DmsPOuilmCAswHjVQe2lMzRhpAqFdBk5jSK0UolV0UgRQfTm8xm19lnWTN81vBJ2hW39kwLq8W2JX+sNwY1Fm8Aj8hO+mrkTPkOQ=
|
31
|
+
vary:
|
32
|
+
- Accept-Charset,Accept-Encoding,Accept-Language,Accept
|
33
|
+
transfer-encoding:
|
34
|
+
- chunked
|
35
|
+
body: <?xml version="1.0" encoding="UTF-8" standalone="no"?><Resources><SignInResource><Next>/auth</Next><User uid="58F26PHHLFEB"><Status>ACTIVE</Status><Type>STANDARD</Type><ApiVersion>2.0</ApiVersion><Locale>en_GB</Locale><TimeZone>UTC</TimeZone></User></SignInResource></Resources>
|
36
|
+
http_version: "1.1"
|
37
|
+
- !ruby/struct:VCR::HTTPInteraction
|
38
|
+
request: !ruby/struct:VCR::Request
|
39
|
+
method: get
|
40
|
+
uri: https://stage.amee.com:443/profiles
|
41
|
+
body:
|
42
|
+
headers:
|
43
|
+
accept:
|
44
|
+
- application/json
|
45
|
+
cookie:
|
46
|
+
- AuthToken=D86WJz0DmsPOuilmCAswHjVQe2lMzRhpAqFdBk5jSK0UolV0UgRQfTm8xm19lnWTN81vBJ2hW39kwLq8W2JX+sNwY1Fm8Aj8hO+mrkTPkOQ=
|
47
|
+
authtoken:
|
48
|
+
- D86WJz0DmsPOuilmCAswHjVQe2lMzRhpAqFdBk5jSK0UolV0UgRQfTm8xm19lnWTN81vBJ2hW39kwLq8W2JX+sNwY1Fm8Aj8hO+mrkTPkOQ=
|
49
|
+
response: !ruby/struct:VCR::Response
|
50
|
+
status: !ruby/struct:VCR::ResponseStatus
|
51
|
+
code: 200
|
52
|
+
message: OK
|
53
|
+
headers:
|
54
|
+
expires:
|
55
|
+
- Wed, 18 Jan 2012 00:20:55 GMT
|
56
|
+
last-modified:
|
57
|
+
- Thu, 19 Jan 2012 00:20:55 GMT
|
58
|
+
content-type:
|
59
|
+
- application/json; charset=UTF-8
|
60
|
+
via:
|
61
|
+
- 1.1 stage.amee.com
|
62
|
+
server:
|
63
|
+
- Noelios-Restlet-Engine/1.1.10
|
64
|
+
date:
|
65
|
+
- Thu, 19 Jan 2012 00:20:55 GMT
|
66
|
+
content-length:
|
67
|
+
- "2523"
|
68
|
+
set-cookie:
|
69
|
+
- authToken=D86WJz0DmsPOuilmCAswHjVQe2lMzRhpAqFdBk5jSK0UolV0UgRQfTm8xm19lnWTN81vBJ2hW39kwLq8W2JX+sNwY1Fm8Aj8hO+mrkTPkOQ=; Path=/
|
70
|
+
authtoken:
|
71
|
+
- D86WJz0DmsPOuilmCAswHjVQe2lMzRhpAqFdBk5jSK0UolV0UgRQfTm8xm19lnWTN81vBJ2hW39kwLq8W2JX+sNwY1Fm8Aj8hO+mrkTPkOQ=
|
72
|
+
vary:
|
73
|
+
- Accept-Charset,Accept-Encoding,Accept-Language,Accept
|
74
|
+
body: "{\"apiVersion\":\"2.0\",\"pager\":{\"to\":10,\"lastPage\":5,\"nextPage\":2,\"items\":46,\"start\":0,\"itemsFound\":10,\"requestedPage\":1,\"currentPage\":1,\"from\":1,\"itemsPerPage\":10,\"previousPage\":-1},\"profiles\":[{\"uid\":\"7FQIICXECJ0Y\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2012-01-12 22:57:58.0\",\"name\":\"7FQIICXECJ0Y\",\"path\":\"7FQIICXECJ0Y\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2012-01-12 22:57:58.0\"},{\"uid\":\"DTTDCGBH0U8J\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2012-01-12 21:57:40.0\",\"name\":\"DTTDCGBH0U8J\",\"path\":\"DTTDCGBH0U8J\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2012-01-12 21:57:40.0\"},{\"uid\":\"DC38FQ10LTCO\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2012-01-12 21:51:45.0\",\"name\":\"DC38FQ10LTCO\",\"path\":\"DC38FQ10LTCO\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2012-01-12 21:51:45.0\"},{\"uid\":\"8YUXNC2S1KDB\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-28 01:16:13.0\",\"name\":\"8YUXNC2S1KDB\",\"path\":\"8YUXNC2S1KDB\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-28 01:16:13.0\"},{\"uid\":\"S38H6VRASYET\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:59:30.0\",\"name\":\"S38H6VRASYET\",\"path\":\"S38H6VRASYET\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:59:30.0\"},{\"uid\":\"R02I5JB38D0T\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:42:16.0\",\"name\":\"R02I5JB38D0T\",\"path\":\"R02I5JB38D0T\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:42:16.0\"},{\"uid\":\"3Y6QXZXYIVFD\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:19:43.0\",\"name\":\"3Y6QXZXYIVFD\",\"path\":\"3Y6QXZXYIVFD\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:19:43.0\"},{\"uid\":\"G2P9LZY9DMK6\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:18:37.0\",\"name\":\"G2P9LZY9DMK6\",\"path\":\"G2P9LZY9DMK6\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:18:37.0\"},{\"uid\":\"A2L8OG67E9BW\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:13:05.0\",\"name\":\"A2L8OG67E9BW\",\"path\":\"A2L8OG67E9BW\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:13:05.0\"},{\"uid\":\"BVZFUUOKT6EF\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:12:41.0\",\"name\":\"BVZFUUOKT6EF\",\"path\":\"BVZFUUOKT6EF\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:12:41.0\"}]}"
|
75
|
+
http_version: "1.1"
|
76
|
+
- !ruby/struct:VCR::HTTPInteraction
|
77
|
+
request: !ruby/struct:VCR::Request
|
78
|
+
method: get
|
79
|
+
uri: https://stage.amee.com:443/profiles
|
80
|
+
body:
|
81
|
+
headers:
|
82
|
+
accept:
|
83
|
+
- application/json
|
84
|
+
cookie:
|
85
|
+
- AuthToken=D86WJz0DmsPOuilmCAswHjVQe2lMzRhpAqFdBk5jSK0UolV0UgRQfTm8xm19lnWTN81vBJ2hW39kwLq8W2JX+sNwY1Fm8Aj8hO+mrkTPkOQ=
|
86
|
+
authtoken:
|
87
|
+
- D86WJz0DmsPOuilmCAswHjVQe2lMzRhpAqFdBk5jSK0UolV0UgRQfTm8xm19lnWTN81vBJ2hW39kwLq8W2JX+sNwY1Fm8Aj8hO+mrkTPkOQ=
|
88
|
+
response: !ruby/struct:VCR::Response
|
89
|
+
status: !ruby/struct:VCR::ResponseStatus
|
90
|
+
code: 200
|
91
|
+
message: OK
|
92
|
+
headers:
|
93
|
+
expires:
|
94
|
+
- Wed, 18 Jan 2012 00:22:01 GMT
|
95
|
+
last-modified:
|
96
|
+
- Thu, 19 Jan 2012 00:22:01 GMT
|
97
|
+
content-type:
|
98
|
+
- application/json; charset=UTF-8
|
99
|
+
via:
|
100
|
+
- 1.1 stage.amee.com
|
101
|
+
server:
|
102
|
+
- Noelios-Restlet-Engine/1.1.10
|
103
|
+
date:
|
104
|
+
- Thu, 19 Jan 2012 00:22:01 GMT
|
105
|
+
content-length:
|
106
|
+
- "2523"
|
107
|
+
set-cookie:
|
108
|
+
- authToken=/GtLagog4PlDX3b2A4Hn4i4up91Jry+eR4e7QhqswZYtHN7kyvTe/r/tWk6Y6lV8JXXzXeI0Q1Sm+C5BHvo4pcGFATkjS0yCqmt9dbIITIM=; Path=/
|
109
|
+
authtoken:
|
110
|
+
- /GtLagog4PlDX3b2A4Hn4i4up91Jry+eR4e7QhqswZYtHN7kyvTe/r/tWk6Y6lV8JXXzXeI0Q1Sm+C5BHvo4pcGFATkjS0yCqmt9dbIITIM=
|
111
|
+
vary:
|
112
|
+
- Accept-Charset,Accept-Encoding,Accept-Language,Accept
|
113
|
+
body: "{\"apiVersion\":\"2.0\",\"pager\":{\"to\":10,\"lastPage\":5,\"nextPage\":2,\"items\":46,\"start\":0,\"itemsFound\":10,\"requestedPage\":1,\"currentPage\":1,\"from\":1,\"itemsPerPage\":10,\"previousPage\":-1},\"profiles\":[{\"uid\":\"7FQIICXECJ0Y\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2012-01-12 22:57:58.0\",\"name\":\"7FQIICXECJ0Y\",\"path\":\"7FQIICXECJ0Y\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2012-01-12 22:57:58.0\"},{\"uid\":\"DTTDCGBH0U8J\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2012-01-12 21:57:40.0\",\"name\":\"DTTDCGBH0U8J\",\"path\":\"DTTDCGBH0U8J\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2012-01-12 21:57:40.0\"},{\"uid\":\"DC38FQ10LTCO\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2012-01-12 21:51:45.0\",\"name\":\"DC38FQ10LTCO\",\"path\":\"DC38FQ10LTCO\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2012-01-12 21:51:45.0\"},{\"uid\":\"8YUXNC2S1KDB\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-28 01:16:13.0\",\"name\":\"8YUXNC2S1KDB\",\"path\":\"8YUXNC2S1KDB\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-28 01:16:13.0\"},{\"uid\":\"S38H6VRASYET\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:59:30.0\",\"name\":\"S38H6VRASYET\",\"path\":\"S38H6VRASYET\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:59:30.0\"},{\"uid\":\"R02I5JB38D0T\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:42:16.0\",\"name\":\"R02I5JB38D0T\",\"path\":\"R02I5JB38D0T\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:42:16.0\"},{\"uid\":\"3Y6QXZXYIVFD\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:19:43.0\",\"name\":\"3Y6QXZXYIVFD\",\"path\":\"3Y6QXZXYIVFD\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:19:43.0\"},{\"uid\":\"G2P9LZY9DMK6\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:18:37.0\",\"name\":\"G2P9LZY9DMK6\",\"path\":\"G2P9LZY9DMK6\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:18:37.0\"},{\"uid\":\"A2L8OG67E9BW\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:13:05.0\",\"name\":\"A2L8OG67E9BW\",\"path\":\"A2L8OG67E9BW\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:13:05.0\"},{\"uid\":\"BVZFUUOKT6EF\",\"environment\":{\"uid\":\"5F5887BCF726\"},\"created\":\"2011-11-25 00:12:41.0\",\"name\":\"BVZFUUOKT6EF\",\"path\":\"BVZFUUOKT6EF\",\"user\":{\"uid\":\"58F26PHHLFEB\",\"username\":\"<AMEE_V2_API_KEY>\"},\"modified\":\"2011-11-25 00:12:41.0\"}]}"
|
114
|
+
http_version: "1.1"
|
@@ -0,0 +1,71 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: post
|
5
|
+
uri: https://stage.amee.com:443/auth/signIn
|
6
|
+
body: username=<AMEE_V1_API_KEY>&password=<AMEE_V1_PASSWORD>
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/xml
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
last-modified:
|
16
|
+
- Mon, 28 Nov 2011 01:09:43 GMT
|
17
|
+
expires:
|
18
|
+
- Sun, 27 Nov 2011 01:09:43 GMT
|
19
|
+
via:
|
20
|
+
- 1.1 stage.amee.com
|
21
|
+
content-type:
|
22
|
+
- application/xml; charset=UTF-8
|
23
|
+
date:
|
24
|
+
- Mon, 28 Nov 2011 01:09:43 GMT
|
25
|
+
server:
|
26
|
+
- Noelios-Restlet-Engine/1.1.10
|
27
|
+
authtoken:
|
28
|
+
- P64d2f4ShBeIqRrN7uVptSD7jHB2qUPVWxJv4DEuc8oKeYSO3MklQepEbB1TZYE38hHM5XhWOyOsP7ogMsz1z2DyJeIXAUJdLXYcar4Cdbc=
|
29
|
+
set-cookie:
|
30
|
+
- authToken=P64d2f4ShBeIqRrN7uVptSD7jHB2qUPVWxJv4DEuc8oKeYSO3MklQepEbB1TZYE38hHM5XhWOyOsP7ogMsz1z2DyJeIXAUJdLXYcar4Cdbc=; Path=/
|
31
|
+
vary:
|
32
|
+
- Accept-Charset,Accept-Encoding,Accept-Language,Accept
|
33
|
+
transfer-encoding:
|
34
|
+
- chunked
|
35
|
+
body: <?xml version="1.0" encoding="UTF-8" standalone="no"?><Resources><SignInResource><Next>/auth</Next><User uid="ZMNP71Y06QFH"><Status>ACTIVE</Status><Type>STANDARD</Type><ApiVersion>1.0</ApiVersion><Locale>en_GB</Locale><TimeZone>UTC</TimeZone></User></SignInResource></Resources>
|
36
|
+
http_version: "1.1"
|
37
|
+
- !ruby/struct:VCR::HTTPInteraction
|
38
|
+
request: !ruby/struct:VCR::Request
|
39
|
+
method: post
|
40
|
+
uri: https://stage.amee.com:443/auth/signIn
|
41
|
+
body: username=<AMEE_V1_API_KEY>&password=<AMEE_V1_PASSWORD>
|
42
|
+
headers:
|
43
|
+
accept:
|
44
|
+
- application/xml
|
45
|
+
response: !ruby/struct:VCR::Response
|
46
|
+
status: !ruby/struct:VCR::ResponseStatus
|
47
|
+
code: 200
|
48
|
+
message: OK
|
49
|
+
headers:
|
50
|
+
expires:
|
51
|
+
- Wed, 11 Jan 2012 22:40:34 GMT
|
52
|
+
last-modified:
|
53
|
+
- Thu, 12 Jan 2012 22:40:34 GMT
|
54
|
+
content-type:
|
55
|
+
- application/xml; charset=UTF-8
|
56
|
+
via:
|
57
|
+
- 1.1 stage.amee.com
|
58
|
+
server:
|
59
|
+
- Noelios-Restlet-Engine/1.1.10
|
60
|
+
date:
|
61
|
+
- Thu, 12 Jan 2012 22:40:34 GMT
|
62
|
+
set-cookie:
|
63
|
+
- authToken=FKcQNc0p0zYLGePVkhCv7t2FIt8hhTf7ofv8EEvIESAP7KGDCsMOtLYvxcR5qHv3qvgaYTiTuXG/1W8t6CrfigoGsD6SUk5KTQn6ocULcno=; Path=/
|
64
|
+
authtoken:
|
65
|
+
- FKcQNc0p0zYLGePVkhCv7t2FIt8hhTf7ofv8EEvIESAP7KGDCsMOtLYvxcR5qHv3qvgaYTiTuXG/1W8t6CrfigoGsD6SUk5KTQn6ocULcno=
|
66
|
+
vary:
|
67
|
+
- Accept-Charset,Accept-Encoding,Accept-Language,Accept
|
68
|
+
transfer-encoding:
|
69
|
+
- chunked
|
70
|
+
body: <?xml version="1.0" encoding="UTF-8" standalone="no"?><Resources><SignInResource><Next>/auth</Next><User uid="ZMNP71Y06QFH"><Status>ACTIVE</Status><Type>STANDARD</Type><ApiVersion>1.0</ApiVersion><Locale>en_GB</Locale><TimeZone>UTC</TimeZone></User></SignInResource></Resources>
|
71
|
+
http_version: "1.1"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: post
|
5
|
+
uri: https://stage.amee.com:443/auth/signIn
|
6
|
+
body: username=<AMEE_V2_API_KEY>&password=<AMEE_V2_PASSWORD>
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/xml
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
expires:
|
16
|
+
- Sun, 27 Nov 2011 01:08:15 GMT
|
17
|
+
last-modified:
|
18
|
+
- Mon, 28 Nov 2011 01:08:15 GMT
|
19
|
+
content-type:
|
20
|
+
- application/xml; charset=UTF-8
|
21
|
+
via:
|
22
|
+
- 1.1 stage.amee.com
|
23
|
+
server:
|
24
|
+
- Noelios-Restlet-Engine/1.1.10
|
25
|
+
date:
|
26
|
+
- Mon, 28 Nov 2011 01:08:15 GMT
|
27
|
+
set-cookie:
|
28
|
+
- authToken=Nb9fPJaHAuaemLpO/LJtK1bJVOLGZ1hTQHyDASyGSVuxX0fZLG40gq+RQdZVJtp9aPHxJmAknZvNNHRd+nXSCvZWRTi39i24rKMN6omqVWA=; Path=/
|
29
|
+
authtoken:
|
30
|
+
- Nb9fPJaHAuaemLpO/LJtK1bJVOLGZ1hTQHyDASyGSVuxX0fZLG40gq+RQdZVJtp9aPHxJmAknZvNNHRd+nXSCvZWRTi39i24rKMN6omqVWA=
|
31
|
+
vary:
|
32
|
+
- Accept-Charset,Accept-Encoding,Accept-Language,Accept
|
33
|
+
transfer-encoding:
|
34
|
+
- chunked
|
35
|
+
body: <?xml version="1.0" encoding="UTF-8" standalone="no"?><Resources><SignInResource><Next>/auth</Next><User uid="58F26PHHLFEB"><Status>ACTIVE</Status><Type>STANDARD</Type><ApiVersion>2.0</ApiVersion><Locale>en_GB</Locale><TimeZone>UTC</TimeZone></User></SignInResource></Resources>
|
36
|
+
http_version: "1.1"
|