amiando 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/lib/amiando.rb +3 -1
- data/lib/amiando/api_key.rb +4 -4
- data/lib/amiando/event.rb +18 -25
- data/lib/amiando/partner.rb +61 -0
- data/lib/amiando/payment_type.rb +21 -19
- data/lib/amiando/result.rb +7 -2
- data/lib/amiando/ticket_category.rb +1 -9
- data/lib/amiando/ticket_shop.rb +4 -4
- data/lib/amiando/user.rb +9 -17
- data/lib/amiando/version.rb +1 -1
- data/test/amiando/partner_test.rb +88 -0
- data/test/amiando/result_test.rb +21 -4
- data/test/fixtures/Partner/4c0d42e25385bd19dcd23ac6eb54e1b1.yml +60 -0
- data/test/fixtures/Partner/5e3854e2f75644d8c9ad96b2f2c8e99e.yml +60 -0
- data/test/fixtures/Partner/747677b363e6a293b03e595720198acc.yml +60 -0
- data/test/fixtures/Partner/8ff43b903f2fce232c4a8f474535f5f2.yml +60 -0
- data/test/fixtures/Partner/95847aabc64e82207598dfb3713aeb1d.yml +60 -0
- data/test/fixtures/Partner/96ba2e2a20658489c293f8e6fd40769f.yml +60 -0
- data/test/fixtures/Partner/a63f6645159716c7a3aed70a709ab1f5.yml +60 -0
- data/test/fixtures/Partner/bb1598ae00570e3f2105e52d46fdeddb.yml +62 -0
- data/test/fixtures/Partner/be195130e35fce014dc79b3d01faf0ce.yml +60 -0
- data/test/fixtures/Partner/c4b55b119a1c8e2a934d885a7b2b8893.yml +60 -0
- data/test/fixtures/Partner/d231fa05c126b735f0140a5b8ef09524.yml +60 -0
- data/test/fixtures/Partner/d7a2df10157c42d67020bebd23916122.yml +60 -0
- data/test/fixtures/Partner/e5a99733d043545c90f6eab130328e46.yml +60 -0
- data/test/fixtures/Partner/f066cd0f963e3c873e7eae28d2f654a4.yml +60 -0
- metadata +35 -4
data/test/amiando/result_test.rb
CHANGED
@@ -7,19 +7,36 @@ describe Amiando::Result do
|
|
7
7
|
|
8
8
|
it "uses the passed block to calculate the result" do
|
9
9
|
result = Amiando::Result.new do |something|
|
10
|
-
something * 2
|
10
|
+
something[:val] * 2
|
11
11
|
end
|
12
|
-
result.populate(2)
|
12
|
+
result.populate(:val => 2)
|
13
13
|
result.result.must_equal 4
|
14
14
|
end
|
15
15
|
|
16
16
|
it "can access itself in the block" do
|
17
17
|
result = Amiando::Result.new do |something, res|
|
18
18
|
res.errors = ["hi"]
|
19
|
-
something * 2
|
19
|
+
something[:val] * 2
|
20
20
|
end
|
21
|
-
result.populate(2)
|
21
|
+
result.populate(:val => 2)
|
22
22
|
result.result.must_equal 4
|
23
23
|
result.errors.must_equal ["hi"]
|
24
24
|
end
|
25
|
+
|
26
|
+
it "initializes success to whatever comes in the populate" do
|
27
|
+
result = Amiando::Result.new do |something|
|
28
|
+
something[:val] * 2
|
29
|
+
end
|
30
|
+
|
31
|
+
result.populate(:val => 2, 'success' => true)
|
32
|
+
result.success.must_equal true
|
33
|
+
end
|
34
|
+
|
35
|
+
it "will initialize the return value to the 'success' key by default" do
|
36
|
+
result = Amiando::Result.new
|
37
|
+
|
38
|
+
result.populate('success' => false)
|
39
|
+
result.result.must_equal false
|
40
|
+
result.success.must_equal false
|
41
|
+
end
|
25
42
|
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
--- !ruby/object:Typhoeus::Response
|
2
|
+
app_connect_time: 0.361568
|
3
|
+
body: "{\"partner\":{\"id\":262944,\"adminId\":256142558,\"defaultCountry\":\"ES\",\"name\":\"to be found\",\"language\":\"en\"},\"success\":true}"
|
4
|
+
code: 200
|
5
|
+
connect_time: 0.083587
|
6
|
+
curl_error_message: No error
|
7
|
+
curl_return_code: 0
|
8
|
+
effective_url: https://test.amiando.com/api/partner/262944?apikey=H6FEqB3vz7aO86kkTHNLrH2aMHPSfsO1s2CpUhFWTzz5qbCFLb&format=json&version=1
|
9
|
+
first_header_line: HTTP/1.1 200 OK
|
10
|
+
headers: |
|
11
|
+
HTTP/1.1 200 OK
|
12
|
+
Date: Wed, 26 Oct 2011 15:38:37 GMT
|
13
|
+
Server: Apache/2.0.55 (Red Hat)
|
14
|
+
Set-Cookie: JSESSIONID=E1667A0E4FA6FBAD493A0A1D32D3B5B8.web01; Path=/; Secure
|
15
|
+
Set-Cookie: JSESSIONID=E1667A0E4FA6FBAD493A0A1D32D3B5B8.web01; Path=/
|
16
|
+
accept-charset: utf-8
|
17
|
+
P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
|
18
|
+
Access-Control-Allow-Origin: *
|
19
|
+
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
|
20
|
+
Set-Cookie: ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=SGRoV3RLUlZ3WFZZaUM3VzoxMzIwODUzMzA5ODM2OjllOGYzZjg1NzYwZWYxZjUyZGZiZDlkZTBhZjE2Zjgz; Expires=Mon, 24-Oct-2016 15:41:49 GMT; Path=/
|
21
|
+
Vary: Accept-Charset,Accept-Encoding,Accept-Language,Accept,User-Agent
|
22
|
+
Accept-Ranges: bytes
|
23
|
+
Cache-Control: max-age=7200
|
24
|
+
Expires: Wed, 26 Oct 2011 17:38:37 GMT
|
25
|
+
Transfer-Encoding: chunked
|
26
|
+
Content-Type: application/json;charset=UTF-8
|
27
|
+
|
28
|
+
|
29
|
+
headers_hash: !map:Typhoeus::NormalizedHeaderHash
|
30
|
+
Vary: Accept-Charset,Accept-Encoding,Accept-Language,Accept,User-Agent
|
31
|
+
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
|
32
|
+
P3p: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
|
33
|
+
Transfer-Encoding: chunked
|
34
|
+
Access-Control-Allow-Origin: "*"
|
35
|
+
Content-Type: application/json;charset=UTF-8
|
36
|
+
Date: Wed, 26 Oct 2011 15:38:37 GMT
|
37
|
+
Accept-Ranges: bytes
|
38
|
+
Server: Apache/2.0.55 (Red Hat)
|
39
|
+
Set-Cookie:
|
40
|
+
- JSESSIONID=E1667A0E4FA6FBAD493A0A1D32D3B5B8.web01; Path=/; Secure
|
41
|
+
- JSESSIONID=E1667A0E4FA6FBAD493A0A1D32D3B5B8.web01; Path=/
|
42
|
+
- ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=SGRoV3RLUlZ3WFZZaUM3VzoxMzIwODUzMzA5ODM2OjllOGYzZjg1NzYwZWYxZjUyZGZiZDlkZTBhZjE2Zjgz; Expires=Mon, 24-Oct-2016 15:41:49 GMT; Path=/
|
43
|
+
Expires: Wed, 26 Oct 2011 17:38:37 GMT
|
44
|
+
Cache-Control: max-age=7200
|
45
|
+
Accept-Charset: utf-8
|
46
|
+
http_version:
|
47
|
+
mock: false
|
48
|
+
name_lookup_time: 0.003202
|
49
|
+
pretransfer_time: 0.36157
|
50
|
+
request: |-
|
51
|
+
:method => :get,
|
52
|
+
:url => https://test.amiando.com/api/partner/262944?apikey=H6FEqB3vz7aO86kkTHNLrH2aMHPSfsO1s2CpUhFWTzz5qbCFLb&format=json&version=1,
|
53
|
+
:params => {:version=>1, :format=>:json, :apikey=>"H6FEqB3vz7aO86kkTHNLrH2aMHPSfsO1s2CpUhFWTzz5qbCFLb"},
|
54
|
+
:headers => {"User-Agent"=>"Typhoeus - http://github.com/dbalatero/typhoeus/tree/master"}
|
55
|
+
requested_http_method:
|
56
|
+
requested_url:
|
57
|
+
start_time:
|
58
|
+
start_transfer_time: 0.735657
|
59
|
+
status_message: OK
|
60
|
+
time: 0.735732
|
@@ -0,0 +1,60 @@
|
|
1
|
+
--- !ruby/object:Typhoeus::Response
|
2
|
+
app_connect_time: 4.9e-05
|
3
|
+
body: "{\"id\":256142556,\"success\":true}"
|
4
|
+
code: 201
|
5
|
+
connect_time: 4.9e-05
|
6
|
+
curl_error_message: No error
|
7
|
+
curl_return_code: 0
|
8
|
+
effective_url: https://test.amiando.com/api/user/create?version=1&format=json&apikey=GkOgl6f7B7v7NIjOV4nosKrfI6rxsHD6Z5PWGA7EGAFnq0xaGN
|
9
|
+
first_header_line: HTTP/1.1 201 Created
|
10
|
+
headers: |
|
11
|
+
HTTP/1.1 201 Created
|
12
|
+
Date: Wed, 26 Oct 2011 15:31:02 GMT
|
13
|
+
Server: Apache/2.0.55 (Red Hat)
|
14
|
+
Set-Cookie: JSESSIONID=AEAEE668719BC7B3A211B885A505EB9A.web01; Path=/; Secure
|
15
|
+
Set-Cookie: JSESSIONID=AEAEE668719BC7B3A211B885A505EB9A.web01; Path=/
|
16
|
+
accept-charset: utf-8
|
17
|
+
P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
|
18
|
+
Access-Control-Allow-Origin: *
|
19
|
+
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
|
20
|
+
Set-Cookie: ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=bVNjRm5wdVNPT3ZDWnNCTjoxMzIwODUyODU0NzMwOmQyM2RiMzExMjMxMWI2NzRhNmRkNTFmOWNiZDFmNTc0; Expires=Mon, 24-Oct-2016 15:34:14 GMT; Path=/
|
21
|
+
Accept-Ranges: bytes
|
22
|
+
Cache-Control: max-age=7200
|
23
|
+
Expires: Wed, 26 Oct 2011 17:31:02 GMT
|
24
|
+
Vary: User-Agent
|
25
|
+
Transfer-Encoding: chunked
|
26
|
+
Content-Type: application/json;charset=UTF-8
|
27
|
+
|
28
|
+
|
29
|
+
headers_hash: !map:Typhoeus::NormalizedHeaderHash
|
30
|
+
Vary: User-Agent
|
31
|
+
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
|
32
|
+
P3p: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
|
33
|
+
Transfer-Encoding: chunked
|
34
|
+
Access-Control-Allow-Origin: "*"
|
35
|
+
Content-Type: application/json;charset=UTF-8
|
36
|
+
Date: Wed, 26 Oct 2011 15:31:02 GMT
|
37
|
+
Accept-Ranges: bytes
|
38
|
+
Server: Apache/2.0.55 (Red Hat)
|
39
|
+
Set-Cookie:
|
40
|
+
- JSESSIONID=AEAEE668719BC7B3A211B885A505EB9A.web01; Path=/; Secure
|
41
|
+
- JSESSIONID=AEAEE668719BC7B3A211B885A505EB9A.web01; Path=/
|
42
|
+
- ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=bVNjRm5wdVNPT3ZDWnNCTjoxMzIwODUyODU0NzMwOmQyM2RiMzExMjMxMWI2NzRhNmRkNTFmOWNiZDFmNTc0; Expires=Mon, 24-Oct-2016 15:34:14 GMT; Path=/
|
43
|
+
Expires: Wed, 26 Oct 2011 17:31:02 GMT
|
44
|
+
Cache-Control: max-age=7200
|
45
|
+
Accept-Charset: utf-8
|
46
|
+
http_version:
|
47
|
+
mock: false
|
48
|
+
name_lookup_time: 4.9e-05
|
49
|
+
pretransfer_time: 5.4e-05
|
50
|
+
request: |-
|
51
|
+
:method => :post,
|
52
|
+
:url => https://test.amiando.com/api/user/create?version=1&format=json&apikey=GkOgl6f7B7v7NIjOV4nosKrfI6rxsHD6Z5PWGA7EGAFnq0xaGN,
|
53
|
+
:params => {:firstName=>"Jorge", :password=>"123456", :lastName=>"Llop", :username=>"partner_update-2@example.com", :language=>"es"},
|
54
|
+
:headers => {"User-Agent"=>"Typhoeus - http://github.com/dbalatero/typhoeus/tree/master"}
|
55
|
+
requested_http_method:
|
56
|
+
requested_url:
|
57
|
+
start_time:
|
58
|
+
start_transfer_time: 0.217483
|
59
|
+
status_message: Created
|
60
|
+
time: 0.21755
|
@@ -0,0 +1,60 @@
|
|
1
|
+
--- !ruby/object:Typhoeus::Response
|
2
|
+
app_connect_time: 5.1e-05
|
3
|
+
body: "{\"id\":262942,\"success\":true}"
|
4
|
+
code: 201
|
5
|
+
connect_time: 5.1e-05
|
6
|
+
curl_error_message: No error
|
7
|
+
curl_return_code: 0
|
8
|
+
effective_url: https://test.amiando.com/api/partner/create?version=1&format=json&apikey=GZDgAo9sgF8KCgL1nusttfK3idCQhkl698GwubnBnUU5HWVJBQ
|
9
|
+
first_header_line: HTTP/1.1 201 Created
|
10
|
+
headers: |
|
11
|
+
HTTP/1.1 201 Created
|
12
|
+
Date: Wed, 26 Oct 2011 15:31:01 GMT
|
13
|
+
Server: Apache/2.0.55 (Red Hat)
|
14
|
+
Set-Cookie: JSESSIONID=85C4E9AD5DC365B0C0A420A637413B05.web01; Path=/; Secure
|
15
|
+
Set-Cookie: JSESSIONID=85C4E9AD5DC365B0C0A420A637413B05.web01; Path=/
|
16
|
+
accept-charset: utf-8
|
17
|
+
P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
|
18
|
+
Access-Control-Allow-Origin: *
|
19
|
+
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
|
20
|
+
Set-Cookie: ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=Zmc1d09SSTVkYWJTOGJTcjoxMzIwODUyODU0MjUzOjlkNzdkOWEzYzZjN2YzNzk0ZGRhMGY1OGE2OWNjNjQw; Expires=Mon, 24-Oct-2016 15:34:14 GMT; Path=/
|
21
|
+
Accept-Ranges: bytes
|
22
|
+
Cache-Control: max-age=7200
|
23
|
+
Expires: Wed, 26 Oct 2011 17:31:01 GMT
|
24
|
+
Vary: User-Agent
|
25
|
+
Transfer-Encoding: chunked
|
26
|
+
Content-Type: application/json;charset=UTF-8
|
27
|
+
|
28
|
+
|
29
|
+
headers_hash: !map:Typhoeus::NormalizedHeaderHash
|
30
|
+
Vary: User-Agent
|
31
|
+
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
|
32
|
+
P3p: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
|
33
|
+
Transfer-Encoding: chunked
|
34
|
+
Access-Control-Allow-Origin: "*"
|
35
|
+
Content-Type: application/json;charset=UTF-8
|
36
|
+
Date: Wed, 26 Oct 2011 15:31:01 GMT
|
37
|
+
Accept-Ranges: bytes
|
38
|
+
Server: Apache/2.0.55 (Red Hat)
|
39
|
+
Set-Cookie:
|
40
|
+
- JSESSIONID=85C4E9AD5DC365B0C0A420A637413B05.web01; Path=/; Secure
|
41
|
+
- JSESSIONID=85C4E9AD5DC365B0C0A420A637413B05.web01; Path=/
|
42
|
+
- ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=Zmc1d09SSTVkYWJTOGJTcjoxMzIwODUyODU0MjUzOjlkNzdkOWEzYzZjN2YzNzk0ZGRhMGY1OGE2OWNjNjQw; Expires=Mon, 24-Oct-2016 15:34:14 GMT; Path=/
|
43
|
+
Expires: Wed, 26 Oct 2011 17:31:01 GMT
|
44
|
+
Cache-Control: max-age=7200
|
45
|
+
Accept-Charset: utf-8
|
46
|
+
http_version:
|
47
|
+
mock: false
|
48
|
+
name_lookup_time: 5.0e-05
|
49
|
+
pretransfer_time: 5.8e-05
|
50
|
+
request: |-
|
51
|
+
:method => :post,
|
52
|
+
:url => https://test.amiando.com/api/partner/create?version=1&format=json&apikey=GZDgAo9sgF8KCgL1nusttfK3idCQhkl698GwubnBnUU5HWVJBQ,
|
53
|
+
:params => {:adminId=>256142555, :name=>"Partner name", :defaultCountry=>"ES", :language=>"en"},
|
54
|
+
:headers => {"User-Agent"=>"Typhoeus - http://github.com/dbalatero/typhoeus/tree/master"}
|
55
|
+
requested_http_method:
|
56
|
+
requested_url:
|
57
|
+
start_time:
|
58
|
+
start_transfer_time: 0.356866
|
59
|
+
status_message: Created
|
60
|
+
time: 0.356918
|
@@ -0,0 +1,60 @@
|
|
1
|
+
--- !ruby/object:Typhoeus::Response
|
2
|
+
app_connect_time: 0.764807
|
3
|
+
body: "{\"id\":179142,\"success\":true,\"apiKey\":{\"id\":179142,\"enabled\":true,\"name\":\"partner-find-2\",\"identifier\":\"JPVwzK9kRo0HNIpl\",\"key\":\"H6FEqB3vz7aO86kkTHNLrH2aMHPSfsO1s2CpUhFWTzz5qbCFLb\"}}"
|
4
|
+
code: 201
|
5
|
+
connect_time: 0.446313
|
6
|
+
curl_error_message: No error
|
7
|
+
curl_return_code: 0
|
8
|
+
effective_url: https://test.amiando.com/api/apiKey/create?version=1&format=json&apikey=EHynu2WfcVkkO3VRce0ZWtWKplIpXjlhCuQuDn7s1MgKF9ztR0
|
9
|
+
first_header_line: HTTP/1.1 201 Created
|
10
|
+
headers: |
|
11
|
+
HTTP/1.1 201 Created
|
12
|
+
Date: Wed, 26 Oct 2011 15:37:57 GMT
|
13
|
+
Server: Apache/2.0.55 (Red Hat)
|
14
|
+
Set-Cookie: JSESSIONID=DB1333460A062C23C662BFE72B8BDD99.web01; Path=/; Secure
|
15
|
+
Set-Cookie: JSESSIONID=DB1333460A062C23C662BFE72B8BDD99.web01; Path=/
|
16
|
+
accept-charset: utf-8
|
17
|
+
P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
|
18
|
+
Access-Control-Allow-Origin: *
|
19
|
+
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
|
20
|
+
Set-Cookie: ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=Zm5YQVc0M3ZwS3E1akxyYjoxMzIwODUzMjY5ODk0OjAwMTQyN2M5Yjk0MjhmODg2ZTAxYzZjNTA2YTkyZWEx; Expires=Mon, 24-Oct-2016 15:41:09 GMT; Path=/
|
21
|
+
Accept-Ranges: bytes
|
22
|
+
Cache-Control: max-age=7200
|
23
|
+
Expires: Wed, 26 Oct 2011 17:37:57 GMT
|
24
|
+
Vary: User-Agent
|
25
|
+
Transfer-Encoding: chunked
|
26
|
+
Content-Type: application/json;charset=UTF-8
|
27
|
+
|
28
|
+
|
29
|
+
headers_hash: !map:Typhoeus::NormalizedHeaderHash
|
30
|
+
Vary: User-Agent
|
31
|
+
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
|
32
|
+
P3p: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
|
33
|
+
Transfer-Encoding: chunked
|
34
|
+
Access-Control-Allow-Origin: "*"
|
35
|
+
Content-Type: application/json;charset=UTF-8
|
36
|
+
Date: Wed, 26 Oct 2011 15:37:57 GMT
|
37
|
+
Accept-Ranges: bytes
|
38
|
+
Server: Apache/2.0.55 (Red Hat)
|
39
|
+
Set-Cookie:
|
40
|
+
- JSESSIONID=DB1333460A062C23C662BFE72B8BDD99.web01; Path=/; Secure
|
41
|
+
- JSESSIONID=DB1333460A062C23C662BFE72B8BDD99.web01; Path=/
|
42
|
+
- ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=Zm5YQVc0M3ZwS3E1akxyYjoxMzIwODUzMjY5ODk0OjAwMTQyN2M5Yjk0MjhmODg2ZTAxYzZjNTA2YTkyZWEx; Expires=Mon, 24-Oct-2016 15:41:09 GMT; Path=/
|
43
|
+
Expires: Wed, 26 Oct 2011 17:37:57 GMT
|
44
|
+
Cache-Control: max-age=7200
|
45
|
+
Accept-Charset: utf-8
|
46
|
+
http_version:
|
47
|
+
mock: false
|
48
|
+
name_lookup_time: 0.376762
|
49
|
+
pretransfer_time: 0.764809
|
50
|
+
request: |-
|
51
|
+
:method => :post,
|
52
|
+
:url => https://test.amiando.com/api/apiKey/create?version=1&format=json&apikey=EHynu2WfcVkkO3VRce0ZWtWKplIpXjlhCuQuDn7s1MgKF9ztR0,
|
53
|
+
:params => {:name=>"partner-find-2"},
|
54
|
+
:headers => {"User-Agent"=>"Typhoeus - http://github.com/dbalatero/typhoeus/tree/master"}
|
55
|
+
requested_http_method:
|
56
|
+
requested_url:
|
57
|
+
start_time:
|
58
|
+
start_transfer_time: 0.916761
|
59
|
+
status_message: Created
|
60
|
+
time: 0.916831
|
@@ -0,0 +1,60 @@
|
|
1
|
+
--- !ruby/object:Typhoeus::Response
|
2
|
+
app_connect_time: 6.1e-05
|
3
|
+
body: "{\"id\":256142558,\"success\":true}"
|
4
|
+
code: 201
|
5
|
+
connect_time: 6.1e-05
|
6
|
+
curl_error_message: No error
|
7
|
+
curl_return_code: 0
|
8
|
+
effective_url: https://test.amiando.com/api/user/create?version=1&format=json&apikey=H6FEqB3vz7aO86kkTHNLrH2aMHPSfsO1s2CpUhFWTzz5qbCFLb
|
9
|
+
first_header_line: HTTP/1.1 201 Created
|
10
|
+
headers: |
|
11
|
+
HTTP/1.1 201 Created
|
12
|
+
Date: Wed, 26 Oct 2011 15:37:57 GMT
|
13
|
+
Server: Apache/2.0.55 (Red Hat)
|
14
|
+
Set-Cookie: JSESSIONID=C0EB6832A032C8A0AD765BD89525D71E.web01; Path=/; Secure
|
15
|
+
Set-Cookie: JSESSIONID=C0EB6832A032C8A0AD765BD89525D71E.web01; Path=/
|
16
|
+
accept-charset: utf-8
|
17
|
+
P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
|
18
|
+
Access-Control-Allow-Origin: *
|
19
|
+
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
|
20
|
+
Set-Cookie: ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=UmRGSlQxc2VnTURubWYyejoxMzIwODUzMjY5OTg2OjZjNmZlZDMwMDExNDMzOTFhMTVlNzJjMmIzNGQwZDQ3; Expires=Mon, 24-Oct-2016 15:41:09 GMT; Path=/
|
21
|
+
Accept-Ranges: bytes
|
22
|
+
Cache-Control: max-age=7200
|
23
|
+
Expires: Wed, 26 Oct 2011 17:37:57 GMT
|
24
|
+
Vary: User-Agent
|
25
|
+
Transfer-Encoding: chunked
|
26
|
+
Content-Type: application/json;charset=UTF-8
|
27
|
+
|
28
|
+
|
29
|
+
headers_hash: !map:Typhoeus::NormalizedHeaderHash
|
30
|
+
Vary: User-Agent
|
31
|
+
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
|
32
|
+
P3p: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
|
33
|
+
Transfer-Encoding: chunked
|
34
|
+
Access-Control-Allow-Origin: "*"
|
35
|
+
Content-Type: application/json;charset=UTF-8
|
36
|
+
Date: Wed, 26 Oct 2011 15:37:57 GMT
|
37
|
+
Accept-Ranges: bytes
|
38
|
+
Server: Apache/2.0.55 (Red Hat)
|
39
|
+
Set-Cookie:
|
40
|
+
- JSESSIONID=C0EB6832A032C8A0AD765BD89525D71E.web01; Path=/; Secure
|
41
|
+
- JSESSIONID=C0EB6832A032C8A0AD765BD89525D71E.web01; Path=/
|
42
|
+
- ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=UmRGSlQxc2VnTURubWYyejoxMzIwODUzMjY5OTg2OjZjNmZlZDMwMDExNDMzOTFhMTVlNzJjMmIzNGQwZDQ3; Expires=Mon, 24-Oct-2016 15:41:09 GMT; Path=/
|
43
|
+
Expires: Wed, 26 Oct 2011 17:37:57 GMT
|
44
|
+
Cache-Control: max-age=7200
|
45
|
+
Accept-Charset: utf-8
|
46
|
+
http_version:
|
47
|
+
mock: false
|
48
|
+
name_lookup_time: 6.0e-05
|
49
|
+
pretransfer_time: 6.8e-05
|
50
|
+
request: |-
|
51
|
+
:method => :post,
|
52
|
+
:url => https://test.amiando.com/api/user/create?version=1&format=json&apikey=H6FEqB3vz7aO86kkTHNLrH2aMHPSfsO1s2CpUhFWTzz5qbCFLb,
|
53
|
+
:params => {:firstName=>"Jorge", :password=>"123456", :lastName=>"Llop", :username=>"partner_find-2@example.com", :language=>"es"},
|
54
|
+
:headers => {"User-Agent"=>"Typhoeus - http://github.com/dbalatero/typhoeus/tree/master"}
|
55
|
+
requested_http_method:
|
56
|
+
requested_url:
|
57
|
+
start_time:
|
58
|
+
start_transfer_time: 0.174626
|
59
|
+
status_message: Created
|
60
|
+
time: 0.174671
|
@@ -0,0 +1,60 @@
|
|
1
|
+
--- !ruby/object:Typhoeus::Response
|
2
|
+
app_connect_time: 6.6e-05
|
3
|
+
body: "{\"success\":true}"
|
4
|
+
code: 200
|
5
|
+
connect_time: 6.6e-05
|
6
|
+
curl_error_message: No error
|
7
|
+
curl_return_code: 0
|
8
|
+
effective_url: https://test.amiando.com/api/partner/262943?version=1&format=json&apikey=GkOgl6f7B7v7NIjOV4nosKrfI6rxsHD6Z5PWGA7EGAFnq0xaGN
|
9
|
+
first_header_line: HTTP/1.1 200 OK
|
10
|
+
headers: |
|
11
|
+
HTTP/1.1 200 OK
|
12
|
+
Date: Wed, 26 Oct 2011 15:31:02 GMT
|
13
|
+
Server: Apache/2.0.55 (Red Hat)
|
14
|
+
Set-Cookie: JSESSIONID=8395B0757423FE7365E44332FDF4418D.web01; Path=/; Secure
|
15
|
+
Set-Cookie: JSESSIONID=8395B0757423FE7365E44332FDF4418D.web01; Path=/
|
16
|
+
accept-charset: utf-8
|
17
|
+
P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
|
18
|
+
Access-Control-Allow-Origin: *
|
19
|
+
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
|
20
|
+
Set-Cookie: ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=SzByQk0xdThucXh2OWFGUDoxMzIwODUyODU1MzA5OjI5MDA1MjIxZWJmY2IxZDcxYTAwZTYxMDlhZDk2Y2E0; Expires=Mon, 24-Oct-2016 15:34:15 GMT; Path=/
|
21
|
+
Accept-Ranges: bytes
|
22
|
+
Cache-Control: max-age=7200
|
23
|
+
Expires: Wed, 26 Oct 2011 17:31:02 GMT
|
24
|
+
Vary: User-Agent
|
25
|
+
Transfer-Encoding: chunked
|
26
|
+
Content-Type: application/json;charset=UTF-8
|
27
|
+
|
28
|
+
|
29
|
+
headers_hash: !map:Typhoeus::NormalizedHeaderHash
|
30
|
+
Vary: User-Agent
|
31
|
+
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
|
32
|
+
P3p: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
|
33
|
+
Transfer-Encoding: chunked
|
34
|
+
Access-Control-Allow-Origin: "*"
|
35
|
+
Content-Type: application/json;charset=UTF-8
|
36
|
+
Date: Wed, 26 Oct 2011 15:31:02 GMT
|
37
|
+
Accept-Ranges: bytes
|
38
|
+
Server: Apache/2.0.55 (Red Hat)
|
39
|
+
Set-Cookie:
|
40
|
+
- JSESSIONID=8395B0757423FE7365E44332FDF4418D.web01; Path=/; Secure
|
41
|
+
- JSESSIONID=8395B0757423FE7365E44332FDF4418D.web01; Path=/
|
42
|
+
- ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=SzByQk0xdThucXh2OWFGUDoxMzIwODUyODU1MzA5OjI5MDA1MjIxZWJmY2IxZDcxYTAwZTYxMDlhZDk2Y2E0; Expires=Mon, 24-Oct-2016 15:34:15 GMT; Path=/
|
43
|
+
Expires: Wed, 26 Oct 2011 17:31:02 GMT
|
44
|
+
Cache-Control: max-age=7200
|
45
|
+
Accept-Charset: utf-8
|
46
|
+
http_version:
|
47
|
+
mock: false
|
48
|
+
name_lookup_time: 6.5e-05
|
49
|
+
pretransfer_time: 7.5e-05
|
50
|
+
request: |-
|
51
|
+
:method => :post,
|
52
|
+
:url => https://test.amiando.com/api/partner/262943?version=1&format=json&apikey=GkOgl6f7B7v7NIjOV4nosKrfI6rxsHD6Z5PWGA7EGAFnq0xaGN,
|
53
|
+
:params => {:name=>"wadus"},
|
54
|
+
:headers => {"User-Agent"=>"Typhoeus - http://github.com/dbalatero/typhoeus/tree/master"}
|
55
|
+
requested_http_method:
|
56
|
+
requested_url:
|
57
|
+
start_time:
|
58
|
+
start_transfer_time: 0.397736
|
59
|
+
status_message: OK
|
60
|
+
time: 0.397772
|
@@ -0,0 +1,60 @@
|
|
1
|
+
--- !ruby/object:Typhoeus::Response
|
2
|
+
app_connect_time: 4.7e-05
|
3
|
+
body: "{\"id\":179141,\"success\":true,\"apiKey\":{\"id\":179141,\"enabled\":true,\"name\":\"partner-update-2\",\"identifier\":\"UYjjsDic93BRDP8u\",\"key\":\"GkOgl6f7B7v7NIjOV4nosKrfI6rxsHD6Z5PWGA7EGAFnq0xaGN\"}}"
|
4
|
+
code: 201
|
5
|
+
connect_time: 4.7e-05
|
6
|
+
curl_error_message: No error
|
7
|
+
curl_return_code: 0
|
8
|
+
effective_url: https://test.amiando.com/api/apiKey/create?version=1&format=json&apikey=EHynu2WfcVkkO3VRce0ZWtWKplIpXjlhCuQuDn7s1MgKF9ztR0
|
9
|
+
first_header_line: HTTP/1.1 201 Created
|
10
|
+
headers: |
|
11
|
+
HTTP/1.1 201 Created
|
12
|
+
Date: Wed, 26 Oct 2011 15:31:02 GMT
|
13
|
+
Server: Apache/2.0.55 (Red Hat)
|
14
|
+
Set-Cookie: JSESSIONID=73D7FFE4591A1330F185FDF0747CEA9C.web01; Path=/; Secure
|
15
|
+
Set-Cookie: JSESSIONID=73D7FFE4591A1330F185FDF0747CEA9C.web01; Path=/
|
16
|
+
accept-charset: utf-8
|
17
|
+
P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
|
18
|
+
Access-Control-Allow-Origin: *
|
19
|
+
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
|
20
|
+
Set-Cookie: ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=SlA4SEpnUzRzcHYxWVh6QToxMzIwODUyODU0NjE5OjFiYTcyMGJhNzEyNmJjZGFmNjdkODg0Mzc5ODZkNjdk; Expires=Mon, 24-Oct-2016 15:34:14 GMT; Path=/
|
21
|
+
Accept-Ranges: bytes
|
22
|
+
Cache-Control: max-age=7200
|
23
|
+
Expires: Wed, 26 Oct 2011 17:31:02 GMT
|
24
|
+
Vary: User-Agent
|
25
|
+
Transfer-Encoding: chunked
|
26
|
+
Content-Type: application/json;charset=UTF-8
|
27
|
+
|
28
|
+
|
29
|
+
headers_hash: !map:Typhoeus::NormalizedHeaderHash
|
30
|
+
Vary: User-Agent
|
31
|
+
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
|
32
|
+
P3p: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
|
33
|
+
Transfer-Encoding: chunked
|
34
|
+
Access-Control-Allow-Origin: "*"
|
35
|
+
Content-Type: application/json;charset=UTF-8
|
36
|
+
Date: Wed, 26 Oct 2011 15:31:02 GMT
|
37
|
+
Accept-Ranges: bytes
|
38
|
+
Server: Apache/2.0.55 (Red Hat)
|
39
|
+
Set-Cookie:
|
40
|
+
- JSESSIONID=73D7FFE4591A1330F185FDF0747CEA9C.web01; Path=/; Secure
|
41
|
+
- JSESSIONID=73D7FFE4591A1330F185FDF0747CEA9C.web01; Path=/
|
42
|
+
- ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=SlA4SEpnUzRzcHYxWVh6QToxMzIwODUyODU0NjE5OjFiYTcyMGJhNzEyNmJjZGFmNjdkODg0Mzc5ODZkNjdk; Expires=Mon, 24-Oct-2016 15:34:14 GMT; Path=/
|
43
|
+
Expires: Wed, 26 Oct 2011 17:31:02 GMT
|
44
|
+
Cache-Control: max-age=7200
|
45
|
+
Accept-Charset: utf-8
|
46
|
+
http_version:
|
47
|
+
mock: false
|
48
|
+
name_lookup_time: 4.6e-05
|
49
|
+
pretransfer_time: 5.2e-05
|
50
|
+
request: |-
|
51
|
+
:method => :post,
|
52
|
+
:url => https://test.amiando.com/api/apiKey/create?version=1&format=json&apikey=EHynu2WfcVkkO3VRce0ZWtWKplIpXjlhCuQuDn7s1MgKF9ztR0,
|
53
|
+
:params => {:name=>"partner-update-2"},
|
54
|
+
:headers => {"User-Agent"=>"Typhoeus - http://github.com/dbalatero/typhoeus/tree/master"}
|
55
|
+
requested_http_method:
|
56
|
+
requested_url:
|
57
|
+
start_time:
|
58
|
+
start_transfer_time: 0.121226
|
59
|
+
status_message: Created
|
60
|
+
time: 0.121275
|