aylien_text_api 0.4.0 → 0.5.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 +1 -1
- data/lib/aylien_text_api/client.rb +71 -30
- data/lib/aylien_text_api/connection.rb +7 -0
- data/lib/aylien_text_api/version.rb +1 -1
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +6 -6
- 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 +6 -6
- data/spec/fixtures/aylien_text_api/client/combined_with_value_as_text.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/combined_with_value_as_valid_url.yml +77 -77
- 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 +5 -5
- 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 +5 -5
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +6 -6
- 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 +6 -6
- 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 +53 -0
- data/spec/fixtures/aylien_text_api/client/rate_limits_with_invalid_client.yml +38 -0
- data/spec/fixtures/aylien_text_api/client/rate_limits_with_unauthenticated_client.yml +42 -0
- 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 +5 -5
- 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 +7 -7
- 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 +6 -6
- data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_text.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_valid_url.yml +6 -6
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- data/spec/lib/aylien_text_api/classify.rb +1 -1
- data/spec/lib/aylien_text_api/client_spec.rb +1 -0
- data/spec/lib/aylien_text_api/rate_limits.rb +26 -0
- metadata +11 -3
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.9.3.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Fri, 22 Jan 2016 13:18:01 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
|
+
- '206339'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1453507200'
|
43
43
|
body:
|
44
44
|
encoding: ASCII-8BIT
|
45
45
|
string: !binary |-
|
@@ -151,5 +151,5 @@ http_interactions:
|
|
151
151
|
YXBpL3YxL2NsYXNzaWZ5L3RheG9ub215L2lhYi1xYWcvSUFCMTkiCiAgICB9
|
152
152
|
XSwKICAgICJpZCI6ICJJQUIxOS0yMiIKICB9XQp9
|
153
153
|
http_version:
|
154
|
-
recorded_at:
|
154
|
+
recorded_at: Fri, 22 Jan 2016 13:18:01 GMT
|
155
155
|
recorded_with: VCR 2.9.3
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.9.3.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Fri, 22 Jan 2016 13:17:58 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
|
+
- '206340'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1453507200'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: |-
|
@@ -71,5 +71,5 @@ http_interactions:
|
|
71
71
|
}]
|
72
72
|
}
|
73
73
|
http_version:
|
74
|
-
recorded_at:
|
74
|
+
recorded_at: Fri, 22 Jan 2016 13:17:58 GMT
|
75
75
|
recorded_with: VCR 2.9.3
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.9.3.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Fri, 22 Jan 2016 13:17:58 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
|
+
- '206341'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1453507200'
|
43
43
|
body:
|
44
44
|
encoding: ASCII-8BIT
|
45
45
|
string: !binary |-
|
@@ -151,5 +151,5 @@ http_interactions:
|
|
151
151
|
YXBpL3YxL2NsYXNzaWZ5L3RheG9ub215L2lhYi1xYWcvSUFCMTkiCiAgICB9
|
152
152
|
XSwKICAgICJpZCI6ICJJQUIxOS0yMiIKICB9XQp9
|
153
153
|
http_version:
|
154
|
-
recorded_at:
|
154
|
+
recorded_at: Fri, 22 Jan 2016 13:17:58 GMT
|
155
155
|
recorded_with: VCR 2.9.3
|
@@ -21,9 +21,9 @@ http_interactions:
|
|
21
21
|
message: Forbidden
|
22
22
|
headers:
|
23
23
|
Server:
|
24
|
-
- openresty/1.
|
24
|
+
- openresty/1.9.3.2
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Fri, 22 Jan 2016 13:18:03 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: Fri, 22 Jan 2016 13:18:03 GMT
|
38
38
|
recorded_with: VCR 2.9.3
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://api.aylien.com/api/v1/classify
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string: wrong_param=CCTV+footage+shows+the+moment+a+suicide+car+bomber+detonates%0A++++++a+device+in+Beirut+on+Tuesday.+The+incident+took+place+in+an+area%0A++++++of+support+for+Hezbollah+and+left+four+people+dead+with+many+more+wounded.%0A++++++A+group+calling+itself+the+al-Nusra+Front+in+Lebanon+has+claimed%0A++++++responsibility+for+the+attack+saying+it+was+in+retaliation+for%0A++++++Hezbollah%27s+military+support+of+president+Bashar+al-Assad%27s+forces+in+Syria
|
8
|
+
string: wrong_param=CCTV+footage+shows+the+moment+a+suicide+car+bomber+detonates%0A++++++a+device+in+Beirut+on+Tuesday.+The+incident+took+place+in+an+area%0A++++++of+support+for+Hezbollah+and+left+four+people+dead+with+many+more+wounded.%0A++++++A+group+calling+itself+the+al-Nusra+Front+in+Lebanon+has+claimed%0A++++++responsibility+for+the+attack+saying+it+was+in+retaliation+for%0A++++++Hezbollah%27s+military+support+of+president+Bashar+al-Assad%27s+forces+in+Syria&class=voyage&class=travel&class=president
|
9
9
|
headers:
|
10
10
|
Accept-Encoding:
|
11
11
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: Bad Request
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.9.3.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Fri, 22 Jan 2016 13:17:45 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
|
+
- '206385'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1453507200'
|
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: Fri, 22 Jan 2016 13:17:45 GMT
|
57
57
|
recorded_with: VCR 2.9.3
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.9.3.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Fri, 22 Jan 2016 13:18:03 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
|
+
- '206336'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1453507200'
|
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: Fri, 22 Jan 2016 13:18:03 GMT
|
57
57
|
recorded_with: VCR 2.9.3
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: Forbidden
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.9.3.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Fri, 22 Jan 2016 13:18:02 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: Fri, 22 Jan 2016 13:18:02 GMT
|
42
42
|
recorded_with: VCR 2.9.3
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.9.3.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Fri, 22 Jan 2016 13:18:07 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
|
+
- '206334'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1453507200'
|
43
43
|
body:
|
44
44
|
encoding: ASCII-8BIT
|
45
45
|
string: !binary |-
|
@@ -142,5 +142,5 @@ http_interactions:
|
|
142
142
|
aG5vbG9neSIsCiAgICAiY29kZSI6ICIwNDAwMzAwMCIsCiAgICAiY29uZmlk
|
143
143
|
ZW5jZSI6IDEuMAogIH1dCn0=
|
144
144
|
http_version:
|
145
|
-
recorded_at:
|
145
|
+
recorded_at: Fri, 22 Jan 2016 13:18:07 GMT
|
146
146
|
recorded_with: VCR 2.9.3
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.9.3.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Fri, 22 Jan 2016 13:18:08 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
|
+
- '206333'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1453507200'
|
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: Fri, 22 Jan 2016 13:18:08 GMT
|
57
57
|
recorded_with: VCR 2.9.3
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.9.3.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Fri, 22 Jan 2016 13:18:05 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
|
+
- '206335'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1453507200'
|
43
43
|
body:
|
44
44
|
encoding: ASCII-8BIT
|
45
45
|
string: !binary |-
|
@@ -142,5 +142,5 @@ http_interactions:
|
|
142
142
|
aG5vbG9neSIsCiAgICAiY29kZSI6ICIwNDAwMzAwMCIsCiAgICAiY29uZmlk
|
143
143
|
ZW5jZSI6IDEuMAogIH1dCn0=
|
144
144
|
http_version:
|
145
|
-
recorded_at:
|
145
|
+
recorded_at: Fri, 22 Jan 2016 13:18:05 GMT
|
146
146
|
recorded_with: VCR 2.9.3
|
@@ -21,9 +21,9 @@ http_interactions:
|
|
21
21
|
message: Forbidden
|
22
22
|
headers:
|
23
23
|
Server:
|
24
|
-
- openresty/1.
|
24
|
+
- openresty/1.9.3.2
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Fri, 22 Jan 2016 13:16:53 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: Fri, 22 Jan 2016 13:16:53 GMT
|
38
38
|
recorded_with: VCR 2.9.3
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: Bad Request
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.9.3.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Fri, 22 Jan 2016 13:16:53 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
|
+
- '206426'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1453507200'
|
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: Fri, 22 Jan 2016 13:16:53 GMT
|
57
57
|
recorded_with: VCR 2.9.3
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.9.3.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Fri, 22 Jan 2016 13:16:49 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
|
+
- '206447'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1453507200'
|
43
43
|
X-Mashape-Billing:
|
44
44
|
- requests=7
|
45
45
|
body:
|
@@ -55,7 +55,7 @@ http_interactions:
|
|
55
55
|
Hezbollah and left four people dead with many more wounded.\n A group
|
56
56
|
calling itself the al-Nusra Front in Lebanon has claimed\n responsibility
|
57
57
|
for the attack saying it was in retaliation for\n Hezbollah''s military
|
58
|
-
support of president Bashar al-Assad''s forces in Syria","videos":[],"title":"","feeds":[]}},{"endpoint":"language","result":{"lang":"en","confidence":0.
|
58
|
+
support of president Bashar al-Assad''s forces in Syria","videos":[],"title":"","feeds":[]}},{"endpoint":"language","result":{"lang":"en","confidence":0.9999958694124844}},{"endpoint":"entities","result":{"language":"en","entities":{"date":["Tuesday"],"location":["Beirut","Lebanon","Syria"],"keyword":["support
|
59
59
|
of president Bashar","support for Hezbollah","support","Hezbollah","suicide","bomber","device","Bashar","president","Beirut","moment","Tuesday","military","responsibility","incident","Lebanon","Front","al-Assad","group","dead"],"organization":["Hezbollah"]}}},{"endpoint":"concepts","result":{"language":"en","concepts":{"http://dbpedia.org/resource/Bashar_al-Assad":{"surfaceForms":[{"string":"Bashar
|
60
60
|
al-Assad","score":1.0,"offset":402}],"types":["http://dbpedia.org/ontology/Agent","http://www.wikidata.org/entity/Q215627","http://schema.org/Person","http://xmlns.com/foaf/0.1/Person","http://www.wikidata.org/entity/Q5","http://dbpedia.org/ontology/Person"],"support":1139},"http://dbpedia.org/resource/Syria":{"surfaceForms":[{"string":"Syria","score":0.9999997769859554,"offset":430}],"types":["http://dbpedia.org/ontology/Country"],"support":26138},"http://dbpedia.org/resource/Beirut":{"surfaceForms":[{"string":"Beirut","score":0.9999825931459005,"offset":79}],"types":["http://dbpedia.org/ontology/Location","http://schema.org/Place","http://dbpedia.org/ontology/Place","http://dbpedia.org/ontology/PopulatedPlace","http://www.wikidata.org/entity/Q486972","http://dbpedia.org/ontology/Settlement"],"support":8176},"http://dbpedia.org/resource/Hezbollah":{"surfaceForms":[{"string":"Hezbollah","score":1.0,"offset":154}],"types":["http://dbpedia.org/ontology/PoliticalParty"],"support":5001},"http://dbpedia.org/resource/Al-Nusra_Front":{"surfaceForms":[{"string":"al-Nusra
|
61
61
|
Front","score":1.0,"offset":247}],"types":[""],"support":411},"http://dbpedia.org/resource/Closed-circuit_television":{"surfaceForms":[{"string":"CCTV","score":0.9997132750008201,"offset":0}],"types":[""],"support":1724},"http://dbpedia.org/resource/Bomber":{"surfaceForms":[{"string":"bomber","score":0.9524579388652058,"offset":44}],"types":[""],"support":3798},"http://dbpedia.org/resource/Lebanon":{"surfaceForms":[{"string":"Lebanon","score":0.9999999930598733,"offset":265}],"types":["http://dbpedia.org/ontology/Country"],"support":23160}}}},{"endpoint":"classify","result":{"language":"en","categories":[{"label":"defence
|
@@ -66,5 +66,5 @@ http_interactions:
|
|
66
66
|
was in retaliation for\n Hezbollah''s military support of president Bashar
|
67
67
|
al-Assad''s forces in Syria"]}}]}'
|
68
68
|
http_version:
|
69
|
-
recorded_at:
|
69
|
+
recorded_at: Fri, 22 Jan 2016 13:16:49 GMT
|
70
70
|
recorded_with: VCR 2.9.3
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: Forbidden
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.9.3.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Fri, 22 Jan 2016 13:16:50 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: Fri, 22 Jan 2016 13:16:50 GMT
|
42
42
|
recorded_with: VCR 2.9.3
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.9.3.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Fri, 22 Jan 2016 13:16:52 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
|
+
- '206440'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1453507200'
|
43
43
|
X-Mashape-Billing:
|
44
44
|
- requests=7
|
45
45
|
body:
|
@@ -239,7 +239,7 @@ http_interactions:
|
|
239
239
|
Y2guY29tLzIwMTQvMTAvMjAvdGhlLXN1cGVyLXNsaW0ta2luZGxlLXZveWFn
|
240
240
|
ZS1pcy1hLWdyZWF0LXRyYXZlbC1jb21wYW5pb24vZmVlZC8iXX19LHsiZW5k
|
241
241
|
cG9pbnQiOiJsYW5ndWFnZSIsInJlc3VsdCI6eyJsYW5nIjoiZW4iLCJjb25m
|
242
|
-
|
242
|
+
aWRlbmNlIjowLjk5OTk5NzcwMDcwMjY0NjZ9fSx7ImVuZHBvaW50IjoiZW50
|
243
243
|
aXRpZXMiLCJyZXN1bHQiOnsibGFuZ3VhZ2UiOiJlbiIsImVudGl0aWVzIjp7
|
244
244
|
Im9yZ2FuaXphdGlvbiI6WyJQZW5ndWluIEJvb2tzIiwiUGVuZ3VpbiJdLCJs
|
245
245
|
b2NhdGlvbiI6WyJMQ0QuIiwiRXVyb3BlIl0sImtleXdvcmQiOlsiVm95YWdl
|
@@ -311,5 +311,5 @@ http_interactions:
|
|
311
311
|
ZWFkaW5nIGV4cGVyaWVuY2UgYWtpbiB0byB0aHVtYmluZyB0aHJvdWdoIGEg
|
312
312
|
UGVuZ3VpbiBDbGFzc2ljLiJdfX1dfQ==
|
313
313
|
http_version:
|
314
|
-
recorded_at:
|
314
|
+
recorded_at: Fri, 22 Jan 2016 13:16:52 GMT
|
315
315
|
recorded_with: VCR 2.9.3
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.9.3.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Fri, 22 Jan 2016 13:16:52 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
|
+
- '206433'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1453507200'
|
43
43
|
X-Mashape-Billing:
|
44
44
|
- requests=7
|
45
45
|
body:
|
@@ -55,7 +55,7 @@ http_interactions:
|
|
55
55
|
Hezbollah and left four people dead with many more wounded.\n A group
|
56
56
|
calling itself the al-Nusra Front in Lebanon has claimed\n responsibility
|
57
57
|
for the attack saying it was in retaliation for\n Hezbollah''s military
|
58
|
-
support of president Bashar al-Assad''s forces in Syria","videos":[],"title":"","feeds":[]}},{"endpoint":"language","result":{"lang":"en","confidence":0.
|
58
|
+
support of president Bashar al-Assad''s forces in Syria","videos":[],"title":"","feeds":[]}},{"endpoint":"language","result":{"lang":"en","confidence":0.9999963726596195}},{"endpoint":"entities","result":{"language":"en","entities":{"date":["Tuesday"],"location":["Beirut","Lebanon","Syria"],"keyword":["support
|
59
59
|
of president Bashar","support for Hezbollah","support","Hezbollah","suicide","bomber","device","Bashar","president","Beirut","moment","Tuesday","military","responsibility","incident","Lebanon","Front","al-Assad","group","dead"],"organization":["Hezbollah"]}}},{"endpoint":"concepts","result":{"language":"en","concepts":{"http://dbpedia.org/resource/Bashar_al-Assad":{"surfaceForms":[{"string":"Bashar
|
60
60
|
al-Assad","score":1.0,"offset":402}],"types":["http://dbpedia.org/ontology/Agent","http://www.wikidata.org/entity/Q215627","http://schema.org/Person","http://xmlns.com/foaf/0.1/Person","http://www.wikidata.org/entity/Q5","http://dbpedia.org/ontology/Person"],"support":1139},"http://dbpedia.org/resource/Syria":{"surfaceForms":[{"string":"Syria","score":0.9999997769859554,"offset":430}],"types":["http://dbpedia.org/ontology/Country"],"support":26138},"http://dbpedia.org/resource/Beirut":{"surfaceForms":[{"string":"Beirut","score":0.9999825931459005,"offset":79}],"types":["http://dbpedia.org/ontology/Location","http://schema.org/Place","http://dbpedia.org/ontology/Place","http://dbpedia.org/ontology/PopulatedPlace","http://www.wikidata.org/entity/Q486972","http://dbpedia.org/ontology/Settlement"],"support":8176},"http://dbpedia.org/resource/Hezbollah":{"surfaceForms":[{"string":"Hezbollah","score":1.0,"offset":154}],"types":["http://dbpedia.org/ontology/PoliticalParty"],"support":5001},"http://dbpedia.org/resource/Al-Nusra_Front":{"surfaceForms":[{"string":"al-Nusra
|
61
61
|
Front","score":1.0,"offset":247}],"types":[""],"support":411},"http://dbpedia.org/resource/Closed-circuit_television":{"surfaceForms":[{"string":"CCTV","score":0.9997132750008201,"offset":0}],"types":[""],"support":1724},"http://dbpedia.org/resource/Bomber":{"surfaceForms":[{"string":"bomber","score":0.9524579388652058,"offset":44}],"types":[""],"support":3798},"http://dbpedia.org/resource/Lebanon":{"surfaceForms":[{"string":"Lebanon","score":0.9999999930598733,"offset":265}],"types":["http://dbpedia.org/ontology/Country"],"support":23160}}}},{"endpoint":"classify","result":{"language":"en","categories":[{"label":"defence
|
@@ -66,5 +66,5 @@ http_interactions:
|
|
66
66
|
was in retaliation for\n Hezbollah''s military support of president Bashar
|
67
67
|
al-Assad''s forces in Syria"]}}]}'
|
68
68
|
http_version:
|
69
|
-
recorded_at:
|
69
|
+
recorded_at: Fri, 22 Jan 2016 13:16:52 GMT
|
70
70
|
recorded_with: VCR 2.9.3
|