amiando 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. data/.gitignore +6 -0
  2. data/Gemfile +17 -0
  3. data/Guardfile +11 -0
  4. data/README.md +26 -0
  5. data/Rakefile +12 -0
  6. data/amiando.gemspec +27 -0
  7. data/lib/amiando.rb +59 -0
  8. data/lib/amiando/api_key.rb +35 -0
  9. data/lib/amiando/boolean.rb +33 -0
  10. data/lib/amiando/event.rb +131 -0
  11. data/lib/amiando/request.rb +38 -0
  12. data/lib/amiando/resource.rb +152 -0
  13. data/lib/amiando/result.rb +33 -0
  14. data/lib/amiando/ticket_category.rb +99 -0
  15. data/lib/amiando/ticket_shop.rb +63 -0
  16. data/lib/amiando/user.rb +148 -0
  17. data/lib/amiando/version.rb +3 -0
  18. data/test/amiando/amiando_test.rb +13 -0
  19. data/test/amiando/api_key_test.rb +58 -0
  20. data/test/amiando/boolean_test.rb +21 -0
  21. data/test/amiando/event_test.rb +141 -0
  22. data/test/amiando/resource_test.rb +68 -0
  23. data/test/amiando/result_test.rb +25 -0
  24. data/test/amiando/ticket_category_test.rb +89 -0
  25. data/test/amiando/ticket_shop_test.rb +42 -0
  26. data/test/amiando/user_test.rb +130 -0
  27. data/test/fixtures/ApiKey/018fa0a2281ec9026bc122bc346366f6.yml +60 -0
  28. data/test/fixtures/ApiKey/1f62195e173114773b3ec2613582ece9.yml +60 -0
  29. data/test/fixtures/ApiKey/76860dbafe66279f25f56cd66b3f6ba1.yml +62 -0
  30. data/test/fixtures/ApiKey/97d82801a10696aaf385bf5873034b60.yml +60 -0
  31. data/test/fixtures/ApiKey/a703d1fcec1576fa8cb4ca1c5f53f545.yml +62 -0
  32. data/test/fixtures/ApiKey/a948a98b153ab66978e37160f352bfbc.yml +60 -0
  33. data/test/fixtures/ApiKey/b7ecc9e79dd856dec661554cd00490ed.yml +62 -0
  34. data/test/fixtures/ApiKey/ded8694c21d2e1c0cec845f72ba452b5.yml +60 -0
  35. data/test/fixtures/ApiKey/fa883db60c0390aa8948098d32497015.yml +60 -0
  36. data/test/fixtures/Event/29a95cd545b2fba8121dce97a3c859e3.yml +60 -0
  37. data/test/fixtures/Event/361940ebc5f074b1d6d96c2dbeb573ab.yml +60 -0
  38. data/test/fixtures/Event/3a90bf0a17eb1d647f1496d04640797a.yml +60 -0
  39. data/test/fixtures/Event/3b8ae154ad13c7152366b79c0d34b053.yml +60 -0
  40. data/test/fixtures/Event/49877df5f8c251e3364a3560ab1ab46c.yml +60 -0
  41. data/test/fixtures/Event/50cb3d76b40032b0fa5731ce7d2ae2f6.yml +62 -0
  42. data/test/fixtures/Event/5d6016557d86e7b7ff83d07d1ef4bf44.yml +60 -0
  43. data/test/fixtures/Event/67e55d2f91fa702eb8dc612cbfa661f9.yml +60 -0
  44. data/test/fixtures/Event/813535fc6ee153c1a6d8e826f1fe04dc.yml +60 -0
  45. data/test/fixtures/Event/8eabb0f839e03cde5818397c7121e6b4.yml +61 -0
  46. data/test/fixtures/Event/96a5ccd0281a67a4bdb276516b77e756.yml +62 -0
  47. data/test/fixtures/Event/9e689bd5495dc898a710cba8e6d1d779.yml +62 -0
  48. data/test/fixtures/Event/a816e5664ff66b8e3d27b74435a0c123.yml +60 -0
  49. data/test/fixtures/Event/c5ad7e1d1c160d7d1132297892a9ec94.yml +60 -0
  50. data/test/fixtures/Event/c88c85889575508f75deee325e16e49d.yml +60 -0
  51. data/test/fixtures/Event/d6a585196f1a2a94d22f22a2140d4c07.yml +60 -0
  52. data/test/fixtures/Event/e00eebd4faf194fe592fa6e7615909b8.yml +60 -0
  53. data/test/fixtures/Event/e753b6f404795c6635856ea43b0c7d35.yml +60 -0
  54. data/test/fixtures/Event/eb341dbccefaad75aad439f10cc7d82d.yml +60 -0
  55. data/test/fixtures/Event/ebab641e40ca57f8e0883d8ea003bd78.yml +60 -0
  56. data/test/fixtures/Event/ef17351e4bbc84eb776fe16dda31e1e4.yml +62 -0
  57. data/test/fixtures/Global/505952258352958b3b59a3812372ed02.yml +60 -0
  58. data/test/fixtures/Global/d41a6ca323b5db99b4e3c06e108c52cc.yml +60 -0
  59. data/test/fixtures/TicketCategory/0412c9d453efd804e171c6ba57fd980a.yml +66 -0
  60. data/test/fixtures/TicketCategory/49877df5f8c251e3364a3560ab1ab46c.yml +60 -0
  61. data/test/fixtures/TicketCategory/4d3f8d9ff3fb728fc37aaa6e40355a00.yml +62 -0
  62. data/test/fixtures/TicketCategory/5d4fdfda01ed8193c6bbc5e089db5a4b.yml +60 -0
  63. data/test/fixtures/TicketCategory/655e7a8089d67b8eeea1176398e4b289.yml +60 -0
  64. data/test/fixtures/TicketCategory/a9b19dc83437d00ffc4603c04f78159f.yml +62 -0
  65. data/test/fixtures/TicketCategory/bee3d6eb4247fec0849d91fb2f768524.yml +60 -0
  66. data/test/fixtures/TicketCategory/c6f8563714904f006b28ac06312b107d.yml +60 -0
  67. data/test/fixtures/TicketCategory/e6076c26b1b75eec091c5b91c9f75ad9.yml +62 -0
  68. data/test/fixtures/TicketCategory/ebfcf07be91b8cb6d05156713592abc9.yml +60 -0
  69. data/test/fixtures/TicketCategory/fe63648cf867613ec93b380e06257349.yml +60 -0
  70. data/test/fixtures/TicketShop/03d35073550910e61201cf425b4ff73e.yml +60 -0
  71. data/test/fixtures/TicketShop/0524d80dc6e3fad88d49adf71ffa2ab9.yml +60 -0
  72. data/test/fixtures/TicketShop/09729fb0d9f1490bec3acfa0e6742190.yml +60 -0
  73. data/test/fixtures/TicketShop/15c36c73e9f1d3255a61a559e3b98562.yml +60 -0
  74. data/test/fixtures/TicketShop/4605dd240202cd7510bfecaf474ac615.yml +62 -0
  75. data/test/fixtures/TicketShop/5c1f5488a196f44f2c18cc186816fd42.yml +60 -0
  76. data/test/fixtures/TicketShop/71f80402a72be32fdd34074d4426b765.yml +62 -0
  77. data/test/fixtures/TicketShop/bc24338e918c6edb07a55f4d580c5af3.yml +60 -0
  78. data/test/fixtures/TicketShop/d095062bf22d235f277c979b025e5cac.yml +60 -0
  79. data/test/fixtures/TicketShop/ece5150c24e5000bf4eff8dcdb6311bb.yml +60 -0
  80. data/test/fixtures/User/0b4a60c6c962b4b3af9ab21832cd76b2.yml +60 -0
  81. data/test/fixtures/User/0f635f4bb82fdc84af205efe76f43ae0.yml +60 -0
  82. data/test/fixtures/User/1c2f2c8a5372e998f38b9d387107cee2.yml +60 -0
  83. data/test/fixtures/User/1e3ab0fb92b5b1992f35256b4be7497b.yml +71 -0
  84. data/test/fixtures/User/3bac6d29256056f2b9a1ea6fad26966d.yml +60 -0
  85. data/test/fixtures/User/3ffaba64188557400a8678dbefd75990.yml +60 -0
  86. data/test/fixtures/User/5a26c7f9edf6d6027b19b57feda4a96f.yml +60 -0
  87. data/test/fixtures/User/5c17b4b5287f5d0ba390e25e99cf2270.yml +49 -0
  88. data/test/fixtures/User/6501a4db53a97afe6f7b9afeeb996888.yml +60 -0
  89. data/test/fixtures/User/6ad0dd77081f413e3df25d6a625d38cd.yml +60 -0
  90. data/test/fixtures/User/7d493f7758d9795ad522bc827cb51b77.yml +60 -0
  91. data/test/fixtures/User/89e6cb6ae39e29a154c99e0e33bb1b91.yml +60 -0
  92. data/test/fixtures/User/90a3bfe214f17305e356ad3f1a9c9ce7.yml +60 -0
  93. data/test/fixtures/User/92ad6537c8be5aab7cbd778d424f4944.yml +60 -0
  94. data/test/fixtures/User/9485b68940997e23e3721a413d4fbdd5.yml +49 -0
  95. data/test/fixtures/User/98348fe6fbecb7916faadd835916d94d.yml +60 -0
  96. data/test/fixtures/User/b63d7aa4703a3140b4d9884e9f302362.yml +60 -0
  97. data/test/fixtures/User/b8c3fd04d7bd0925c3ccd3a3978ab8e6.yml +49 -0
  98. data/test/fixtures/User/baa28f50439b903e423dbdf918fff20b.yml +62 -0
  99. data/test/fixtures/User/e51278f9f771be0c6c3ac0e4ee1b6459.yml +59 -0
  100. data/test/fixtures/User/eb30a195ac7829d506954f472e9e6dea.yml +60 -0
  101. data/test/support/factory.rb +45 -0
  102. data/test/support/hydra_cache.rb +59 -0
  103. data/test/test_helper.rb +36 -0
  104. metadata +330 -0
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 2.156946
3
+ body: "{\"id\":349023,\"success\":true}"
4
+ code: 201
5
+ connect_time: 0.975469
6
+ curl_error_message: No error
7
+ curl_return_code: 0
8
+ effective_url: https://test.amiando.com/api/event/create?version=1&format=json&apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3
9
+ first_header_line: HTTP/1.1 201 Created
10
+ headers: |
11
+ HTTP/1.1 201 Created
12
+ Date: Mon, 24 Oct 2011 14:30:44 GMT
13
+ Server: Apache/2.0.55 (Red Hat)
14
+ Set-Cookie: JSESSIONID=0034E586AAA69C8DD802776CECE8AACD.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=0034E586AAA69C8DD802776CECE8AACD.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=WHF1QzNTMFo5UFlUSm5iMzoxMzIwNjc2NDMwMzk3OjY2MWUxZGFjNmMyYmFhYmJlZTkxNjcyZTFiODUzNzZh; Expires=Sat, 22-Oct-2016 14:33:50 GMT; Path=/
21
+ Accept-Ranges: bytes
22
+ Cache-Control: max-age=7200
23
+ Expires: Mon, 24 Oct 2011 16:30:44 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: Mon, 24 Oct 2011 14:30:44 GMT
37
+ Accept-Ranges: bytes
38
+ Server: Apache/2.0.55 (Red Hat)
39
+ Set-Cookie:
40
+ - JSESSIONID=0034E586AAA69C8DD802776CECE8AACD.web01; Path=/; Secure
41
+ - JSESSIONID=0034E586AAA69C8DD802776CECE8AACD.web01; Path=/
42
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=WHF1QzNTMFo5UFlUSm5iMzoxMzIwNjc2NDMwMzk3OjY2MWUxZGFjNmMyYmFhYmJlZTkxNjcyZTFiODUzNzZh; Expires=Sat, 22-Oct-2016 14:33:50 GMT; Path=/
43
+ Expires: Mon, 24 Oct 2011 16:30:44 GMT
44
+ Cache-Control: max-age=7200
45
+ Accept-Charset: utf-8
46
+ http_version:
47
+ mock: false
48
+ name_lookup_time: 0.631201
49
+ pretransfer_time: 2.156948
50
+ request: |-
51
+ :method => :post,
52
+ :url => https://test.amiando.com/api/event/create?version=1&format=json&apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3,
53
+ :params => {:hostId=>256142272, :selectedDate=>"1970-01-01T01:00:00+01:00", :title=>"Secret title", :identifier=>"event-ticketshop-find-1", :country=>"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: 3.307151
59
+ status_message: Created
60
+ time: 3.307235
@@ -0,0 +1,62 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 0.29541
3
+ body: "{\"errors\":[\"com.amiando.api.rest.InvalidResourceId\"],\"success\":false}"
4
+ code: 400
5
+ connect_time: 0.143496
6
+ curl_error_message: No error
7
+ curl_return_code: 0
8
+ effective_url: https://test.amiando.com/api/event/ticketShop?apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3&format=json&version=1
9
+ first_header_line: HTTP/1.1 400 Bad Request
10
+ headers: |
11
+ HTTP/1.1 400 Bad Request
12
+ Date: Mon, 24 Oct 2011 14:56:49 GMT
13
+ Server: Apache/2.0.55 (Red Hat)
14
+ Set-Cookie: JSESSIONID=1D63E0D86ABC14C107D77BF869CCE2B5.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=1D63E0D86ABC14C107D77BF869CCE2B5.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=NkpzUm1vOUZlZVo1aGlBeDoxMzIwNjc3OTk1Nzg2OjcwZWYzYzE0NmFkNGY3ODZiZTgyZTk5MGUzZjExNTRj; Expires=Sat, 22-Oct-2016 14:59:55 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: Mon, 24 Oct 2011 16:56:49 GMT
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: Accept-Charset,Accept-Encoding,Accept-Language,Accept,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: Mon, 24 Oct 2011 14:56:49 GMT
38
+ Accept-Ranges: bytes
39
+ Server: Apache/2.0.55 (Red Hat)
40
+ Set-Cookie:
41
+ - JSESSIONID=1D63E0D86ABC14C107D77BF869CCE2B5.web01; Path=/; Secure
42
+ - JSESSIONID=1D63E0D86ABC14C107D77BF869CCE2B5.web01; Path=/
43
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=NkpzUm1vOUZlZVo1aGlBeDoxMzIwNjc3OTk1Nzg2OjcwZWYzYzE0NmFkNGY3ODZiZTgyZTk5MGUzZjExNTRj; Expires=Sat, 22-Oct-2016 14:59:55 GMT; Path=/
44
+ Expires: Mon, 24 Oct 2011 16:56:49 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: 2.6e-05
51
+ pretransfer_time: 0.295412
52
+ request: |-
53
+ :method => :get,
54
+ :url => https://test.amiando.com/api/event/ticketShop?apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3&format=json&version=1,
55
+ :params => {:version=>1, :format=>:json, :apikey=>"5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3"},
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.60924
61
+ status_message: Bad Request
62
+ time: 0.609343
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 2.361202
3
+ body: "{\"ticketShop\":{\"shipmentFeeInclusive\":false,\"showAvailableTickets\":true,\"numTicketsChecked\":0,\"ticketBaseFee\":99,\"productDisagio\":590,\"currency\":\"EUR\",\"id\":243392,\"totalFees\":0,\"totalIncome\":0,\"cancelationPossible\":false,\"collectUserData\":false,\"feeInclusive\":false,\"numTicketsSold\":0,\"maxPossibleNumberOfParticipants\":0,\"disagio\":590,\"commercial\":false},\"success\":true}"
4
+ code: 200
5
+ connect_time: 0.075911
6
+ curl_error_message: No error
7
+ curl_return_code: 0
8
+ effective_url: https://test.amiando.com/api/event/349023/ticketShop?apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3&format=json&version=1
9
+ first_header_line: HTTP/1.1 200 OK
10
+ headers: |
11
+ HTTP/1.1 200 OK
12
+ Date: Mon, 24 Oct 2011 14:32:50 GMT
13
+ Server: Apache/2.0.55 (Red Hat)
14
+ Set-Cookie: JSESSIONID=35353A9C1FBBEF07151FE96464808458.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=35353A9C1FBBEF07151FE96464808458.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=RGFYSnBsNHg3cXE3NlJDSToxMzIwNjc2NTU2MjI2OjBjY2VlN2RkZDY4YTZmMDFkYzRjYmQ4ZGIzYmYyNTcz; Expires=Sat, 22-Oct-2016 14:35:56 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: Mon, 24 Oct 2011 16:32:50 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: Mon, 24 Oct 2011 14:32:50 GMT
37
+ Accept-Ranges: bytes
38
+ Server: Apache/2.0.55 (Red Hat)
39
+ Set-Cookie:
40
+ - JSESSIONID=35353A9C1FBBEF07151FE96464808458.web01; Path=/; Secure
41
+ - JSESSIONID=35353A9C1FBBEF07151FE96464808458.web01; Path=/
42
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=RGFYSnBsNHg3cXE3NlJDSToxMzIwNjc2NTU2MjI2OjBjY2VlN2RkZDY4YTZmMDFkYzRjYmQ4ZGIzYmYyNTcz; Expires=Sat, 22-Oct-2016 14:35:56 GMT; Path=/
43
+ Expires: Mon, 24 Oct 2011 16:32:50 GMT
44
+ Cache-Control: max-age=7200
45
+ Accept-Charset: utf-8
46
+ http_version:
47
+ mock: false
48
+ name_lookup_time: 0.003244
49
+ pretransfer_time: 2.361204
50
+ request: |-
51
+ :method => :get,
52
+ :url => https://test.amiando.com/api/event/349023/ticketShop?apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3&format=json&version=1,
53
+ :params => {:apikey=>"5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3", :version=>1, :format=>:json},
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: 2.605733
59
+ status_message: OK
60
+ time: 2.667505
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 0.8026
3
+ body: "{\"errors\":[\"com.amiando.api.rest.ObjectNotFound\"],\"success\":false}"
4
+ code: 404
5
+ connect_time: 0.086364
6
+ curl_error_message: No error
7
+ curl_return_code: 0
8
+ effective_url: https://test.amiando.com/api/user/349023?apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3&format=json&version=1
9
+ first_header_line: HTTP/1.1 404 Not Found
10
+ headers: |
11
+ HTTP/1.1 404 Not Found
12
+ Date: Mon, 24 Oct 2011 14:32:40 GMT
13
+ Server: Apache/2.0.55 (Red Hat)
14
+ Set-Cookie: JSESSIONID=DEDA16533DD2532C6DE5BE715C0FEFCE.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=DEDA16533DD2532C6DE5BE715C0FEFCE.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=Qm5kakM4aGd3RkVIREk1RToxMzIwNjc2NTQ2Mzk2OjJiMGNkM2NiNWQ3NTk0MzU2NTBiZWIxNTY2N2I3YWFm; Expires=Sat, 22-Oct-2016 14:35:46 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: Mon, 24 Oct 2011 16:32:40 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: Mon, 24 Oct 2011 14:32:40 GMT
37
+ Accept-Ranges: bytes
38
+ Server: Apache/2.0.55 (Red Hat)
39
+ Set-Cookie:
40
+ - JSESSIONID=DEDA16533DD2532C6DE5BE715C0FEFCE.web01; Path=/; Secure
41
+ - JSESSIONID=DEDA16533DD2532C6DE5BE715C0FEFCE.web01; Path=/
42
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=Qm5kakM4aGd3RkVIREk1RToxMzIwNjc2NTQ2Mzk2OjJiMGNkM2NiNWQ3NTk0MzU2NTBiZWIxNTY2N2I3YWFm; Expires=Sat, 22-Oct-2016 14:35:46 GMT; Path=/
43
+ Expires: Mon, 24 Oct 2011 16:32:40 GMT
44
+ Cache-Control: max-age=7200
45
+ Accept-Charset: utf-8
46
+ http_version:
47
+ mock: false
48
+ name_lookup_time: 0.003171
49
+ pretransfer_time: 0.802602
50
+ request: |-
51
+ :method => :get,
52
+ :url => https://test.amiando.com/api/user/349023?apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3&format=json&version=1,
53
+ :params => {:apikey=>"5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3", :version=>1, :format=>:json},
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.90114
59
+ status_message: Not Found
60
+ time: 0.901184
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 5.0e-05
3
+ body: "{\"ticketShop\":{\"shipmentFeeInclusive\":true,\"showAvailableTickets\":true,\"numTicketsChecked\":0,\"ticketBaseFee\":99,\"productDisagio\":590,\"currency\":\"USD\",\"id\":243398,\"totalFees\":0,\"totalIncome\":0,\"cancelationPossible\":false,\"collectUserData\":false,\"feeInclusive\":true,\"numTicketsSold\":0,\"maxPossibleNumberOfParticipants\":0,\"disagio\":590,\"commercial\":false},\"success\":true}"
4
+ code: 200
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/event/349029/ticketShop?apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3&format=json&version=1
9
+ first_header_line: HTTP/1.1 200 OK
10
+ headers: |
11
+ HTTP/1.1 200 OK
12
+ Date: Mon, 24 Oct 2011 15:02:10 GMT
13
+ Server: Apache/2.0.55 (Red Hat)
14
+ Set-Cookie: JSESSIONID=E8C74F79AFE45702EB47957D44E14572.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=E8C74F79AFE45702EB47957D44E14572.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=UUkzVlZMY1RxRnZ6ZDVJbzoxMzIwNjc4MzE2NzE4OjZhNmZhMjIzNDE0YTIxN2EwZjQyYmEzMjg3MDhkNjM4; Expires=Sat, 22-Oct-2016 15:05:16 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: Mon, 24 Oct 2011 17:02:10 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: Mon, 24 Oct 2011 15:02:10 GMT
37
+ Accept-Ranges: bytes
38
+ Server: Apache/2.0.55 (Red Hat)
39
+ Set-Cookie:
40
+ - JSESSIONID=E8C74F79AFE45702EB47957D44E14572.web01; Path=/; Secure
41
+ - JSESSIONID=E8C74F79AFE45702EB47957D44E14572.web01; Path=/
42
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=UUkzVlZMY1RxRnZ6ZDVJbzoxMzIwNjc4MzE2NzE4OjZhNmZhMjIzNDE0YTIxN2EwZjQyYmEzMjg3MDhkNjM4; Expires=Sat, 22-Oct-2016 15:05:16 GMT; Path=/
43
+ Expires: Mon, 24 Oct 2011 17:02:10 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.6e-05
50
+ request: |-
51
+ :method => :get,
52
+ :url => https://test.amiando.com/api/event/349029/ticketShop?apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3&format=json&version=1,
53
+ :params => {:version=>1, :format=>:json, :apikey=>"5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3"},
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.29796
59
+ status_message: OK
60
+ time: 0.298008
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 2.477165
3
+ body: "{\"id\":256142234,\"success\":true}"
4
+ code: 201
5
+ connect_time: 0.880775
6
+ curl_error_message: No error
7
+ curl_return_code: 0
8
+ effective_url: https://test.amiando.com/api/user/create?apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3&format=json&version=1
9
+ first_header_line: HTTP/1.1 201 Created
10
+ headers: |
11
+ HTTP/1.1 201 Created
12
+ Date: Mon, 24 Oct 2011 09:45:12 GMT
13
+ Server: Apache/2.0.55 (Red Hat)
14
+ Set-Cookie: JSESSIONID=752555FDD5E02AA6F366CB4772A4423B.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=752555FDD5E02AA6F366CB4772A4423B.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=VVRYR0lCVnhzeW1vNkZaUToxMzIwNjU5Mjk4NDA5OmFhMTkwNjAyNTUzNDg2M2I4MTM0NTVkM2Y0ZmQ0NmNi; Expires=Sat, 22-Oct-2016 09:48:18 GMT; Path=/
21
+ Accept-Ranges: bytes
22
+ Cache-Control: max-age=7200
23
+ Expires: Mon, 24 Oct 2011 11:45:12 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: Mon, 24 Oct 2011 09:45:12 GMT
37
+ Accept-Ranges: bytes
38
+ Server: Apache/2.0.55 (Red Hat)
39
+ Set-Cookie:
40
+ - JSESSIONID=752555FDD5E02AA6F366CB4772A4423B.web01; Path=/; Secure
41
+ - JSESSIONID=752555FDD5E02AA6F366CB4772A4423B.web01; Path=/
42
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=VVRYR0lCVnhzeW1vNkZaUToxMzIwNjU5Mjk4NDA5OmFhMTkwNjAyNTUzNDg2M2I4MTM0NTVkM2Y0ZmQ0NmNi; Expires=Sat, 22-Oct-2016 09:48:18 GMT; Path=/
43
+ Expires: Mon, 24 Oct 2011 11:45:12 GMT
44
+ Cache-Control: max-age=7200
45
+ Accept-Charset: utf-8
46
+ http_version:
47
+ mock: false
48
+ name_lookup_time: 0.758676
49
+ pretransfer_time: 2.477168
50
+ request: |-
51
+ :method => :post,
52
+ :url => https://test.amiando.com/api/user/create?apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3&format=json&version=1,
53
+ :params => {:language=>"es", :password=>"123456", :firstName=>"Jorge", :username=>"jorgellop-find-1@example.com", :lastName=>"Llop"},
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: 3.48293
59
+ status_message: Created
60
+ time: 3.660637
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 0.423011
3
+ body: "{\"id\":256142067,\"success\":true}"
4
+ code: 201
5
+ connect_time: 0.067114
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=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3
9
+ first_header_line: HTTP/1.1 201 Created
10
+ headers: |
11
+ HTTP/1.1 201 Created
12
+ Date: Fri, 21 Oct 2011 14:59:14 GMT
13
+ Server: Apache/2.0.55 (Red Hat)
14
+ Set-Cookie: JSESSIONID=2A7AFD164C76D567F33BC851B5577172.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=2A7AFD164C76D567F33BC851B5577172.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=NGhWRHp6emZvdmZWVkRlZjoxMzIwNDE4OTMxNTk2OjMxNmJkMTM2Nzg0NjUyYzEyM2IxNDcyNTJjMzJmMDY4; Expires=Wed, 19-Oct-2016 15:02:11 GMT; Path=/
21
+ Accept-Ranges: bytes
22
+ Cache-Control: max-age=7200
23
+ Expires: Fri, 21 Oct 2011 16:59:14 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: Fri, 21 Oct 2011 14:59:14 GMT
37
+ Accept-Ranges: bytes
38
+ Server: Apache/2.0.55 (Red Hat)
39
+ Set-Cookie:
40
+ - JSESSIONID=2A7AFD164C76D567F33BC851B5577172.web01; Path=/; Secure
41
+ - JSESSIONID=2A7AFD164C76D567F33BC851B5577172.web01; Path=/
42
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=NGhWRHp6emZvdmZWVkRlZjoxMzIwNDE4OTMxNTk2OjMxNmJkMTM2Nzg0NjUyYzEyM2IxNDcyNTJjMzJmMDY4; Expires=Wed, 19-Oct-2016 15:02:11 GMT; Path=/
43
+ Expires: Fri, 21 Oct 2011 16:59:14 GMT
44
+ Cache-Control: max-age=7200
45
+ Accept-Charset: utf-8
46
+ http_version:
47
+ mock: false
48
+ name_lookup_time: 0.003888
49
+ pretransfer_time: 0.423013
50
+ request: |-
51
+ :method => :post,
52
+ :url => https://test.amiando.com/api/user/create?version=1&format=json&apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3,
53
+ :params => {:password=>"123456", :firstName=>"Jorge", :username=>"jorgellop-exists-1@example.com", :lastName=>"Llop", :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.811495
59
+ status_message: Created
60
+ time: 0.811611
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 0.591336
3
+ body: "{\"id\":256142296,\"success\":true}"
4
+ code: 201
5
+ connect_time: 0.196749
6
+ curl_error_message: No error
7
+ curl_return_code: 0
8
+ effective_url: https://test.amiando.com/api/user/create?apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3&format=json&version=1
9
+ first_header_line: HTTP/1.1 201 Created
10
+ headers: |
11
+ HTTP/1.1 201 Created
12
+ Date: Mon, 24 Oct 2011 11:56:12 GMT
13
+ Server: Apache/2.0.55 (Red Hat)
14
+ Set-Cookie: JSESSIONID=B4E4771B0D993C84EAE33C2AC6F4E029.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=B4E4771B0D993C84EAE33C2AC6F4E029.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=RXhLUmJCc05kSHZ3NGlWQToxMzIwNjY3MTU4MDc3OmU1MDA5MmMzZTM1NzA5MWIyNzA3ZjYxNjczZDNlYzM1; Expires=Sat, 22-Oct-2016 11:59:18 GMT; Path=/
21
+ Accept-Ranges: bytes
22
+ Cache-Control: max-age=7200
23
+ Expires: Mon, 24 Oct 2011 13:56:12 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: Mon, 24 Oct 2011 11:56:12 GMT
37
+ Accept-Ranges: bytes
38
+ Server: Apache/2.0.55 (Red Hat)
39
+ Set-Cookie:
40
+ - JSESSIONID=B4E4771B0D993C84EAE33C2AC6F4E029.web01; Path=/; Secure
41
+ - JSESSIONID=B4E4771B0D993C84EAE33C2AC6F4E029.web01; Path=/
42
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=RXhLUmJCc05kSHZ3NGlWQToxMzIwNjY3MTU4MDc3OmU1MDA5MmMzZTM1NzA5MWIyNzA3ZjYxNjczZDNlYzM1; Expires=Sat, 22-Oct-2016 11:59:18 GMT; Path=/
43
+ Expires: Mon, 24 Oct 2011 13:56:12 GMT
44
+ Cache-Control: max-age=7200
45
+ Accept-Charset: utf-8
46
+ http_version:
47
+ mock: false
48
+ name_lookup_time: 0.058868
49
+ pretransfer_time: 0.591538
50
+ request: |-
51
+ :method => :post,
52
+ :url => https://test.amiando.com/api/user/create?apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3&format=json&version=1,
53
+ :params => {:language=>"es", :lastName=>"Llop", :password=>"12345", :username=>"jorgellop-request-permission-1@example.com", :firstName=>"Jorge"},
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.904676
59
+ status_message: Created
60
+ time: 0.904713