aylien_text_api 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/lib/aylien_text_api/client.rb +15 -0
- data/lib/aylien_text_api/configuration.rb +2 -1
- data/lib/aylien_text_api/version.rb +1 -1
- data/spec/fixtures/aylien_text_api/client/classify_with_invalid_client.yml +4 -4
- 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 +6 -6
- data/spec/fixtures/aylien_text_api/client/classify_with_unauthenticated_client.yml +4 -4
- data/spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml +4 -4
- data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/concepts_with_text.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/concepts_with_unauthenticated_client.yml +4 -4
- data/spec/fixtures/aylien_text_api/client/concepts_with_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/entities_with_invalid_client.yml +4 -4
- data/spec/fixtures/aylien_text_api/client/entities_with_invalid_params.yml +17 -8
- data/spec/fixtures/aylien_text_api/client/entities_with_text.yml +10 -10
- data/spec/fixtures/aylien_text_api/client/entities_with_unauthenticated_client.yml +4 -4
- data/spec/fixtures/aylien_text_api/client/entities_with_valid_url.yml +455 -456
- data/spec/fixtures/aylien_text_api/client/entities_with_value_as_text.yml +10 -10
- data/spec/fixtures/aylien_text_api/client/entities_with_value_as_valid_url.yml +455 -455
- data/spec/fixtures/aylien_text_api/client/extract_with_invalid_client.yml +4 -4
- 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 +4 -4
- data/spec/fixtures/aylien_text_api/client/extract_with_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/extract_with_value_as_text.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/extract_with_value_as_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_client.yml +4 -4
- data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_params.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/hashtags_with_text.yml +9 -8
- data/spec/fixtures/aylien_text_api/client/hashtags_with_unauthenticated_client.yml +4 -4
- data/spec/fixtures/aylien_text_api/client/hashtags_with_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_text.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/image_tags_with_invalid_client.yml +38 -0
- data/spec/fixtures/aylien_text_api/client/image_tags_with_invalid_params.yml +62 -0
- data/spec/fixtures/aylien_text_api/client/image_tags_with_unauthenticated_client.yml +42 -0
- data/spec/fixtures/aylien_text_api/client/image_tags_with_valid_url.yml +48 -0
- data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_text.yml +62 -0
- data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_valid_url.yml +48 -0
- data/spec/fixtures/aylien_text_api/client/language_with_invalid_client.yml +4 -4
- data/spec/fixtures/aylien_text_api/client/language_with_invalid_params.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/language_with_unauthenticated_client.yml +4 -4
- data/spec/fixtures/aylien_text_api/client/language_with_valid_text.yml +8 -8
- data/spec/fixtures/aylien_text_api/client/language_with_valid_url.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/language_with_value_as_text.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/language_with_value_as_valid_url.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_client.yml +4 -4
- data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_params.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/microformats_with_unauthenticated_client.yml +4 -4
- data/spec/fixtures/aylien_text_api/client/microformats_with_valid_url.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/microformats_with_value_as_valid_url.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/related_with_invalid_client.yml +4 -4
- 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 +6 -6
- data/spec/fixtures/aylien_text_api/client/related_with_unauthenticated_client.yml +4 -4
- data/spec/fixtures/aylien_text_api/client/related_with_value_as_phrase.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/related_with_value_as_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_client.yml +4 -4
- data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_params.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/sentiment_with_text.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/sentiment_with_unauthenticated_client.yml +4 -4
- 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 +6 -6
- 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 +4 -4
- data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_params.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/summarize_with_title_and_text.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/summarize_with_unauthenticated_client.yml +4 -4
- data/spec/fixtures/aylien_text_api/client/summarize_with_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_title.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_without_title.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_valid_url.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_client.yml +4 -4
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_params.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_text.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_unauthenticated_client.yml +4 -4
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_valid_url.yml +10 -9
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_text.yml +6 -6
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_valid_url.yml +10 -9
- data/spec/lib/aylien_text_api/client_spec.rb +1 -0
- data/spec/lib/aylien_text_api/image_tags.rb +79 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20ee124fe1cac32cfeb459fd4776bc76ac628e7b
|
4
|
+
data.tar.gz: d4b8551a7720dd1c18421f763c86234dcc23b83a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db49a0f853a629237977c787c17b7adf1271ae0ab1dd613890793b9e269ae95a5abd7880a8c20fcdfdb0af2bd80ec829a57f39d72ea1a25b35f6f6af78274419
|
7
|
+
data.tar.gz: 09d540b49a58d8e3927090c63d508d360550456800919f991d32bf1025c772d4e5f22a01405c6650913cd48335920d233f59b410de0e2590ea8c58f777d02b8f
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -258,6 +258,21 @@ module AylienTextApi
|
|
258
258
|
Configuration::ENDPOINTS[:unsupervised_classify])
|
259
259
|
Connection.new(endpoint, params, config).request
|
260
260
|
end
|
261
|
+
|
262
|
+
# Assigns relevant tags to an image.
|
263
|
+
#
|
264
|
+
# @param [String] value (nil) URL
|
265
|
+
# @option params [String] :url The URL
|
266
|
+
#
|
267
|
+
# @return [Hash, nil] A hash of result. See
|
268
|
+
# http://aylien.com/text-api-doc#image_tags for more information
|
269
|
+
# on the data returned.
|
270
|
+
#
|
271
|
+
def image_tags(value=nil, params={})
|
272
|
+
endpoint, params, config = common_endpoint(value, params,
|
273
|
+
Configuration::ENDPOINTS[:image_tags])
|
274
|
+
Connection.new(endpoint, params, config).request
|
275
|
+
end
|
261
276
|
|
262
277
|
private
|
263
278
|
|
@@ -36,7 +36,8 @@ module AylienTextApi
|
|
36
36
|
sentiment: 'sentiment',
|
37
37
|
summarize: 'summarize',
|
38
38
|
microformats: 'microformats',
|
39
|
-
unsupervised_classify: 'classify/unsupervised'
|
39
|
+
unsupervised_classify: 'classify/unsupervised',
|
40
|
+
image_tags: 'image-tags'
|
40
41
|
}
|
41
42
|
|
42
43
|
# Build accessor methods for every config options so we can do this, for example:
|
@@ -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.2.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
response:
|
@@ -21,9 +21,9 @@ http_interactions:
|
|
21
21
|
message: Forbidden
|
22
22
|
headers:
|
23
23
|
Server:
|
24
|
-
- openresty/1.
|
24
|
+
- openresty/1.7.7.2
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Mon, 16 Mar 2015 14:32:56 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: Mon, 16 Mar 2015 14:32:56 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.2.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
App-Id:
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: Bad Request
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Mon, 16 Mar 2015 14:32:52 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
@@ -37,12 +37,12 @@ http_interactions:
|
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '205606'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1426550400'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: '{"error" : "requirement failed: you must either provide url or text."}'
|
46
46
|
http_version:
|
47
|
-
recorded_at:
|
47
|
+
recorded_at: Mon, 16 Mar 2015 14:32:52 GMT
|
48
48
|
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.2.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
App-Id:
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Mon, 16 Mar 2015 14:32: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
|
+
- '205607'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1426550400'
|
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: Mon, 16 Mar 2015 14:32:52 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.2.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
App-Id:
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: Forbidden
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Mon, 16 Mar 2015 14:32:52 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: Mon, 16 Mar 2015 14:32:52 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.2.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
App-Id:
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Mon, 16 Mar 2015 14:32:55 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
|
+
- '205603'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1426550400'
|
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: Mon, 16 Mar 2015 14:32:55 GMT
|
146
146
|
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.2.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
App-Id:
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Mon, 16 Mar 2015 14:32:54 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
|
+
- '205604'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1426550400'
|
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: Mon, 16 Mar 2015 14:32:54 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.2.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
App-Id:
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Mon, 16 Mar 2015 14:32:54 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
|
+
- '205605'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1426550400'
|
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: Mon, 16 Mar 2015 14:32:54 GMT
|
146
146
|
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.2.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
response:
|
@@ -21,9 +21,9 @@ http_interactions:
|
|
21
21
|
message: Forbidden
|
22
22
|
headers:
|
23
23
|
Server:
|
24
|
-
- openresty/1.
|
24
|
+
- openresty/1.7.7.2
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Mon, 16 Mar 2015 14:33:30 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: Mon, 16 Mar 2015 14:33:30 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.2.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
App-Id:
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: Bad Request
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Mon, 16 Mar 2015 14:33:28 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
@@ -37,12 +37,12 @@ http_interactions:
|
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '205545'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1426550400'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: '{"error" : "requirement failed: you must either provide url or text."}'
|
46
46
|
http_version:
|
47
|
-
recorded_at:
|
47
|
+
recorded_at: Mon, 16 Mar 2015 14:33:28 GMT
|
48
48
|
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.2.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
App-Id:
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Mon, 16 Mar 2015 14:33:27 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
|
+
- '205546'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1426550400'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: '{"text":"Barack Hussein Obama II is the 44th and current\n President
|
@@ -48,5 +48,5 @@ http_interactions:
|
|
48
48
|
Hussein Obama II","score":1.0,"offset":0}],"types":["http://dbpedia.org/ontology/Agent","http://schema.org/Person","http://xmlns.com/foaf/0.1/Person","http://dbpedia.org/ontology/Person","http://dbpedia.org/ontology/OfficeHolder"],"support":14686},"http://dbpedia.org/resource/United_States":{"surfaceForms":[{"string":"United
|
49
49
|
States","score":0.9999067449772838,"offset":71}],"types":["http://schema.org/Place","http://dbpedia.org/ontology/Place","http://dbpedia.org/ontology/PopulatedPlace","http://schema.org/Country","http://dbpedia.org/ontology/Country"],"support":538753}}}'
|
50
50
|
http_version:
|
51
|
-
recorded_at:
|
51
|
+
recorded_at: Mon, 16 Mar 2015 14:33:27 GMT
|
52
52
|
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.2.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
18
|
App-Id:
|
@@ -25,9 +25,9 @@ http_interactions:
|
|
25
25
|
message: Forbidden
|
26
26
|
headers:
|
27
27
|
Server:
|
28
|
-
- openresty/1.
|
28
|
+
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Mon, 16 Mar 2015 14:33:30 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: Mon, 16 Mar 2015 14:33:30 GMT
|
42
42
|
recorded_with: VCR 2.9.3
|