aylien_text_api 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/LICENSE +1 -1
  4. data/aylien_text_api.gemspec +2 -2
  5. data/lib/aylien_text_api.rb +1 -1
  6. data/lib/aylien_text_api/client.rb +59 -15
  7. data/lib/aylien_text_api/configuration.rb +3 -2
  8. data/lib/aylien_text_api/connection.rb +1 -1
  9. data/lib/aylien_text_api/error.rb +1 -1
  10. data/lib/aylien_text_api/version.rb +2 -2
  11. data/spec/fixtures/aylien_text_api/client/absa_with_invalid_client.yml +38 -0
  12. data/spec/fixtures/aylien_text_api/client/absa_with_invalid_params.yml +57 -0
  13. data/spec/fixtures/aylien_text_api/client/absa_with_text.yml +229 -0
  14. data/spec/fixtures/aylien_text_api/client/absa_with_unauthenticated_client.yml +42 -0
  15. data/spec/fixtures/aylien_text_api/client/absa_with_valid_url.yml +407 -0
  16. data/spec/fixtures/aylien_text_api/client/absa_with_value_as_text.yml +229 -0
  17. data/spec/fixtures/aylien_text_api/client/absa_with_value_as_valid_url.yml +407 -0
  18. data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_invalid_client.yml +3 -3
  19. data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_invalid_params.yml +5 -5
  20. data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_invalid_taxonomy.yml +5 -5
  21. data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_text.yml +5 -5
  22. data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_unauthenticated_client.yml +3 -3
  23. data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_valid_url.yml +100 -100
  24. data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_value_as_text.yml +5 -5
  25. data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_value_as_valid_url.yml +100 -100
  26. data/spec/fixtures/aylien_text_api/client/classify_with_invalid_client.yml +3 -3
  27. data/spec/fixtures/aylien_text_api/client/classify_with_invalid_params.yml +6 -6
  28. data/spec/fixtures/aylien_text_api/client/classify_with_text.yml +5 -5
  29. data/spec/fixtures/aylien_text_api/client/classify_with_unauthenticated_client.yml +3 -3
  30. data/spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml +90 -90
  31. data/spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml +5 -5
  32. data/spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml +90 -90
  33. data/spec/fixtures/aylien_text_api/client/combined_with_invalid_client.yml +3 -3
  34. data/spec/fixtures/aylien_text_api/client/combined_with_invalid_params.yml +5 -5
  35. data/spec/fixtures/aylien_text_api/client/combined_with_text.yml +9 -9
  36. data/spec/fixtures/aylien_text_api/client/combined_with_unauthenticated_client.yml +3 -3
  37. data/spec/fixtures/aylien_text_api/client/combined_with_valid_url.yml +259 -255
  38. data/spec/fixtures/aylien_text_api/client/combined_with_value_as_text.yml +9 -9
  39. data/spec/fixtures/aylien_text_api/client/combined_with_value_as_valid_url.yml +259 -255
  40. data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml +3 -3
  41. data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml +5 -5
  42. data/spec/fixtures/aylien_text_api/client/concepts_with_text.yml +10 -10
  43. data/spec/fixtures/aylien_text_api/client/concepts_with_unauthenticated_client.yml +3 -3
  44. data/spec/fixtures/aylien_text_api/client/concepts_with_valid_url.yml +25 -85
  45. data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml +10 -10
  46. data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml +25 -85
  47. data/spec/fixtures/aylien_text_api/client/entities_with_invalid_client.yml +3 -3
  48. data/spec/fixtures/aylien_text_api/client/entities_with_invalid_params.yml +5 -5
  49. data/spec/fixtures/aylien_text_api/client/entities_with_text.yml +5 -5
  50. data/spec/fixtures/aylien_text_api/client/entities_with_unauthenticated_client.yml +3 -3
  51. data/spec/fixtures/aylien_text_api/client/entities_with_valid_url.yml +5 -5
  52. data/spec/fixtures/aylien_text_api/client/entities_with_value_as_text.yml +5 -5
  53. data/spec/fixtures/aylien_text_api/client/entities_with_value_as_valid_url.yml +5 -5
  54. data/spec/fixtures/aylien_text_api/client/extract_with_invalid_client.yml +3 -3
  55. data/spec/fixtures/aylien_text_api/client/extract_with_invalid_params.yml +6 -6
  56. data/spec/fixtures/aylien_text_api/client/extract_with_unauthenticated_client.yml +3 -3
  57. data/spec/fixtures/aylien_text_api/client/extract_with_valid_url.yml +255 -255
  58. data/spec/fixtures/aylien_text_api/client/extract_with_value_as_text.yml +5 -5
  59. data/spec/fixtures/aylien_text_api/client/extract_with_value_as_valid_url.yml +255 -255
  60. data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_client.yml +3 -3
  61. data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_params.yml +5 -5
  62. data/spec/fixtures/aylien_text_api/client/hashtags_with_text.yml +5 -5
  63. data/spec/fixtures/aylien_text_api/client/hashtags_with_unauthenticated_client.yml +3 -3
  64. data/spec/fixtures/aylien_text_api/client/hashtags_with_valid_url.yml +13 -42
  65. data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_text.yml +5 -5
  66. data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_valid_url.yml +13 -42
  67. data/spec/fixtures/aylien_text_api/client/image_tags_with_invalid_client.yml +3 -3
  68. data/spec/fixtures/aylien_text_api/client/image_tags_with_invalid_params.yml +6 -6
  69. data/spec/fixtures/aylien_text_api/client/image_tags_with_unauthenticated_client.yml +3 -3
  70. data/spec/fixtures/aylien_text_api/client/image_tags_with_valid_url.yml +8 -8
  71. data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_text.yml +5 -5
  72. data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_valid_url.yml +8 -8
  73. data/spec/fixtures/aylien_text_api/client/language_with_invalid_client.yml +3 -3
  74. data/spec/fixtures/aylien_text_api/client/language_with_invalid_params.yml +5 -5
  75. data/spec/fixtures/aylien_text_api/client/language_with_unauthenticated_client.yml +3 -3
  76. data/spec/fixtures/aylien_text_api/client/language_with_valid_text.yml +6 -6
  77. data/spec/fixtures/aylien_text_api/client/language_with_valid_url.yml +13 -37
  78. data/spec/fixtures/aylien_text_api/client/language_with_value_as_text.yml +6 -6
  79. data/spec/fixtures/aylien_text_api/client/language_with_value_as_valid_url.yml +13 -37
  80. data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_client.yml +3 -3
  81. data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_params.yml +5 -5
  82. data/spec/fixtures/aylien_text_api/client/microformats_with_unauthenticated_client.yml +3 -3
  83. data/spec/fixtures/aylien_text_api/client/microformats_with_valid_url.yml +6 -6
  84. data/spec/fixtures/aylien_text_api/client/microformats_with_value_as_valid_url.yml +6 -6
  85. data/spec/fixtures/aylien_text_api/client/rate_limits.yml +6 -6
  86. data/spec/fixtures/aylien_text_api/client/rate_limits_with_invalid_client.yml +3 -3
  87. data/spec/fixtures/aylien_text_api/client/rate_limits_with_unauthenticated_client.yml +3 -3
  88. data/spec/fixtures/aylien_text_api/client/related_with_invalid_client.yml +3 -3
  89. data/spec/fixtures/aylien_text_api/client/related_with_invalid_params.yml +6 -6
  90. data/spec/fixtures/aylien_text_api/client/related_with_phrase.yml +5 -5
  91. data/spec/fixtures/aylien_text_api/client/related_with_unauthenticated_client.yml +3 -3
  92. data/spec/fixtures/aylien_text_api/client/related_with_value_as_phrase.yml +5 -5
  93. data/spec/fixtures/aylien_text_api/client/related_with_value_as_valid_url.yml +5 -5
  94. data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_client.yml +3 -3
  95. data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_params.yml +5 -5
  96. data/spec/fixtures/aylien_text_api/client/sentiment_with_text.yml +5 -5
  97. data/spec/fixtures/aylien_text_api/client/sentiment_with_unauthenticated_client.yml +3 -3
  98. data/spec/fixtures/aylien_text_api/client/sentiment_with_valid_url.yml +15 -40
  99. data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_text.yml +5 -5
  100. data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_valid_url.yml +15 -40
  101. data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_client.yml +3 -3
  102. data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_params.yml +5 -5
  103. data/spec/fixtures/aylien_text_api/client/summarize_with_title_and_text.yml +5 -5
  104. data/spec/fixtures/aylien_text_api/client/summarize_with_unauthenticated_client.yml +3 -3
  105. data/spec/fixtures/aylien_text_api/client/summarize_with_valid_url.yml +12 -52
  106. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_title.yml +5 -5
  107. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_without_title.yml +5 -5
  108. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_valid_url.yml +12 -52
  109. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_client.yml +3 -3
  110. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_params.yml +5 -5
  111. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_text.yml +5 -5
  112. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_unauthenticated_client.yml +3 -3
  113. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_valid_url.yml +42 -42
  114. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_text.yml +5 -5
  115. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_valid_url.yml +42 -42
  116. data/spec/lib/aylien_text_api/absa.rb +102 -0
  117. data/spec/lib/aylien_text_api/classify.rb +1 -1
  118. data/spec/lib/aylien_text_api/client_spec.rb +1 -0
  119. metadata +21 -6
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  response:
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Server:
24
24
  - openresty/1.9.3.2
25
25
  Date:
26
- - Fri, 22 Jan 2016 13:16:38 GMT
26
+ - Thu, 28 Apr 2016 10:37:38 GMT
27
27
  Content-Type:
28
28
  - text/plain; charset=us-ascii
29
29
  Transfer-Encoding:
@@ -34,5 +34,5 @@ http_interactions:
34
34
  encoding: UTF-8
35
35
  string: Authentication parameters missing
36
36
  http_version:
37
- recorded_at: Fri, 22 Jan 2016 13:16:38 GMT
37
+ recorded_at: Thu, 28 Apr 2016 10:37:38 GMT
38
38
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:16:43 GMT
30
+ - Thu, 28 Apr 2016 10:37:35 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
@@ -37,9 +37,9 @@ http_interactions:
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '206457'
40
+ - '173981'
41
41
  X-Ratelimit-Reset:
42
- - '1453507200'
42
+ - '1461888000'
43
43
  body:
44
44
  encoding: UTF-8
45
45
  string: |-
@@ -53,5 +53,5 @@ http_interactions:
53
53
  }]
54
54
  }
55
55
  http_version:
56
- recorded_at: Fri, 22 Jan 2016 13:16:43 GMT
56
+ recorded_at: Thu, 28 Apr 2016 10:37:35 GMT
57
57
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:16:39 GMT
30
+ - Thu, 28 Apr 2016 10:37:34 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
@@ -37,9 +37,9 @@ http_interactions:
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '206459'
40
+ - '173982'
41
41
  X-Ratelimit-Reset:
42
- - '1453507200'
42
+ - '1461888000'
43
43
  body:
44
44
  encoding: ASCII-8BIT
45
45
  string: !binary |-
@@ -58,5 +58,5 @@ http_interactions:
58
58
  IiNDaHJvbWVjYXN0IiwgIiNXZWJBcHBsaWNhdGlvbiIsICIjQW5kcm9pZCIs
59
59
  ICIjSU9TIl0KfQ==
60
60
  http_version:
61
- recorded_at: Fri, 22 Jan 2016 13:16:39 GMT
61
+ recorded_at: Thu, 28 Apr 2016 10:37:34 GMT
62
62
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:16:46 GMT
30
+ - Thu, 28 Apr 2016 10:37:36 GMT
31
31
  Content-Type:
32
32
  - text/plain; charset=us-ascii
33
33
  Transfer-Encoding:
@@ -38,5 +38,5 @@ http_interactions:
38
38
  encoding: UTF-8
39
39
  string: Authentication failed
40
40
  http_version:
41
- recorded_at: Fri, 22 Jan 2016 13:16:46 GMT
41
+ recorded_at: Thu, 28 Apr 2016 10:37:36 GMT
42
42
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,56 +27,27 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:16:46 GMT
30
+ - Thu, 28 Apr 2016 10:37:33 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
34
- - '1512'
34
+ - '1459'
35
35
  Connection:
36
36
  - keep-alive
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '206456'
40
+ - '173983'
41
41
  X-Ratelimit-Reset:
42
- - '1453507200'
42
+ - '1461888000'
43
43
  body:
44
- encoding: ASCII-8BIT
45
- string: !binary |-
46
- ewogICJ0ZXh0IjogIk1lc3NpIG5vdCBmb3Igc2FsZSAtIEJhcmNhIHByZXNp
47
- ZGVudFxuTGlvbmVsIE1lc3NpOiBGb3J3YXJkIGlzIG5vdCBmb3Igc2FsZSwg
48
- c2F5cyBCYXJjZWxvbmEgcHJlc2lkZW50XG5cbkJhcmNlbG9uYSBmb3J3YXJk
49
- IExpb25lbCBNZXNzaSBpcyBub3QgZm9yIHNhbGUgYW5kIHRoZSBjbHViIHBs
50
- YW4gdG8gZGlzY3VzcyBhIG5ldyBjb250cmFjdCB3aXRoIHRoZSBBcmdlbnRp
51
- bmUsIHNheXMgcHJlc2lkZW50IEpvc2VwIE1hcmlhIEJhcnRvbWV1LlxuXG5G
52
- b3VyLXRpbWUgQmFsbG9u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HNjb3Jlcy5cblxuXCJO
69
- b3RoaW5nIHN1cnByaXNlcyBtZSB3aXRoIGhpbS4gSGUgY29udHJvbHMgdGhl
70
- IGdhbWUgd2VsbCwgcGFzc2VzIHRoZSBiYWxsIHdlbGwsIGhlIGlzIGEgZ29v
71
- ZCBmaW5pc2hlciwgaGUgY2FuIHByZXNzIGFuZCByZWNvdmVyIHRoZSBiYWxs
72
- LlxuXG5cIkhlIHNlZXMgcGFzc2VzIHRoYXQgbW9zdCBwZW9wbGUgY2FuIG9u
73
- bHkgc2VlIHdoaWxzdCB3YXRjaGluZyB0aGUgZ2FtZSBvbiBUViBvciBpbiB0
74
- aGUgc3RhbmRzLCBub3Qgb25lcyB0aGF0IHlvdSBjYW4gbm9ybWFsbHkgc2Vl
75
- IG9uIHRoZSBmaWVsZC5cIiIsCiAgImxhbmd1YWdlIjogImVuIiwKICAiaGFz
76
- aHRhZ3MiOiBbIiNMaW9uZWxNZXNzaSIsICIjRkNCYXJjZWxvbmEiLCAiI1JB
77
- QzEiLCAiI0ZyYW5jZSIsICIjSm9zZXBNYXJpYUJhcnRvbWV1IiwgIiNBcmdl
78
- bnRpbmFOYXRpb25hbEZvb3RiYWxsVGVhbSIsICIjR2VyYXJkb01hcnRpbm8i
79
- LCAiI1BhcmlzU2FpbnRHZXJtYWluRkMiXQp9
44
+ encoding: UTF-8
45
+ string: |-
46
+ {
47
+ "text": "Lionel Messi: Forward is not for sale, says Barcelona president\nBarcelona forward Lionel Messi is not for sale and the club plan to discuss a new contract with the Argentine, says president Josep Maria Bartomeu.\n\nFour-time Ballon d'Or winner Messi, 26, is reported to be a target for French side Paris St-Germain.\n\nIn an interview with radio station RAC1, posted on Barcelona's website, Bartomeu said: \"The club will sit down and negotiate a new contract.\n\n\"We will do what we have to, to ensure he's the best-paid player.\"\n\nMessi scored 60 goals in 50 appearances last season but has struggled to match that goalscoring form in 2013-14.\n\nHe has scored 18 goals so far but just eight of those have been in the league.\n\nHis last league goal came in September, before he was out for five weeks with a hamstring injury.\n\n\"He can do everything,\" said Barca coach Gerardo Martino. \"If he succeeds in other facets of his game, it doesn't matter if he scores.\n\n\"Nothing surprises me with him. He controls the game well, passes the ball well, he is a good finisher, he can press and recover the ball.\n\n\"He sees passes that most people can only see whilst watching the game on TV or in the stands, not ones that you can normally see on the field.\"",
48
+ "language": "en",
49
+ "hashtags": ["#LionelMessi", "#FCBarcelona", "#RAC1", "#JosepMariaBartomeu", "#ArgentinaNationalFootballTeam", "#GerardoMartino", "#ParisSaintGermainFC"]
50
+ }
80
51
  http_version:
81
- recorded_at: Fri, 22 Jan 2016 13:16:46 GMT
52
+ recorded_at: Thu, 28 Apr 2016 10:37:33 GMT
82
53
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:16:39 GMT
30
+ - Thu, 28 Apr 2016 10:37:31 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
@@ -37,9 +37,9 @@ http_interactions:
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '206459'
40
+ - '173984'
41
41
  X-Ratelimit-Reset:
42
- - '1453507200'
42
+ - '1461888000'
43
43
  body:
44
44
  encoding: ASCII-8BIT
45
45
  string: !binary |-
@@ -58,5 +58,5 @@ http_interactions:
58
58
  IiNDaHJvbWVjYXN0IiwgIiNXZWJBcHBsaWNhdGlvbiIsICIjQW5kcm9pZCIs
59
59
  ICIjSU9TIl0KfQ==
60
60
  http_version:
61
- recorded_at: Fri, 22 Jan 2016 13:16:39 GMT
61
+ recorded_at: Thu, 28 Apr 2016 10:37:31 GMT
62
62
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,56 +27,27 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:16:42 GMT
30
+ - Thu, 28 Apr 2016 10:37:37 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
34
- - '1512'
34
+ - '1459'
35
35
  Connection:
36
36
  - keep-alive
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '206458'
40
+ - '173980'
41
41
  X-Ratelimit-Reset:
42
- - '1453507200'
42
+ - '1461888000'
43
43
  body:
44
- encoding: ASCII-8BIT
45
- string: !binary |-
46
- ewogICJ0ZXh0IjogIk1lc3NpIG5vdCBmb3Igc2FsZSAtIEJhcmNhIHByZXNp
47
- ZGVudFxuTGlvbmVsIE1lc3NpOiBGb3J3YXJkIGlzIG5vdCBmb3Igc2FsZSwg
48
- c2F5cyBCYXJjZWxvbmEgcHJlc2lkZW50XG5cbkJhcmNlbG9uYSBmb3J3YXJk
49
- IExpb25lbCBNZXNzaSBpcyBub3QgZm9yIHNhbGUgYW5kIHRoZSBjbHViIHBs
50
- YW4gdG8gZGlzY3VzcyBhIG5ldyBjb250cmFjdCB3aXRoIHRoZSBBcmdlbnRp
51
- bmUsIHNheXMgcHJlc2lkZW50IEpvc2VwIE1hcmlhIEJhcnRvbWV1LlxuXG5G
52
- b3VyLXRpbWUgQmFsbG9uIGQnT3Igd2lubmVyIE1lc3NpLCAyNiwgaXMgcmVw
53
- b3J0ZWQgdG8gYmUg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4gSGUgY29udHJvbHMgdGhl
70
- IGdhbWUgd2VsbCwgcGFzc2VzIHRoZSBiYWxsIHdlbGwsIGhlIGlzIGEgZ29v
71
- ZCBmaW5pc2hlciwgaGUgY2FuIHByZXNzIGFuZCByZWNvdmVyIHRoZSBiYWxs
72
- LlxuXG5cIkhlIHNlZXMgcGFzc2VzIHRoYXQgbW9zdCBwZW9wbGUgY2FuIG9u
73
- bHkgc2VlIHdoaWxzdCB3YXRjaGluZyB0aGUgZ2FtZSBvbiBUViBvciBpbiB0
74
- aGUgc3RhbmRzLCBub3Qgb25lcyB0aGF0IHlvdSBjYW4gbm9ybWFsbHkgc2Vl
75
- IG9uIHRoZSBmaWVsZC5cIiIsCiAgImxhbmd1YWdlIjogImVuIiwKICAiaGFz
76
- aHRhZ3MiOiBbIiNMaW9uZWxNZXNzaSIsICIjRkNCYXJjZWxvbmEiLCAiI1JB
77
- QzEiLCAiI0ZyYW5jZSIsICIjSm9zZXBNYXJpYUJhcnRvbWV1IiwgIiNBcmdl
78
- bnRpbmFOYXRpb25hbEZvb3RiYWxsVGVhbSIsICIjR2VyYXJkb01hcnRpbm8i
79
- LCAiI1BhcmlzU2FpbnRHZXJtYWluRkMiXQp9
44
+ encoding: UTF-8
45
+ string: |-
46
+ {
47
+ "text": "Lionel Messi: Forward is not for sale, says Barcelona president\nBarcelona forward Lionel Messi is not for sale and the club plan to discuss a new contract with the Argentine, says president Josep Maria Bartomeu.\n\nFour-time Ballon d'Or winner Messi, 26, is reported to be a target for French side Paris St-Germain.\n\nIn an interview with radio station RAC1, posted on Barcelona's website, Bartomeu said: \"The club will sit down and negotiate a new contract.\n\n\"We will do what we have to, to ensure he's the best-paid player.\"\n\nMessi scored 60 goals in 50 appearances last season but has struggled to match that goalscoring form in 2013-14.\n\nHe has scored 18 goals so far but just eight of those have been in the league.\n\nHis last league goal came in September, before he was out for five weeks with a hamstring injury.\n\n\"He can do everything,\" said Barca coach Gerardo Martino. \"If he succeeds in other facets of his game, it doesn't matter if he scores.\n\n\"Nothing surprises me with him. He controls the game well, passes the ball well, he is a good finisher, he can press and recover the ball.\n\n\"He sees passes that most people can only see whilst watching the game on TV or in the stands, not ones that you can normally see on the field.\"",
48
+ "language": "en",
49
+ "hashtags": ["#LionelMessi", "#FCBarcelona", "#RAC1", "#JosepMariaBartomeu", "#ArgentinaNationalFootballTeam", "#GerardoMartino", "#ParisSaintGermainFC"]
50
+ }
80
51
  http_version:
81
- recorded_at: Fri, 22 Jan 2016 13:16:42 GMT
52
+ recorded_at: Thu, 28 Apr 2016 10:37:37 GMT
82
53
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  response:
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Server:
24
24
  - openresty/1.9.3.2
25
25
  Date:
26
- - Fri, 22 Jan 2016 13:17:53 GMT
26
+ - Thu, 28 Apr 2016 10:35:31 GMT
27
27
  Content-Type:
28
28
  - text/plain; charset=us-ascii
29
29
  Transfer-Encoding:
@@ -34,5 +34,5 @@ http_interactions:
34
34
  encoding: UTF-8
35
35
  string: Authentication parameters missing
36
36
  http_version:
37
- recorded_at: Fri, 22 Jan 2016 13:17:54 GMT
37
+ recorded_at: Thu, 28 Apr 2016 10:35:31 GMT
38
38
  recorded_with: VCR 2.9.3
@@ -5,14 +5,14 @@ http_interactions:
5
5
  uri: https://api.aylien.com/api/v1/image-tags
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: text
8
+ string: wrong_param
9
9
  headers:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:17:52 GMT
30
+ - Thu, 28 Apr 2016 10:35:28 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
@@ -37,9 +37,9 @@ http_interactions:
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '206382'
40
+ - '174308'
41
41
  X-Ratelimit-Reset:
42
- - '1453507200'
42
+ - '1461888000'
43
43
  body:
44
44
  encoding: UTF-8
45
45
  string: |-
@@ -58,5 +58,5 @@ http_interactions:
58
58
  }]
59
59
  }
60
60
  http_version:
61
- recorded_at: Fri, 22 Jan 2016 13:17:52 GMT
61
+ recorded_at: Thu, 28 Apr 2016 10:35:28 GMT
62
62
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:17:53 GMT
30
+ - Thu, 28 Apr 2016 10:35:27 GMT
31
31
  Content-Type:
32
32
  - text/plain; charset=us-ascii
33
33
  Transfer-Encoding:
@@ -38,5 +38,5 @@ http_interactions:
38
38
  encoding: UTF-8
39
39
  string: Authentication failed
40
40
  http_version:
41
- recorded_at: Fri, 22 Jan 2016 13:17:53 GMT
41
+ recorded_at: Thu, 28 Apr 2016 10:35:27 GMT
42
42
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,23 +27,23 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:17:55 GMT
30
+ - Thu, 28 Apr 2016 10:35:30 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
34
- - '3199'
34
+ - '2851'
35
35
  Connection:
36
36
  - keep-alive
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '206371'
40
+ - '174268'
41
41
  X-Ratelimit-Reset:
42
- - '1453507200'
42
+ - '1461888000'
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"image":"http://aylien.com/images/michaelo.png","tags":[{"tag":"man","confidence":0.41905796752863317},{"tag":"male","confidence":0.38725180557522626},{"tag":"person","confidence":0.2950782772367672},{"tag":"caucasian","confidence":0.28819937995746114},{"tag":"adult","confidence":0.2860074220726819},{"tag":"people","confidence":0.2813499226629327},{"tag":"portrait","confidence":0.2556080570430241},{"tag":"happy","confidence":0.19802269093369854},{"tag":"expression","confidence":0.18279448479009905},{"tag":"face","confidence":0.17406795368419534},{"tag":"smiling","confidence":0.17137503156054007},{"tag":"professional","confidence":0.16758256015705952},{"tag":"men","confidence":0.16086813165656152},{"tag":"handsome","confidence":0.16018362515920959},{"tag":"businessman","confidence":0.15903475625743435},{"tag":"looking","confidence":0.15796172525292465},{"tag":"business","confidence":0.1557118392773537},{"tag":"smile","confidence":0.15438355370945098},{"tag":"mature","confidence":0.14688734460479608},{"tag":"attractive","confidence":0.13361367052008005},{"tag":"lifestyle","confidence":0.1299204355118789},{"tag":"hand","confidence":0.12735821348429474},{"tag":"holding","confidence":0.12355007054629139},{"tag":"standing","confidence":0.12295081310312816},{"tag":"boy","confidence":0.12164446450510052},{"tag":"executive","confidence":0.11187875776509965},{"tag":"black","confidence":0.11010645151781555},{"tag":"suit","confidence":0.10927890973278409},{"tag":"tie","confidence":0.10618284579793132},{"tag":"one
46
- person","confidence":0.1045350667650641},{"tag":"senior","confidence":0.10431091391554012},{"tag":"guy","confidence":0.10391495627815084},{"tag":"casual","confidence":0.1035114632451087},{"tag":"close","confidence":0.10345066128130863},{"tag":"work","confidence":0.10211116727668693},{"tag":"head","confidence":0.10156530627718388},{"tag":"serious","confidence":0.09743612605180667},{"tag":"model","confidence":0.09610429142572889},{"tag":"sitting","confidence":0.0958882259724246},{"tag":"hair","confidence":0.09586617354759026},{"tag":"occupation","confidence":0.09450395110682903},{"tag":"glasses","confidence":0.09449592336321266},{"tag":"hat","confidence":0.09400742999219552},{"tag":"alone","confidence":0.09328376874698145},{"tag":"job","confidence":0.091422641220872},{"tag":"one","confidence":0.09118751535337102},{"tag":"office","confidence":0.08990688615354384},{"tag":"gesture","confidence":0.08865037593605044},{"tag":"corporate","confidence":0.08828812050287917},{"tag":"happiness","confidence":0.0867063859875002},{"tag":"phone","confidence":0.08506223332542642},{"tag":"elderly","confidence":0.07976172910785626},{"tag":"youth","confidence":0.07942132029026444},{"tag":"studio","confidence":0.078497033599752},{"tag":"lady","confidence":0.07676805521206836},{"tag":"old","confidence":0.07663315168563556},{"tag":"worker","confidence":0.07498433797736266},{"tag":"indoors","confidence":0.07366468199728732},{"tag":"home","confidence":0.0734225587546348},{"tag":"pretty","confidence":0.07277674843882982},{"tag":"eyes","confidence":0.07229058890057924},{"tag":"uniform","confidence":0.07073310644486129},{"tag":"thinking","confidence":0.07067450211605036}]}'
45
+ string: '{"image":"http://aylien.com/images/michaelo.png","tags":[{"tag":"man","confidence":0.38526503059354744},{"tag":"male","confidence":0.3317226316182196},{"tag":"adult","confidence":0.2784401670808},{"tag":"person","confidence":0.2766912775826571},{"tag":"caucasian","confidence":0.26156983878279655},{"tag":"portrait","confidence":0.25444051117831934},{"tag":"people","confidence":0.25319083631581124},{"tag":"expression","confidence":0.18991485674025765},{"tag":"face","confidence":0.18667383014576536},{"tag":"hat","confidence":0.18616662485817884},{"tag":"happy","confidence":0.179178520402529},{"tag":"smiling","confidence":0.1775314246895239},{"tag":"handsome","confidence":0.16786769598562348},{"tag":"smile","confidence":0.14039983434177936},{"tag":"attractive","confidence":0.13969248881116159},{"tag":"guy","confidence":0.13784770441282926},{"tag":"businessman","confidence":0.13325095876577253},{"tag":"boy","confidence":0.12921201138740745},{"tag":"men","confidence":0.12829721176856576},{"tag":"professional","confidence":0.12715450591271263},{"tag":"hand","confidence":0.12682197468994633},{"tag":"business","confidence":0.12618182452735016},{"tag":"looking","confidence":0.12000124566753068},{"tag":"mature","confidence":0.11187658847141996},{"tag":"head","confidence":0.10898489325991288},{"tag":"model","confidence":0.10311892617180102},{"tag":"uniform","confidence":0.09675233049637981},{"tag":"eyes","confidence":0.09604154912512292},{"tag":"lifestyle","confidence":0.09545451457108797},{"tag":"youth","confidence":0.0948210366676895},{"tag":"work","confidence":0.09429791869817963},{"tag":"glasses","confidence":0.09401416311276205},{"tag":"holding","confidence":0.09231146530595949},{"tag":"job","confidence":0.09097383000138444},{"tag":"one","confidence":0.09082795573517906},{"tag":"gesture","confidence":0.08820796519984782},{"tag":"black","confidence":0.08810763224586729},{"tag":"tie","confidence":0.08802022333658596},{"tag":"occupation","confidence":0.08555103656508303},{"tag":"teenager","confidence":0.08441262322251308},{"tag":"fun","confidence":0.08189185676019463},{"tag":"standing","confidence":0.08163340775162788},{"tag":"cowboy
46
+ hat","confidence":0.07897052018807374},{"tag":"clothing","confidence":0.07834390714345282},{"tag":"fashion","confidence":0.07811595902752443},{"tag":"emotion","confidence":0.07657799118675668},{"tag":"alone","confidence":0.07609837340723807},{"tag":"success","confidence":0.07603948062102539},{"tag":"suit","confidence":0.07528032214047015},{"tag":"worker","confidence":0.07462980739788126},{"tag":"hair","confidence":0.07357872268528248},{"tag":"close","confidence":0.07228052003719299},{"tag":"sitting","confidence":0.0715294555219224},{"tag":"casual","confidence":0.07129846257652388},{"tag":"studio","confidence":0.07114551279414719},{"tag":"helmet","confidence":0.07103317710238774}]}'
47
47
  http_version:
48
- recorded_at: Fri, 22 Jan 2016 13:17:55 GMT
48
+ recorded_at: Thu, 28 Apr 2016 10:35:30 GMT
49
49
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:17:54 GMT
30
+ - Thu, 28 Apr 2016 10:35:29 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
@@ -37,9 +37,9 @@ http_interactions:
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '206381'
40
+ - '174298'
41
41
  X-Ratelimit-Reset:
42
- - '1453507200'
42
+ - '1461888000'
43
43
  body:
44
44
  encoding: UTF-8
45
45
  string: |-
@@ -58,5 +58,5 @@ http_interactions:
58
58
  }]
59
59
  }
60
60
  http_version:
61
- recorded_at: Fri, 22 Jan 2016 13:17:54 GMT
61
+ recorded_at: Thu, 28 Apr 2016 10:35:29 GMT
62
62
  recorded_with: VCR 2.9.3