aylien_text_api 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/LICENSE +1 -1
  4. data/lib/aylien_text_api.rb +1 -1
  5. data/lib/aylien_text_api/client.rb +57 -13
  6. data/lib/aylien_text_api/configuration.rb +14 -3
  7. data/lib/aylien_text_api/connection.rb +4 -2
  8. data/lib/aylien_text_api/error.rb +1 -1
  9. data/lib/aylien_text_api/version.rb +2 -2
  10. data/spec/fixtures/aylien_text_api/client/classify_with_invalid_client.yml +7 -5
  11. data/spec/fixtures/aylien_text_api/client/classify_with_invalid_params.yml +16 -8
  12. data/spec/fixtures/aylien_text_api/client/classify_with_text.yml +25 -16
  13. data/spec/fixtures/aylien_text_api/client/classify_with_unauthenticated_client.yml +7 -5
  14. data/spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml +115 -67
  15. data/spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml +25 -16
  16. data/spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml +115 -67
  17. data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml +7 -5
  18. data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml +16 -8
  19. data/spec/fixtures/aylien_text_api/client/concepts_with_text.yml +16 -8
  20. data/spec/fixtures/aylien_text_api/client/concepts_with_unauthenticated_client.yml +7 -5
  21. data/spec/fixtures/aylien_text_api/client/concepts_with_valid_url.yml +109 -32
  22. data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml +16 -8
  23. data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml +109 -32
  24. data/spec/fixtures/aylien_text_api/client/entities_with_invalid_client.yml +7 -5
  25. data/spec/fixtures/aylien_text_api/client/entities_with_invalid_params.yml +16 -8
  26. data/spec/fixtures/aylien_text_api/client/entities_with_text.yml +16 -8
  27. data/spec/fixtures/aylien_text_api/client/entities_with_unauthenticated_client.yml +7 -5
  28. data/spec/fixtures/aylien_text_api/client/entities_with_valid_url.yml +466 -271
  29. data/spec/fixtures/aylien_text_api/client/entities_with_value_as_text.yml +16 -8
  30. data/spec/fixtures/aylien_text_api/client/entities_with_value_as_valid_url.yml +465 -271
  31. data/spec/fixtures/aylien_text_api/client/extract_with_invalid_client.yml +7 -5
  32. data/spec/fixtures/aylien_text_api/client/extract_with_invalid_params.yml +16 -8
  33. data/spec/fixtures/aylien_text_api/client/extract_with_unauthenticated_client.yml +7 -5
  34. data/spec/fixtures/aylien_text_api/client/extract_with_valid_url.yml +267 -154
  35. data/spec/fixtures/aylien_text_api/client/extract_with_value_as_text.yml +16 -8
  36. data/spec/fixtures/aylien_text_api/client/extract_with_value_as_valid_url.yml +267 -154
  37. data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_client.yml +7 -5
  38. data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_params.yml +16 -8
  39. data/spec/fixtures/aylien_text_api/client/hashtags_with_text.yml +31 -17
  40. data/spec/fixtures/aylien_text_api/client/hashtags_with_unauthenticated_client.yml +7 -5
  41. data/spec/fixtures/aylien_text_api/client/hashtags_with_valid_url.yml +51 -27
  42. data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_text.yml +32 -17
  43. data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_valid_url.yml +51 -27
  44. data/spec/fixtures/aylien_text_api/client/language_with_invalid_client.yml +7 -5
  45. data/spec/fixtures/aylien_text_api/client/language_with_invalid_params.yml +16 -8
  46. data/spec/fixtures/aylien_text_api/client/language_with_unauthenticated_client.yml +7 -5
  47. data/spec/fixtures/aylien_text_api/client/language_with_valid_text.yml +21 -9
  48. data/spec/fixtures/aylien_text_api/client/language_with_valid_url.yml +46 -26
  49. data/spec/fixtures/aylien_text_api/client/language_with_value_as_text.yml +21 -9
  50. data/spec/fixtures/aylien_text_api/client/language_with_value_as_valid_url.yml +46 -26
  51. data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_client.yml +38 -0
  52. data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_params.yml +62 -0
  53. data/spec/fixtures/aylien_text_api/client/microformats_with_unauthenticated_client.yml +42 -0
  54. data/spec/fixtures/aylien_text_api/client/microformats_with_valid_url.yml +84 -0
  55. data/spec/fixtures/aylien_text_api/client/microformats_with_value_as_valid_url.yml +84 -0
  56. data/spec/fixtures/aylien_text_api/client/related_with_invalid_client.yml +7 -5
  57. data/spec/fixtures/aylien_text_api/client/related_with_invalid_params.yml +17 -9
  58. data/spec/fixtures/aylien_text_api/client/related_with_phrase.yml +80 -28
  59. data/spec/fixtures/aylien_text_api/client/related_with_unauthenticated_client.yml +7 -5
  60. data/spec/fixtures/aylien_text_api/client/related_with_value_as_phrase.yml +80 -28
  61. data/spec/fixtures/aylien_text_api/client/related_with_value_as_valid_url.yml +16 -8
  62. data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_client.yml +7 -5
  63. data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_params.yml +16 -8
  64. data/spec/fixtures/aylien_text_api/client/sentiment_with_text.yml +23 -21
  65. data/spec/fixtures/aylien_text_api/client/sentiment_with_unauthenticated_client.yml +7 -5
  66. data/spec/fixtures/aylien_text_api/client/sentiment_with_valid_url.yml +49 -26
  67. data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_text.yml +23 -21
  68. data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_valid_url.yml +49 -26
  69. data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_client.yml +7 -5
  70. data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_params.yml +17 -9
  71. data/spec/fixtures/aylien_text_api/client/summarize_with_title_and_text.yml +20 -46
  72. data/spec/fixtures/aylien_text_api/client/summarize_with_unauthenticated_client.yml +7 -5
  73. data/spec/fixtures/aylien_text_api/client/summarize_with_valid_url.yml +61 -34
  74. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_title.yml +20 -46
  75. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_without_title.yml +17 -9
  76. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_valid_url.yml +61 -34
  77. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_client.yml +38 -0
  78. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_params.yml +57 -0
  79. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_text.yml +53 -0
  80. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_unauthenticated_client.yml +42 -0
  81. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_valid_url.yml +96 -0
  82. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_text.yml +57 -0
  83. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_valid_url.yml +96 -0
  84. data/spec/lib/aylien_text_api/client_spec.rb +13 -3
  85. data/spec/lib/aylien_text_api/microformats.rb +66 -0
  86. data/spec/lib/aylien_text_api/unsupervised_classify.rb +87 -0
  87. metadata +105 -5
@@ -7,10 +7,12 @@ http_interactions:
7
7
  encoding: US-ASCII
8
8
  string: phrase=android
9
9
  headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
10
12
  Accept:
11
- - ! '*/*'
13
+ - "*/*"
12
14
  User-Agent:
13
- - Aylien Text API Ruby Gem 0.0.1
15
+ - Aylien Text API Ruby Gem 0.1.0
14
16
  Content-Type:
15
17
  - application/x-www-form-urlencoded
16
18
  App-Id:
@@ -25,7 +27,7 @@ http_interactions:
25
27
  Server:
26
28
  - openresty/1.5.12.1
27
29
  Date:
28
- - Tue, 02 Dec 2014 18:16:23 GMT
30
+ - Tue, 10 Feb 2015 14:06:04 GMT
29
31
  Content-Type:
30
32
  - text/plain; charset=us-ascii
31
33
  Transfer-Encoding:
@@ -33,8 +35,8 @@ http_interactions:
33
35
  Connection:
34
36
  - keep-alive
35
37
  body:
36
- encoding: US-ASCII
38
+ encoding: UTF-8
37
39
  string: Authentication failed
38
40
  http_version:
39
- recorded_at: Tue, 02 Dec 2014 18:15:21 GMT
41
+ recorded_at: Tue, 10 Feb 2015 14:05:49 GMT
40
42
  recorded_with: VCR 2.9.3
@@ -7,16 +7,18 @@ http_interactions:
7
7
  encoding: US-ASCII
8
8
  string: phrase=android
9
9
  headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
10
12
  Accept:
11
- - ! '*/*'
13
+ - "*/*"
12
14
  User-Agent:
13
- - Aylien Text API Ruby Gem 0.0.1
15
+ - Aylien Text API Ruby Gem 0.1.0
14
16
  Content-Type:
15
17
  - application/x-www-form-urlencoded
16
18
  App-Id:
17
- - <PASSWORD>
19
+ - "<PASSWORD>"
18
20
  App-Key:
19
- - <PASSWORD>
21
+ - "<PASSWORD>"
20
22
  response:
21
23
  status:
22
24
  code: 200
@@ -25,36 +27,86 @@ http_interactions:
25
27
  Server:
26
28
  - openresty/1.5.12.1
27
29
  Date:
28
- - Tue, 02 Dec 2014 18:16:25 GMT
30
+ - Tue, 10 Feb 2015 14:06:06 GMT
29
31
  Content-Type:
30
32
  - application/json;charset=UTF-8
31
33
  Content-Length:
32
34
  - '1403'
33
35
  Connection:
34
36
  - keep-alive
37
+ X-Ratelimit-Limit:
38
+ - '207000'
39
+ X-Ratelimit-Remaining:
40
+ - '205386'
41
+ X-Ratelimit-Reset:
42
+ - '1423612800'
35
43
  body:
36
- encoding: US-ASCII
37
- string: ! "{\n \"phrase\": \"android\",\n \"related\": [{\n \"phrase\":
38
- \"ios\",\n \"distance\": 0.8744090795516968\n }, {\n \"phrase\": \"iphone\",\n
39
- \ \"distance\": 0.8465747237205505\n }, {\n \"phrase\": \"iphone ipad\",\n
40
- \ \"distance\": 0.8268404006958008\n }, {\n \"phrase\": \"blackberry
41
- playbook\",\n \"distance\": 0.8240213394165039\n }, {\n \"phrase\":
42
- \"symbian\",\n \"distance\": 0.8222286701202393\n }, {\n \"phrase\":
43
- \"smartphones\",\n \"distance\": 0.8179833889007568\n }, {\n \"phrase\":
44
- \"smartphone\",\n \"distance\": 0.8097701072692871\n }, {\n \"phrase\":
45
- \"froyo\",\n \"distance\": 0.7987280488014221\n }, {\n \"phrase\":
46
- \"webos\",\n \"distance\": 0.7951686382293701\n }, {\n \"phrase\":
47
- \"ipad\",\n \"distance\": 0.7910612225532532\n }, {\n \"phrase\": \"app\",\n
48
- \ \"distance\": 0.7821643352508545\n }, {\n \"phrase\": \"blackberry\",\n
49
- \ \"distance\": 0.7789986729621887\n }, {\n \"phrase\": \"jelly bean\",\n
50
- \ \"distance\": 0.7675120830535889\n }, {\n \"phrase\": \"ipod touch\",\n
51
- \ \"distance\": 0.762033998966217\n }, {\n \"phrase\": \"symbian s60\",\n
52
- \ \"distance\": 0.7563616633415222\n }, {\n \"phrase\": \"kitkat\",\n
53
- \ \"distance\": 0.7541030645370483\n }, {\n \"phrase\": \"iphones\",\n
54
- \ \"distance\": 0.7453151345252991\n }, {\n \"phrase\": \"cyanogenmod\",\n
55
- \ \"distance\": 0.7441946864128113\n }, {\n \"phrase\": \"jailbroken\",\n
56
- \ \"distance\": 0.7417730093002319\n }, {\n \"phrase\": \"tizen\",\n
57
- \ \"distance\": 0.7413533329963684\n }]\n}"
44
+ encoding: UTF-8
45
+ string: |-
46
+ {
47
+ "phrase": "android",
48
+ "related": [{
49
+ "phrase": "ios",
50
+ "distance": 0.8744090795516968
51
+ }, {
52
+ "phrase": "iphone",
53
+ "distance": 0.8465747237205505
54
+ }, {
55
+ "phrase": "iphone ipad",
56
+ "distance": 0.8268404006958008
57
+ }, {
58
+ "phrase": "blackberry playbook",
59
+ "distance": 0.8240213394165039
60
+ }, {
61
+ "phrase": "symbian",
62
+ "distance": 0.8222286701202393
63
+ }, {
64
+ "phrase": "smartphones",
65
+ "distance": 0.8179833889007568
66
+ }, {
67
+ "phrase": "smartphone",
68
+ "distance": 0.8097701072692871
69
+ }, {
70
+ "phrase": "froyo",
71
+ "distance": 0.7987280488014221
72
+ }, {
73
+ "phrase": "webos",
74
+ "distance": 0.7951686382293701
75
+ }, {
76
+ "phrase": "ipad",
77
+ "distance": 0.7910612225532532
78
+ }, {
79
+ "phrase": "app",
80
+ "distance": 0.7821643352508545
81
+ }, {
82
+ "phrase": "blackberry",
83
+ "distance": 0.7789986729621887
84
+ }, {
85
+ "phrase": "jelly bean",
86
+ "distance": 0.7675120830535889
87
+ }, {
88
+ "phrase": "ipod touch",
89
+ "distance": 0.762033998966217
90
+ }, {
91
+ "phrase": "symbian s60",
92
+ "distance": 0.7563616633415222
93
+ }, {
94
+ "phrase": "kitkat",
95
+ "distance": 0.7541030645370483
96
+ }, {
97
+ "phrase": "iphones",
98
+ "distance": 0.7453151345252991
99
+ }, {
100
+ "phrase": "cyanogenmod",
101
+ "distance": 0.7441946864128113
102
+ }, {
103
+ "phrase": "jailbroken",
104
+ "distance": 0.7417730093002319
105
+ }, {
106
+ "phrase": "tizen",
107
+ "distance": 0.7413533329963684
108
+ }]
109
+ }
58
110
  http_version:
59
- recorded_at: Tue, 02 Dec 2014 18:15:22 GMT
111
+ recorded_at: Tue, 10 Feb 2015 14:05:51 GMT
60
112
  recorded_with: VCR 2.9.3
@@ -7,16 +7,18 @@ http_interactions:
7
7
  encoding: US-ASCII
8
8
  string: url=http%3A%2F%2Fwww.bbc.com%2Fsport%2F0%2Ffootball%2F25912393
9
9
  headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
10
12
  Accept:
11
- - ! '*/*'
13
+ - "*/*"
12
14
  User-Agent:
13
- - Aylien Text API Ruby Gem 0.0.1
15
+ - Aylien Text API Ruby Gem 0.1.0
14
16
  Content-Type:
15
17
  - application/x-www-form-urlencoded
16
18
  App-Id:
17
- - <PASSWORD>
19
+ - "<PASSWORD>"
18
20
  App-Key:
19
- - <PASSWORD>
21
+ - "<PASSWORD>"
20
22
  response:
21
23
  status:
22
24
  code: 400
@@ -25,16 +27,22 @@ http_interactions:
25
27
  Server:
26
28
  - openresty/1.5.12.1
27
29
  Date:
28
- - Tue, 02 Dec 2014 18:16:26 GMT
30
+ - Tue, 10 Feb 2015 14:06:05 GMT
29
31
  Content-Type:
30
32
  - application/json;charset=UTF-8
31
33
  Content-Length:
32
34
  - '61'
33
35
  Connection:
34
36
  - keep-alive
37
+ X-Ratelimit-Limit:
38
+ - '207000'
39
+ X-Ratelimit-Remaining:
40
+ - '205388'
41
+ X-Ratelimit-Reset:
42
+ - '1423612800'
35
43
  body:
36
- encoding: US-ASCII
37
- string: ! '{"error" : "Request is missing required form field ''phrase''"}'
44
+ encoding: UTF-8
45
+ string: '{"error" : "Request is missing required form field ''phrase''"}'
38
46
  http_version:
39
- recorded_at: Tue, 02 Dec 2014 18:15:23 GMT
47
+ recorded_at: Tue, 10 Feb 2015 14:05:50 GMT
40
48
  recorded_with: VCR 2.9.3
@@ -7,10 +7,12 @@ http_interactions:
7
7
  encoding: US-ASCII
8
8
  string: text=I+really+enjoyed+using+the+Canon+Ixus+in+Madrid.%0A++++++The+Panasonic+Lumix+is+a+poor+camera%2C+but+the+Canon+Ixus+is+really+sleek.%0A++++++The+Canon+Ixus+is+much+better+than+the+Panasonic+Lumix.%0A++++++All+I+want+to+do+with+a+camera+is+point+it+and+then+just+press+the+button.%0A++++++The+Canon+Ixus+is+perfect+for+that.+You+will+soon+get+great+photos%0A++++++with+very+little+effort.+I+had+previously+returned+a+Panasonic+Lumix%0A++++++because+the+pictures+were+not+of+the+quality+I+expected.%0A++++++Spending+the+money+on+the+Canon+was+a+smart+move.%0A++++++I+would+recommend+the+Ixus+to+anyone+without+hesitation.%0A++++++Two+small+issues+to+be+pointed+out%3A+firstly%2C+the+battery%0A++++++life+is+not+fantastic.+Also%2C+the+zoom+is+not+very+powerful.%0A++++++If+your+subject+is+far+away%2C+you+should+not+expect+good+results.%0A++++++Review+made+by+John+Irving+from+Florida.
9
9
  headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
10
12
  Accept:
11
- - ! '*/*'
13
+ - "*/*"
12
14
  User-Agent:
13
- - Aylien Text API Ruby Gem 0.0.1
15
+ - Aylien Text API Ruby Gem 0.1.0
14
16
  Content-Type:
15
17
  - application/x-www-form-urlencoded
16
18
  response:
@@ -21,7 +23,7 @@ http_interactions:
21
23
  Server:
22
24
  - openresty/1.5.12.1
23
25
  Date:
24
- - Tue, 02 Dec 2014 18:15:56 GMT
26
+ - Tue, 10 Feb 2015 14:06:10 GMT
25
27
  Content-Type:
26
28
  - text/plain; charset=us-ascii
27
29
  Transfer-Encoding:
@@ -29,8 +31,8 @@ http_interactions:
29
31
  Connection:
30
32
  - keep-alive
31
33
  body:
32
- encoding: US-ASCII
34
+ encoding: UTF-8
33
35
  string: Authentication parameters missing
34
36
  http_version:
35
- recorded_at: Tue, 02 Dec 2014 18:14:53 GMT
37
+ recorded_at: Tue, 10 Feb 2015 14:05:55 GMT
36
38
  recorded_with: VCR 2.9.3
@@ -7,16 +7,18 @@ http_interactions:
7
7
  encoding: US-ASCII
8
8
  string: wrong_param=I+really+enjoyed+using+the+Canon+Ixus+in+Madrid.%0A++++++The+Panasonic+Lumix+is+a+poor+camera%2C+but+the+Canon+Ixus+is+really+sleek.%0A++++++The+Canon+Ixus+is+much+better+than+the+Panasonic+Lumix.%0A++++++All+I+want+to+do+with+a+camera+is+point+it+and+then+just+press+the+button.%0A++++++The+Canon+Ixus+is+perfect+for+that.+You+will+soon+get+great+photos%0A++++++with+very+little+effort.+I+had+previously+returned+a+Panasonic+Lumix%0A++++++because+the+pictures+were+not+of+the+quality+I+expected.%0A++++++Spending+the+money+on+the+Canon+was+a+smart+move.%0A++++++I+would+recommend+the+Ixus+to+anyone+without+hesitation.%0A++++++Two+small+issues+to+be+pointed+out%3A+firstly%2C+the+battery%0A++++++life+is+not+fantastic.+Also%2C+the+zoom+is+not+very+powerful.%0A++++++If+your+subject+is+far+away%2C+you+should+not+expect+good+results.%0A++++++Review+made+by+John+Irving+from+Florida.
9
9
  headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
10
12
  Accept:
11
- - ! '*/*'
13
+ - "*/*"
12
14
  User-Agent:
13
- - Aylien Text API Ruby Gem 0.0.1
15
+ - Aylien Text API Ruby Gem 0.1.0
14
16
  Content-Type:
15
17
  - application/x-www-form-urlencoded
16
18
  App-Id:
17
- - <PASSWORD>
19
+ - "<PASSWORD>"
18
20
  App-Key:
19
- - <PASSWORD>
21
+ - "<PASSWORD>"
20
22
  response:
21
23
  status:
22
24
  code: 400
@@ -25,16 +27,22 @@ http_interactions:
25
27
  Server:
26
28
  - openresty/1.5.12.1
27
29
  Date:
28
- - Tue, 02 Dec 2014 18:15:53 GMT
30
+ - Tue, 10 Feb 2015 14:06:08 GMT
29
31
  Content-Type:
30
32
  - application/json;charset=UTF-8
31
33
  Content-Length:
32
34
  - '70'
33
35
  Connection:
34
36
  - keep-alive
37
+ X-Ratelimit-Limit:
38
+ - '207000'
39
+ X-Ratelimit-Remaining:
40
+ - '205384'
41
+ X-Ratelimit-Reset:
42
+ - '1423612800'
35
43
  body:
36
- encoding: US-ASCII
37
- string: ! '{"error" : "requirement failed: you must either provide url or text."}'
44
+ encoding: UTF-8
45
+ string: '{"error" : "requirement failed: you must either provide url or text."}'
38
46
  http_version:
39
- recorded_at: Tue, 02 Dec 2014 18:14:50 GMT
47
+ recorded_at: Tue, 10 Feb 2015 14:05:53 GMT
40
48
  recorded_with: VCR 2.9.3
@@ -7,16 +7,18 @@ http_interactions:
7
7
  encoding: US-ASCII
8
8
  string: text=I+really+enjoyed+using+the+Canon+Ixus+in+Madrid.%0A++++++The+Panasonic+Lumix+is+a+poor+camera%2C+but+the+Canon+Ixus+is+really+sleek.%0A++++++The+Canon+Ixus+is+much+better+than+the+Panasonic+Lumix.%0A++++++All+I+want+to+do+with+a+camera+is+point+it+and+then+just+press+the+button.%0A++++++The+Canon+Ixus+is+perfect+for+that.+You+will+soon+get+great+photos%0A++++++with+very+little+effort.+I+had+previously+returned+a+Panasonic+Lumix%0A++++++because+the+pictures+were+not+of+the+quality+I+expected.%0A++++++Spending+the+money+on+the+Canon+was+a+smart+move.%0A++++++I+would+recommend+the+Ixus+to+anyone+without+hesitation.%0A++++++Two+small+issues+to+be+pointed+out%3A+firstly%2C+the+battery%0A++++++life+is+not+fantastic.+Also%2C+the+zoom+is+not+very+powerful.%0A++++++If+your+subject+is+far+away%2C+you+should+not+expect+good+results.%0A++++++Review+made+by+John+Irving+from+Florida.
9
9
  headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
10
12
  Accept:
11
- - ! '*/*'
13
+ - "*/*"
12
14
  User-Agent:
13
- - Aylien Text API Ruby Gem 0.0.1
15
+ - Aylien Text API Ruby Gem 0.1.0
14
16
  Content-Type:
15
17
  - application/x-www-form-urlencoded
16
18
  App-Id:
17
- - <PASSWORD>
19
+ - "<PASSWORD>"
18
20
  App-Key:
19
- - <PASSWORD>
21
+ - "<PASSWORD>"
20
22
  response:
21
23
  status:
22
24
  code: 200
@@ -25,29 +27,29 @@ http_interactions:
25
27
  Server:
26
28
  - openresty/1.5.12.1
27
29
  Date:
28
- - Tue, 02 Dec 2014 18:15:57 GMT
30
+ - Tue, 10 Feb 2015 14:06:09 GMT
29
31
  Content-Type:
30
32
  - application/json;charset=UTF-8
31
33
  Content-Length:
32
34
  - '1013'
33
35
  Connection:
34
36
  - keep-alive
37
+ X-Ratelimit-Limit:
38
+ - '207000'
39
+ X-Ratelimit-Remaining:
40
+ - '205382'
41
+ X-Ratelimit-Reset:
42
+ - '1423612800'
35
43
  body:
36
- encoding: US-ASCII
37
- string: ! "{\n \"text\": \"I really enjoyed using the Canon Ixus in Madrid.\\n
38
- \ The Panasonic Lumix is a poor camera, but the Canon Ixus is really sleek.\\n
39
- \ The Canon Ixus is much better than the Panasonic Lumix.\\n All
40
- I want to do with a camera is point it and then just press the button.\\n
41
- \ The Canon Ixus is perfect for that. You will soon get great photos\\n
42
- \ with very little effort. I had previously returned a Panasonic Lumix\\n
43
- \ because the pictures were not of the quality I expected.\\n Spending
44
- the money on the Canon was a smart move.\\n I would recommend the Ixus
45
- to anyone without hesitation.\\n Two small issues to be pointed out:
46
- firstly, the battery\\n life is not fantastic. Also, the zoom is not
47
- very powerful.\\n If your subject is far away, you should not expect
48
- good results.\\n Review made by John Irving from Florida.\",\n \"subjectivity\":
49
- \"subjective\",\n \"subjectivity_confidence\": 1.0,\n \"polarity\": \"positive\",\n
50
- \ \"polarity_confidence\": 0.9751552795031055\n}"
44
+ encoding: UTF-8
45
+ string: |-
46
+ {
47
+ "polarity": "positive",
48
+ "subjectivity": "subjective",
49
+ "text": "I really enjoyed using the Canon Ixus in Madrid.\n The Panasonic Lumix is a poor camera, but the Canon Ixus is really sleek.\n The Canon Ixus is much better than the Panasonic Lumix.\n All I want to do with a camera is point it and then just press the button.\n The Canon Ixus is perfect for that. You will soon get great photos\n with very little effort. I had previously returned a Panasonic Lumix\n because the pictures were not of the quality I expected.\n Spending the money on the Canon was a smart move.\n I would recommend the Ixus to anyone without hesitation.\n Two small issues to be pointed out: firstly, the battery\n life is not fantastic. Also, the zoom is not very powerful.\n If your subject is far away, you should not expect good results.\n Review made by John Irving from Florida.",
50
+ "polarity_confidence": 0.9751552795031055,
51
+ "subjectivity_confidence": 1.0
52
+ }
51
53
  http_version:
52
- recorded_at: Tue, 02 Dec 2014 18:14:54 GMT
54
+ recorded_at: Tue, 10 Feb 2015 14:05:54 GMT
53
55
  recorded_with: VCR 2.9.3
@@ -7,10 +7,12 @@ http_interactions:
7
7
  encoding: US-ASCII
8
8
  string: text=I+really+enjoyed+using+the+Canon+Ixus+in+Madrid.%0A++++++The+Panasonic+Lumix+is+a+poor+camera%2C+but+the+Canon+Ixus+is+really+sleek.%0A++++++The+Canon+Ixus+is+much+better+than+the+Panasonic+Lumix.%0A++++++All+I+want+to+do+with+a+camera+is+point+it+and+then+just+press+the+button.%0A++++++The+Canon+Ixus+is+perfect+for+that.+You+will+soon+get+great+photos%0A++++++with+very+little+effort.+I+had+previously+returned+a+Panasonic+Lumix%0A++++++because+the+pictures+were+not+of+the+quality+I+expected.%0A++++++Spending+the+money+on+the+Canon+was+a+smart+move.%0A++++++I+would+recommend+the+Ixus+to+anyone+without+hesitation.%0A++++++Two+small+issues+to+be+pointed+out%3A+firstly%2C+the+battery%0A++++++life+is+not+fantastic.+Also%2C+the+zoom+is+not+very+powerful.%0A++++++If+your+subject+is+far+away%2C+you+should+not+expect+good+results.%0A++++++Review+made+by+John+Irving+from+Florida.
9
9
  headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
10
12
  Accept:
11
- - ! '*/*'
13
+ - "*/*"
12
14
  User-Agent:
13
- - Aylien Text API Ruby Gem 0.0.1
15
+ - Aylien Text API Ruby Gem 0.1.0
14
16
  Content-Type:
15
17
  - application/x-www-form-urlencoded
16
18
  App-Id:
@@ -25,7 +27,7 @@ http_interactions:
25
27
  Server:
26
28
  - openresty/1.5.12.1
27
29
  Date:
28
- - Tue, 02 Dec 2014 18:15:56 GMT
30
+ - Tue, 10 Feb 2015 14:06:08 GMT
29
31
  Content-Type:
30
32
  - text/plain; charset=us-ascii
31
33
  Transfer-Encoding:
@@ -33,8 +35,8 @@ http_interactions:
33
35
  Connection:
34
36
  - keep-alive
35
37
  body:
36
- encoding: US-ASCII
38
+ encoding: UTF-8
37
39
  string: Authentication failed
38
40
  http_version:
39
- recorded_at: Tue, 02 Dec 2014 18:14:53 GMT
41
+ recorded_at: Tue, 10 Feb 2015 14:05:53 GMT
40
42
  recorded_with: VCR 2.9.3
@@ -7,16 +7,18 @@ http_interactions:
7
7
  encoding: US-ASCII
8
8
  string: url=http%3A%2F%2Fwww.bbc.com%2Fsport%2F0%2Ffootball%2F25912393
9
9
  headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
10
12
  Accept:
11
- - ! '*/*'
13
+ - "*/*"
12
14
  User-Agent:
13
- - Aylien Text API Ruby Gem 0.0.1
15
+ - Aylien Text API Ruby Gem 0.1.0
14
16
  Content-Type:
15
17
  - application/x-www-form-urlencoded
16
18
  App-Id:
17
- - <PASSWORD>
19
+ - "<PASSWORD>"
18
20
  App-Key:
19
- - <PASSWORD>
21
+ - "<PASSWORD>"
20
22
  response:
21
23
  status:
22
24
  code: 200
@@ -25,33 +27,54 @@ http_interactions:
25
27
  Server:
26
28
  - openresty/1.5.12.1
27
29
  Date:
28
- - Tue, 02 Dec 2014 18:15:55 GMT
30
+ - Tue, 10 Feb 2015 14:06:11 GMT
29
31
  Content-Type:
30
32
  - application/json;charset=UTF-8
31
33
  Content-Length:
32
- - '1346'
34
+ - '1422'
33
35
  Connection:
34
36
  - keep-alive
37
+ X-Ratelimit-Limit:
38
+ - '207000'
39
+ X-Ratelimit-Remaining:
40
+ - '205381'
41
+ X-Ratelimit-Reset:
42
+ - '1423612800'
35
43
  body:
36
- encoding: US-ASCII
37
- string: ! "{\n \"text\": \"Lionel Messi: Forward is not for sale, says Barcelona
38
- president\\n\\nBarcelona forward Lionel Messi is not for sale and the club
39
- plan to discuss a new contract with the Argentine, says president Josep Maria
40
- Bartomeu.\\n\\nFour-time Ballon d'Or winner Messi, 26, is reported to be a\\n\\nIn
41
- an interview with radio station RAC1, Bartomeu said: \\\"The club will sit
42
- down and negotiate a new contract.\\n\\n\\\"We will do what we have to, to
43
- ensure he's the best-paid player.\\\"\\n\\nMessi scored 60 goals in 50 appearances
44
- last season but has struggled to match that goalscoring form in 2013-14.\\n\\nHe
45
- has scored 18 goals so far but just eight of those have been in the league.\\n\\nHis
46
- last league goal came in September, before he was out for five weeks with
47
- a hamstring injury.\\n\\n\\\"He can do everything,\\\" said Barca coach Gerardo
48
- Martino. \\\"If he succeeds in other facets of his game, it doesn't matter
49
- if he scores.\\n\\n\\\"Nothing surprises me with him. He controls the game
50
- well, passes the ball well, he is a good finisher, he can press and recover
51
- the ball.\\n\\n\\\"He sees passes that most people can only see whilst watching
52
- the game on TV or in the stands, not ones that you can normally see on the
53
- field.\\\"\",\n \"subjectivity\": \"subjective\",\n \"subjectivity_confidence\":
54
- 1.0,\n \"polarity\": \"neutral\",\n \"polarity_confidence\": 0.99999999999999\n}"
44
+ encoding: ASCII-8BIT
45
+ string: !binary |-
46
+ ewogICJwb2xhcml0eSI6ICJuZXV0cmFsIiwKICAic3ViamVjdGl2aXR5Ijog
47
+ InN1YmplY3RpdmUiLAogICJ0ZXh0IjogIkxpb25lbCBNZXNzaTogRm9yd2Fy
48
+ ZCBpcyBub3QgZm9yIHNhbGUsIHNheXMgQmFyY2Vsb25hIHByZXNpZGVudFxu
49
+ XG5CYXJjZWxvbmEgZm9yd2FyZCBMaW9uZWwgTWVzc2kgaXMgbm90IGZvciBz
50
+ YWxlIGFuZCB0aGUgY2x1YiBwbGFuIHRvIGRpc2N1c3MgYSBuZXcgY29udHJh
51
+ Y3Qgd2l0aCB0aGUgQXJnZW50aW5lLCBzYXlzIHByZXNpZGVudCBKb3NlcCBN
52
+ YXJpYSBCYXJ0b21ldS5cblxuRm91ci10aW1lIEJhbGxvbiBkJ09yIHdpbm5l
53
+ ciBNZXNzaSwgMjYsIGlzIHJlcG9ydGVkIHRvIGJlIGEgdGFyZ2V0IGZvciBG
54
+ cmVuY2ggc2lkZSBQYXJpcyBTdC1HZXJtYWluLlxuXG5JbiBhbiBpbnRlcnZp
55
+ ZXcgd2l0aCByYWRpbyBzdGF0aW9uIFJBQzEsIHBvc3RlZCBvbiBCYXJjZWxv
56
+ bmEncyB3ZWJzaXRlLMKgIEJhcnRvbWV1IHNhaWQ6IFwiVGhlIGNsdWIgd2ls
57
+ bCBzaXQgZG93biBhbmQgbmVnb3RpYXRlIGEgbmV3IGNvbnRyYWN0LlxuXG5c
58
+ IldlIHdpbGwgZG8gd2hhdCB3ZSBoYXZlIHRvLCB0byBlbnN1cmUgaGUncyB0
59
+ aGUgYmVzdC1wYWlkIHBsYXllci5cIlxuXG5NZXNzaSBzY29yZWQgNjAgZ29h
60
+ bHMgaW4gNTAgYXBwZWFyYW5jZXMgbGFzdCBzZWFzb24gYnV0IGhhcyBzdHJ1
61
+ Z2dsZWQgdG8gbWF0Y2ggdGhhdCBnb2Fsc2NvcmluZyBmb3JtIGluIDIwMTMt
62
+ MTQuXG5cbkhlIGhhcyBzY29yZWQgMTggZ29hbHMgc28gZmFyIGJ1dCBqdXN0
63
+ IGVpZ2h0IG9mIHRob3NlIGhhdmUgYmVlbiBpbiB0aGUgbGVhZ3VlLlxuXG5I
64
+ aXMgbGFzdCBsZWFndWUgZ29hbCBjYW1lIGluIFNlcHRlbWJlciwgYmVmb3Jl
65
+ IGhlIHdhcyBvdXQgZm9yIGZpdmUgd2Vla3Mgd2l0aCBhIGhhbXN0cmluZyBp
66
+ bmp1cnkuXG5cblwiSGUgY2FuIGRvIGV2ZXJ5dGhpbmcsXCIgc2FpZCBCYXJj
67
+ YSBjb2FjaCBHZXJhcmRvIE1hcnRpbm8uIFwiSWYgaGUgc3VjY2VlZHMgaW4g
68
+ b3RoZXIgZmFjZXRzIG9mIGhpcyBnYW1lLCBpdCBkb2Vzbid0IG1hdHRlciBp
69
+ ZiBoZSBzY29yZXMuXG5cblwiTm90aGluZyBzdXJwcmlzZXMgbWUgd2l0aCBo
70
+ aW0uIEhlIGNvbnRyb2xzIHRoZSBnYW1lIHdlbGwsIHBhc3NlcyB0aGUgYmFs
71
+ bCB3ZWxsLCBoZSBpcyBhIGdvb2QgZmluaXNoZXIsIGhlIGNhbiBwcmVzcyBh
72
+ bmQgcmVjb3ZlciB0aGUgYmFsbC5cblxuXCJIZSBzZWVzIHBhc3NlcyB0aGF0
73
+ IG1vc3QgcGVvcGxlIGNhbiBvbmx5IHNlZSB3aGlsc3Qgd2F0Y2hpbmcgdGhl
74
+ IGdhbWUgb24gVFYgb3IgaW4gdGhlIHN0YW5kcywgbm90IG9uZXMgdGhhdCB5
75
+ b3UgY2FuIG5vcm1hbGx5IHNlZSBvbiB0aGUgZmllbGQuXCIiLAogICJwb2xh
76
+ cml0eV9jb25maWRlbmNlIjogMC45OTk5OTk5OTk5NDg1NDg5LAogICJzdWJq
77
+ ZWN0aXZpdHlfY29uZmlkZW5jZSI6IDEuMAp9
55
78
  http_version:
56
- recorded_at: Tue, 02 Dec 2014 18:14:53 GMT
79
+ recorded_at: Tue, 10 Feb 2015 14:05:56 GMT
57
80
  recorded_with: VCR 2.9.3