amiando 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,62 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 0.208772
3
+ body: "{\"errors\":[\"com.amiando.api.rest.MissingParam.adminId\"],\"success\":false}"
4
+ code: 400
5
+ connect_time: 0.066434
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=EHynu2WfcVkkO3VRce0ZWtWKplIpXjlhCuQuDn7s1MgKF9ztR0
9
+ first_header_line: HTTP/1.1 400 Bad Request
10
+ headers: |
11
+ HTTP/1.1 400 Bad Request
12
+ Date: Wed, 26 Oct 2011 15:29:04 GMT
13
+ Server: Apache/2.0.55 (Red Hat)
14
+ Set-Cookie: JSESSIONID=AF033EA6827F75307884FB698F46DC06.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=AF033EA6827F75307884FB698F46DC06.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=cHNuUTNvYkpveHZkVTByaDoxMzIwODUyNzM3MjM1OmVkNmE3MzUyM2EyYWY2YWIzMTk3NjU0NjQ3MWMzY2E5; Expires=Mon, 24-Oct-2016 15:32:17 GMT; Path=/
21
+ Accept-Ranges: bytes
22
+ Cache-Control: max-age=7200
23
+ Expires: Wed, 26 Oct 2011 17:29:04 GMT
24
+ Vary: User-Agent
25
+ Connection: close
26
+ Transfer-Encoding: chunked
27
+ Content-Type: application/json;charset=UTF-8
28
+
29
+
30
+ headers_hash: !map:Typhoeus::NormalizedHeaderHash
31
+ Vary: User-Agent
32
+ Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
33
+ P3p: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
34
+ Transfer-Encoding: chunked
35
+ Access-Control-Allow-Origin: "*"
36
+ Content-Type: application/json;charset=UTF-8
37
+ Date: Wed, 26 Oct 2011 15:29:04 GMT
38
+ Accept-Ranges: bytes
39
+ Server: Apache/2.0.55 (Red Hat)
40
+ Set-Cookie:
41
+ - JSESSIONID=AF033EA6827F75307884FB698F46DC06.web01; Path=/; Secure
42
+ - JSESSIONID=AF033EA6827F75307884FB698F46DC06.web01; Path=/
43
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=cHNuUTNvYkpveHZkVTByaDoxMzIwODUyNzM3MjM1OmVkNmE3MzUyM2EyYWY2YWIzMTk3NjU0NjQ3MWMzY2E5; Expires=Mon, 24-Oct-2016 15:32:17 GMT; Path=/
44
+ Expires: Wed, 26 Oct 2011 17:29:04 GMT
45
+ Cache-Control: max-age=7200
46
+ Accept-Charset: utf-8
47
+ Connection: close
48
+ http_version:
49
+ mock: false
50
+ name_lookup_time: 3.1e-05
51
+ pretransfer_time: 0.208774
52
+ request: |-
53
+ :method => :post,
54
+ :url => https://test.amiando.com/api/partner/create?version=1&format=json&apikey=EHynu2WfcVkkO3VRce0ZWtWKplIpXjlhCuQuDn7s1MgKF9ztR0,
55
+ :params => {:adminId=>nil, :name=>"Partner name", :defaultCountry=>"ES", :language=>"en"},
56
+ :headers => {"User-Agent"=>"Typhoeus - http://github.com/dbalatero/typhoeus/tree/master"}
57
+ requested_http_method:
58
+ requested_url:
59
+ start_time:
60
+ start_transfer_time: 0.478776
61
+ status_message: Bad Request
62
+ time: 0.484153
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 5.0e-05
3
+ body: "{\"id\":262943,\"success\":true}"
4
+ code: 201
5
+ connect_time: 5.0e-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=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=2D51CAF3C5EE4306A238BA2E8DB57BCE.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=2D51CAF3C5EE4306A238BA2E8DB57BCE.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=WTlESjYxQktXYkJyRkw3TToxMzIwODUyODU1MDg2OjQ5ZTkyY2YyYTBjN2MwZWIxZWYyMmYwZDBmMjcwNTY0; 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=2D51CAF3C5EE4306A238BA2E8DB57BCE.web01; Path=/; Secure
41
+ - JSESSIONID=2D51CAF3C5EE4306A238BA2E8DB57BCE.web01; Path=/
42
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=WTlESjYxQktXYkJyRkw3TToxMzIwODUyODU1MDg2OjQ5ZTkyY2YyYTBjN2MwZWIxZWYyMmYwZDBmMjcwNTY0; 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: 5.0e-05
49
+ pretransfer_time: 5.6e-05
50
+ request: |-
51
+ :method => :post,
52
+ :url => https://test.amiando.com/api/partner/create?version=1&format=json&apikey=GkOgl6f7B7v7NIjOV4nosKrfI6rxsHD6Z5PWGA7EGAFnq0xaGN,
53
+ :params => {:adminId=>256142556, :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.319297
59
+ status_message: Created
60
+ time: 0.319347
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 5.6e-05
3
+ body: "{\"id\":262944,\"success\":true}"
4
+ code: 201
5
+ connect_time: 5.6e-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=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=B1C68B04E501C518D07E13A4E5087024.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=B1C68B04E501C518D07E13A4E5087024.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=bWtFU0ZzajVvTlR4SThIbDoxMzIwODUzMjcwMjMxOmFiNzBiOTkyNzA0YmU4MTg5NGRkOGQzNThkNjE0Nzkw; Expires=Mon, 24-Oct-2016 15:41:10 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=B1C68B04E501C518D07E13A4E5087024.web01; Path=/; Secure
41
+ - JSESSIONID=B1C68B04E501C518D07E13A4E5087024.web01; Path=/
42
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=bWtFU0ZzajVvTlR4SThIbDoxMzIwODUzMjcwMjMxOmFiNzBiOTkyNzA0YmU4MTg5NGRkOGQzNThkNjE0Nzkw; Expires=Mon, 24-Oct-2016 15:41:10 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: 5.5e-05
49
+ pretransfer_time: 6.1e-05
50
+ request: |-
51
+ :method => :post,
52
+ :url => https://test.amiando.com/api/partner/create?version=1&format=json&apikey=H6FEqB3vz7aO86kkTHNLrH2aMHPSfsO1s2CpUhFWTzz5qbCFLb,
53
+ :params => {:adminId=>256142558, :name=>"to be found", :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.162716
59
+ status_message: Created
60
+ time: 0.162762
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 5.0e-05
3
+ body: "{\"id\":256142555,\"success\":true}"
4
+ code: 201
5
+ connect_time: 5.0e-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=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=8A18F9B526C9730D55F13089DD691610.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=8A18F9B526C9730D55F13089DD691610.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=SHd4ZDVGRHlvMVVHYjhTcToxMzIwODUyODUzNzQ0OmNmZWE0N2VkNjJmY2M5ZDViMjQ4OTEyNmNhZDA5ZTI4; Expires=Mon, 24-Oct-2016 15:34:13 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=8A18F9B526C9730D55F13089DD691610.web01; Path=/; Secure
41
+ - JSESSIONID=8A18F9B526C9730D55F13089DD691610.web01; Path=/
42
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=SHd4ZDVGRHlvMVVHYjhTcToxMzIwODUyODUzNzQ0OmNmZWE0N2VkNjJmY2M5ZDViMjQ4OTEyNmNhZDA5ZTI4; Expires=Mon, 24-Oct-2016 15:34:13 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.5e-05
50
+ request: |-
51
+ :method => :post,
52
+ :url => https://test.amiando.com/api/user/create?version=1&format=json&apikey=GZDgAo9sgF8KCgL1nusttfK3idCQhkl698GwubnBnUU5HWVJBQ,
53
+ :params => {:firstName=>"Jorge", :password=>"123456", :lastName=>"Llop", :username=>"partner_create-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.472207
59
+ status_message: Created
60
+ time: 0.472252
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 0.383902
3
+ body: "{\"id\":179140,\"success\":true,\"apiKey\":{\"id\":179140,\"enabled\":true,\"name\":\"partner-create-2\",\"identifier\":\"ATmkSexnY9KyJVVo\",\"key\":\"GZDgAo9sgF8KCgL1nusttfK3idCQhkl698GwubnBnUU5HWVJBQ\"}}"
4
+ code: 201
5
+ connect_time: 0.077433
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:01 GMT
13
+ Server: Apache/2.0.55 (Red Hat)
14
+ Set-Cookie: JSESSIONID=FAE875B33974AA707F62629A5F9D7850.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=FAE875B33974AA707F62629A5F9D7850.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=N3Q2d2xlR215cGRyQllyWjoxMzIwODUyODUzNjYwOmUxZWFiZGIyOWNiZDM3MGI3MWU0YzViNmYyODk2OTk2; Expires=Mon, 24-Oct-2016 15:34:13 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=FAE875B33974AA707F62629A5F9D7850.web01; Path=/; Secure
41
+ - JSESSIONID=FAE875B33974AA707F62629A5F9D7850.web01; Path=/
42
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=N3Q2d2xlR215cGRyQllyWjoxMzIwODUyODUzNjYwOmUxZWFiZGIyOWNiZDM3MGI3MWU0YzViNmYyODk2OTk2; Expires=Mon, 24-Oct-2016 15:34:13 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: 0.00372
49
+ pretransfer_time: 0.383904
50
+ request: |-
51
+ :method => :post,
52
+ :url => https://test.amiando.com/api/apiKey/create?version=1&format=json&apikey=EHynu2WfcVkkO3VRce0ZWtWKplIpXjlhCuQuDn7s1MgKF9ztR0,
53
+ :params => {:name=>"partner-create-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.534001
59
+ status_message: Created
60
+ time: 0.534052
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 5.3e-05
3
+ body: "{\"id\":262941,\"success\":true}"
4
+ code: 201
5
+ connect_time: 5.3e-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=OFPeuqAE7gfu3sDu3XvAXlQqBBQwan7t1IjZDHmIsT2p8qh8n8
9
+ first_header_line: HTTP/1.1 201 Created
10
+ headers: |
11
+ HTTP/1.1 201 Created
12
+ Date: Wed, 26 Oct 2011 15:29:05 GMT
13
+ Server: Apache/2.0.55 (Red Hat)
14
+ Set-Cookie: JSESSIONID=0E5C9D1062CDEB5E85E20EBEB0656EBA.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=0E5C9D1062CDEB5E85E20EBEB0656EBA.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=R0t3WDNPNzI5dHZ3RjNyRjoxMzIwODUyNzM4MTc3OmQ3NzkyNTJmMGJiM2QxNzVmZmM0NDJhNGM0OTMwN2U1; Expires=Mon, 24-Oct-2016 15:32:18 GMT; Path=/
21
+ Accept-Ranges: bytes
22
+ Cache-Control: max-age=7200
23
+ Expires: Wed, 26 Oct 2011 17:29:05 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:29:05 GMT
37
+ Accept-Ranges: bytes
38
+ Server: Apache/2.0.55 (Red Hat)
39
+ Set-Cookie:
40
+ - JSESSIONID=0E5C9D1062CDEB5E85E20EBEB0656EBA.web01; Path=/; Secure
41
+ - JSESSIONID=0E5C9D1062CDEB5E85E20EBEB0656EBA.web01; Path=/
42
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=R0t3WDNPNzI5dHZ3RjNyRjoxMzIwODUyNzM4MTc3OmQ3NzkyNTJmMGJiM2QxNzVmZmM0NDJhNGM0OTMwN2U1; Expires=Mon, 24-Oct-2016 15:32:18 GMT; Path=/
43
+ Expires: Wed, 26 Oct 2011 17:29:05 GMT
44
+ Cache-Control: max-age=7200
45
+ Accept-Charset: utf-8
46
+ http_version:
47
+ mock: false
48
+ name_lookup_time: 5.3e-05
49
+ pretransfer_time: 5.9e-05
50
+ request: |-
51
+ :method => :post,
52
+ :url => https://test.amiando.com/api/partner/create?version=1&format=json&apikey=OFPeuqAE7gfu3sDu3XvAXlQqBBQwan7t1IjZDHmIsT2p8qh8n8,
53
+ :params => {:adminId=>256142554, :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.551924
59
+ status_message: Created
60
+ time: 0.551972
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 5.5e-05
3
+ body: "{\"success\":true}"
4
+ code: 200
5
+ connect_time: 5.5e-05
6
+ curl_error_message: No error
7
+ curl_return_code: 0
8
+ effective_url: https://test.amiando.com/api/partner/262941?version=1&format=json&apikey=OFPeuqAE7gfu3sDu3XvAXlQqBBQwan7t1IjZDHmIsT2p8qh8n8
9
+ first_header_line: HTTP/1.1 200 OK
10
+ headers: |
11
+ HTTP/1.1 200 OK
12
+ Date: Wed, 26 Oct 2011 15:29:06 GMT
13
+ Server: Apache/2.0.55 (Red Hat)
14
+ Set-Cookie: JSESSIONID=A877EEF94163D27AC4599D55C1189E64.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=A877EEF94163D27AC4599D55C1189E64.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=bUNHUHVoWEJDRTk3cjc5UToxMzIwODUyNzM4Nzk5OjEzMzBkYjIxNGM4Zjg3N2MxMTMxZjg0Zjk0NzcxYjgy; Expires=Mon, 24-Oct-2016 15:32:18 GMT; Path=/
21
+ Accept-Ranges: bytes
22
+ Cache-Control: max-age=7200
23
+ Expires: Wed, 26 Oct 2011 17:29:06 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:29:06 GMT
37
+ Accept-Ranges: bytes
38
+ Server: Apache/2.0.55 (Red Hat)
39
+ Set-Cookie:
40
+ - JSESSIONID=A877EEF94163D27AC4599D55C1189E64.web01; Path=/; Secure
41
+ - JSESSIONID=A877EEF94163D27AC4599D55C1189E64.web01; Path=/
42
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=bUNHUHVoWEJDRTk3cjc5UToxMzIwODUyNzM4Nzk5OjEzMzBkYjIxNGM4Zjg3N2MxMTMxZjg0Zjk0NzcxYjgy; Expires=Mon, 24-Oct-2016 15:32:18 GMT; Path=/
43
+ Expires: Wed, 26 Oct 2011 17:29:06 GMT
44
+ Cache-Control: max-age=7200
45
+ Accept-Charset: utf-8
46
+ http_version:
47
+ mock: false
48
+ name_lookup_time: 5.5e-05
49
+ pretransfer_time: 6.3e-05
50
+ request: |-
51
+ :method => :post,
52
+ :url => https://test.amiando.com/api/partner/262941?version=1&format=json&apikey=OFPeuqAE7gfu3sDu3XvAXlQqBBQwan7t1IjZDHmIsT2p8qh8n8,
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.450935
59
+ status_message: OK
60
+ time: 0.450986
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amiando
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 1
10
- version: 0.2.1
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jorge Dias
@@ -113,6 +113,7 @@ files:
113
113
  - lib/amiando/autorun.rb
114
114
  - lib/amiando/boolean.rb
115
115
  - lib/amiando/event.rb
116
+ - lib/amiando/partner.rb
116
117
  - lib/amiando/payment_type.rb
117
118
  - lib/amiando/request.rb
118
119
  - lib/amiando/resource.rb
@@ -125,6 +126,7 @@ files:
125
126
  - test/amiando/api_key_test.rb
126
127
  - test/amiando/boolean_test.rb
127
128
  - test/amiando/event_test.rb
129
+ - test/amiando/partner_test.rb
128
130
  - test/amiando/payment_type_test.rb
129
131
  - test/amiando/resource_test.rb
130
132
  - test/amiando/result_test.rb
@@ -162,6 +164,20 @@ files:
162
164
  - test/fixtures/Event/fbfab75b95d5c3df19152e70fbd9689c.yml
163
165
  - test/fixtures/Global/505952258352958b3b59a3812372ed02.yml
164
166
  - test/fixtures/Global/8d5740635c53798549a973a4f245613e.yml
167
+ - test/fixtures/Partner/4c0d42e25385bd19dcd23ac6eb54e1b1.yml
168
+ - test/fixtures/Partner/5e3854e2f75644d8c9ad96b2f2c8e99e.yml
169
+ - test/fixtures/Partner/747677b363e6a293b03e595720198acc.yml
170
+ - test/fixtures/Partner/8ff43b903f2fce232c4a8f474535f5f2.yml
171
+ - test/fixtures/Partner/95847aabc64e82207598dfb3713aeb1d.yml
172
+ - test/fixtures/Partner/96ba2e2a20658489c293f8e6fd40769f.yml
173
+ - test/fixtures/Partner/a63f6645159716c7a3aed70a709ab1f5.yml
174
+ - test/fixtures/Partner/bb1598ae00570e3f2105e52d46fdeddb.yml
175
+ - test/fixtures/Partner/be195130e35fce014dc79b3d01faf0ce.yml
176
+ - test/fixtures/Partner/c4b55b119a1c8e2a934d885a7b2b8893.yml
177
+ - test/fixtures/Partner/d231fa05c126b735f0140a5b8ef09524.yml
178
+ - test/fixtures/Partner/d7a2df10157c42d67020bebd23916122.yml
179
+ - test/fixtures/Partner/e5a99733d043545c90f6eab130328e46.yml
180
+ - test/fixtures/Partner/f066cd0f963e3c873e7eae28d2f654a4.yml
165
181
  - test/fixtures/PaymentType/0096aebaa9c29a7bcb381d20697704c3.yml
166
182
  - test/fixtures/PaymentType/3f67b8ff5994e0239fa2ed6e7dbfcec1.yml
167
183
  - test/fixtures/PaymentType/7c37125c353d970dbbbaaef54eaf3d90.yml
@@ -239,6 +255,7 @@ test_files:
239
255
  - test/amiando/api_key_test.rb
240
256
  - test/amiando/boolean_test.rb
241
257
  - test/amiando/event_test.rb
258
+ - test/amiando/partner_test.rb
242
259
  - test/amiando/payment_type_test.rb
243
260
  - test/amiando/resource_test.rb
244
261
  - test/amiando/result_test.rb
@@ -276,6 +293,20 @@ test_files:
276
293
  - test/fixtures/Event/fbfab75b95d5c3df19152e70fbd9689c.yml
277
294
  - test/fixtures/Global/505952258352958b3b59a3812372ed02.yml
278
295
  - test/fixtures/Global/8d5740635c53798549a973a4f245613e.yml
296
+ - test/fixtures/Partner/4c0d42e25385bd19dcd23ac6eb54e1b1.yml
297
+ - test/fixtures/Partner/5e3854e2f75644d8c9ad96b2f2c8e99e.yml
298
+ - test/fixtures/Partner/747677b363e6a293b03e595720198acc.yml
299
+ - test/fixtures/Partner/8ff43b903f2fce232c4a8f474535f5f2.yml
300
+ - test/fixtures/Partner/95847aabc64e82207598dfb3713aeb1d.yml
301
+ - test/fixtures/Partner/96ba2e2a20658489c293f8e6fd40769f.yml
302
+ - test/fixtures/Partner/a63f6645159716c7a3aed70a709ab1f5.yml
303
+ - test/fixtures/Partner/bb1598ae00570e3f2105e52d46fdeddb.yml
304
+ - test/fixtures/Partner/be195130e35fce014dc79b3d01faf0ce.yml
305
+ - test/fixtures/Partner/c4b55b119a1c8e2a934d885a7b2b8893.yml
306
+ - test/fixtures/Partner/d231fa05c126b735f0140a5b8ef09524.yml
307
+ - test/fixtures/Partner/d7a2df10157c42d67020bebd23916122.yml
308
+ - test/fixtures/Partner/e5a99733d043545c90f6eab130328e46.yml
309
+ - test/fixtures/Partner/f066cd0f963e3c873e7eae28d2f654a4.yml
279
310
  - test/fixtures/PaymentType/0096aebaa9c29a7bcb381d20697704c3.yml
280
311
  - test/fixtures/PaymentType/3f67b8ff5994e0239fa2ed6e7dbfcec1.yml
281
312
  - test/fixtures/PaymentType/7c37125c353d970dbbbaaef54eaf3d90.yml