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.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/LICENSE +1 -1
- data/aylien_text_api.gemspec +2 -2
- data/lib/aylien_text_api.rb +1 -1
- data/lib/aylien_text_api/client.rb +59 -15
- data/lib/aylien_text_api/configuration.rb +3 -2
- data/lib/aylien_text_api/connection.rb +1 -1
- data/lib/aylien_text_api/error.rb +1 -1
- data/lib/aylien_text_api/version.rb +2 -2
- data/spec/fixtures/aylien_text_api/client/absa_with_invalid_client.yml +38 -0
- data/spec/fixtures/aylien_text_api/client/absa_with_invalid_params.yml +57 -0
- data/spec/fixtures/aylien_text_api/client/absa_with_text.yml +229 -0
- data/spec/fixtures/aylien_text_api/client/absa_with_unauthenticated_client.yml +42 -0
- data/spec/fixtures/aylien_text_api/client/absa_with_valid_url.yml +407 -0
- data/spec/fixtures/aylien_text_api/client/absa_with_value_as_text.yml +229 -0
- data/spec/fixtures/aylien_text_api/client/absa_with_value_as_valid_url.yml +407 -0
- data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_invalid_taxonomy.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_valid_url.yml +100 -100
- data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_value_as_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_value_as_valid_url.yml +100 -100
- data/spec/fixtures/aylien_text_api/client/classify_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/classify_with_invalid_params.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/classify_with_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/classify_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml +90 -90
- data/spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml +90 -90
- data/spec/fixtures/aylien_text_api/client/combined_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/combined_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/combined_with_text.yml +9 -9
- data/spec/fixtures/aylien_text_api/client/combined_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/combined_with_valid_url.yml +259 -255
- data/spec/fixtures/aylien_text_api/client/combined_with_value_as_text.yml +9 -9
- data/spec/fixtures/aylien_text_api/client/combined_with_value_as_valid_url.yml +259 -255
- data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/concepts_with_text.yml +10 -10
- data/spec/fixtures/aylien_text_api/client/concepts_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/concepts_with_valid_url.yml +25 -85
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml +10 -10
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml +25 -85
- data/spec/fixtures/aylien_text_api/client/entities_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/entities_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/entities_with_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/entities_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/entities_with_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/entities_with_value_as_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/entities_with_value_as_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/extract_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/extract_with_invalid_params.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/extract_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/extract_with_valid_url.yml +255 -255
- data/spec/fixtures/aylien_text_api/client/extract_with_value_as_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/extract_with_value_as_valid_url.yml +255 -255
- data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/hashtags_with_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/hashtags_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/hashtags_with_valid_url.yml +13 -42
- data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_valid_url.yml +13 -42
- data/spec/fixtures/aylien_text_api/client/image_tags_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/image_tags_with_invalid_params.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/image_tags_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/image_tags_with_valid_url.yml +8 -8
- data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_valid_url.yml +8 -8
- data/spec/fixtures/aylien_text_api/client/language_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/language_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/language_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/language_with_valid_text.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/language_with_valid_url.yml +13 -37
- data/spec/fixtures/aylien_text_api/client/language_with_value_as_text.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/language_with_value_as_valid_url.yml +13 -37
- data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/microformats_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/microformats_with_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/microformats_with_value_as_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/rate_limits.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/rate_limits_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/rate_limits_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/related_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/related_with_invalid_params.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/related_with_phrase.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/related_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/related_with_value_as_phrase.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/related_with_value_as_valid_url.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/sentiment_with_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/sentiment_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/sentiment_with_valid_url.yml +15 -40
- data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_valid_url.yml +15 -40
- data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/summarize_with_title_and_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/summarize_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/summarize_with_valid_url.yml +12 -52
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_title.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_without_title.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_valid_url.yml +12 -52
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_params.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_unauthenticated_client.yml +3 -3
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_valid_url.yml +42 -42
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_valid_url.yml +42 -42
- data/spec/lib/aylien_text_api/absa.rb +102 -0
- data/spec/lib/aylien_text_api/classify.rb +1 -1
- data/spec/lib/aylien_text_api/client_spec.rb +1 -0
- 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.
|
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
|
-
-
|
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:
|
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.
|
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
|
-
-
|
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
|
-
- '
|
40
|
+
- '173981'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
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:
|
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.
|
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
|
-
-
|
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
|
-
- '
|
40
|
+
- '173982'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
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:
|
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.
|
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
|
-
-
|
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:
|
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.
|
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
|
-
-
|
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
|
-
- '
|
34
|
+
- '1459'
|
35
35
|
Connection:
|
36
36
|
- keep-alive
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '173983'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1461888000'
|
43
43
|
body:
|
44
|
-
encoding:
|
45
|
-
string:
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
bmUsIHNheXMgcHJlc2lkZW50IEpvc2VwIE1hcmlhIEJhcnRvbWV1LlxuXG5G
|
52
|
-
b3VyLXRpbWUgQmFsbG9uIGQnT3Igd2lubmVyIE1lc3NpLCAyNiwgaXMgcmVw
|
53
|
-
b3J0ZWQgdG8gYmUgYSB0YXJnZXQgZm9yIEZyZW5jaCBzaWRlIFBhcmlzIFN0
|
54
|
-
LUdlcm1haW4uXG5cbkluIGFuIGludGVydmlldyB3aXRoIHJhZGlvIHN0YXRp
|
55
|
-
b24gUkFDMSwgcG9zdGVkIG9uIEJhcmNlbG9uYSdzI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lIGlzIGEgZ29v
|
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:
|
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.
|
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
|
-
-
|
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
|
-
- '
|
40
|
+
- '173984'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
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:
|
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.
|
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
|
-
-
|
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
|
-
- '
|
34
|
+
- '1459'
|
35
35
|
Connection:
|
36
36
|
- keep-alive
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '173980'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1461888000'
|
43
43
|
body:
|
44
|
-
encoding:
|
45
|
-
string:
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
bmUsIHNheXMgcHJlc2lkZW50IEpvc2VwIE1hcmlhIEJhcnRvbWV1LlxuXG5G
|
52
|
-
b3VyLXRpbWUgQmFsbG9uIGQnT3Igd2lubmVyIE1lc3NpLCAyNiwgaXMgcmVw
|
53
|
-
b3J0ZWQgdG8gYmUgYSB0YXJnZXQgZm9yIEZyZW5jaCBzaWRlIFBhcmlzIFN0
|
54
|
-
LUdlcm1haW4uXG5cbkluIGFuIGludGVydmlldyB3aXRoIHJhZGlvIHN0YXRp
|
55
|
-
b24gUkFDMSwgcG9zdGVkIG9uIEJhcmNlbG9uYSdzIHdlYnNpdGUswqAgQmFy
|
56
|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CBmaW5pc2hlciwgaGUgY2FuIHByZXNzIGFuZCByZWNvdmVyIHRoZSBiYWxs
|
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:
|
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.
|
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
|
-
-
|
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:
|
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:
|
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.
|
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
|
-
-
|
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
|
-
- '
|
40
|
+
- '174308'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
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:
|
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.
|
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
|
-
-
|
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:
|
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.
|
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
|
-
-
|
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
|
-
- '
|
34
|
+
- '2851'
|
35
35
|
Connection:
|
36
36
|
- keep-alive
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '174268'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1461888000'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
|
-
string: '{"image":"http://aylien.com/images/michaelo.png","tags":[{"tag":"man","confidence":0.
|
46
|
-
|
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:
|
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.
|
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
|
-
-
|
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
|
-
- '
|
40
|
+
- '174298'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
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:
|
61
|
+
recorded_at: Thu, 28 Apr 2016 10:35:29 GMT
|
62
62
|
recorded_with: VCR 2.9.3
|