aylien_text_api 0.2.0 → 0.3.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 +4 -1
- data/README.md +1 -1
- data/aylien_text_api.gemspec +2 -2
- data/lib/aylien_text_api/client.rb +41 -12
- data/lib/aylien_text_api/configuration.rb +2 -1
- data/lib/aylien_text_api/connection.rb +2 -2
- data/lib/aylien_text_api/version.rb +1 -1
- 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 +18 -9
- data/spec/fixtures/aylien_text_api/client/classify_with_text.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/classify_with_unauthenticated_client.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/combined_with_invalid_client.yml +38 -0
- data/spec/fixtures/aylien_text_api/client/combined_with_invalid_params.yml +57 -0
- data/spec/fixtures/aylien_text_api/client/combined_with_text.yml +70 -0
- data/spec/fixtures/aylien_text_api/client/combined_with_unauthenticated_client.yml +42 -0
- data/spec/fixtures/aylien_text_api/client/combined_with_valid_url.yml +315 -0
- data/spec/fixtures/aylien_text_api/client/combined_with_value_as_text.yml +70 -0
- data/spec/fixtures/aylien_text_api/client/combined_with_value_as_valid_url.yml +315 -0
- 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 +18 -9
- data/spec/fixtures/aylien_text_api/client/concepts_with_text.yml +42 -13
- data/spec/fixtures/aylien_text_api/client/concepts_with_unauthenticated_client.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/concepts_with_valid_url.yml +89 -100
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml +42 -13
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml +89 -100
- 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 +9 -9
- data/spec/fixtures/aylien_text_api/client/entities_with_text.yml +19 -12
- data/spec/fixtures/aylien_text_api/client/entities_with_unauthenticated_client.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/entities_with_valid_url.yml +459 -456
- data/spec/fixtures/aylien_text_api/client/entities_with_value_as_text.yml +19 -12
- data/spec/fixtures/aylien_text_api/client/entities_with_value_as_valid_url.yml +459 -456
- 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 +19 -10
- data/spec/fixtures/aylien_text_api/client/extract_with_unauthenticated_client.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/extract_with_valid_url.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/extract_with_value_as_text.yml +18 -9
- data/spec/fixtures/aylien_text_api/client/extract_with_value_as_valid_url.yml +7 -7
- 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 +18 -9
- data/spec/fixtures/aylien_text_api/client/hashtags_with_text.yml +10 -11
- data/spec/fixtures/aylien_text_api/client/hashtags_with_unauthenticated_client.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/hashtags_with_valid_url.yml +12 -12
- data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_text.yml +10 -11
- data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_valid_url.yml +12 -12
- 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 +7 -7
- data/spec/fixtures/aylien_text_api/client/image_tags_with_unauthenticated_client.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/image_tags_with_valid_url.yml +10 -9
- data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_text.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_valid_url.yml +10 -9
- 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 +18 -9
- data/spec/fixtures/aylien_text_api/client/language_with_unauthenticated_client.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/language_with_valid_text.yml +9 -9
- data/spec/fixtures/aylien_text_api/client/language_with_valid_url.yml +8 -8
- data/spec/fixtures/aylien_text_api/client/language_with_value_as_text.yml +8 -8
- data/spec/fixtures/aylien_text_api/client/language_with_value_as_valid_url.yml +8 -8
- 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 +7 -7
- data/spec/fixtures/aylien_text_api/client/microformats_with_unauthenticated_client.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/microformats_with_valid_url.yml +8 -8
- data/spec/fixtures/aylien_text_api/client/microformats_with_value_as_valid_url.yml +8 -8
- 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 +24 -10
- data/spec/fixtures/aylien_text_api/client/related_with_phrase.yml +47 -47
- data/spec/fixtures/aylien_text_api/client/related_with_unauthenticated_client.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/related_with_value_as_phrase.yml +47 -47
- data/spec/fixtures/aylien_text_api/client/related_with_value_as_valid_url.yml +23 -9
- 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 +18 -9
- data/spec/fixtures/aylien_text_api/client/sentiment_with_text.yml +8 -8
- data/spec/fixtures/aylien_text_api/client/sentiment_with_unauthenticated_client.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/sentiment_with_valid_url.yml +8 -8
- data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_text.yml +8 -8
- data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_valid_url.yml +8 -8
- 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 +23 -10
- data/spec/fixtures/aylien_text_api/client/summarize_with_title_and_text.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/summarize_with_unauthenticated_client.yml +5 -5
- data/spec/fixtures/aylien_text_api/client/summarize_with_valid_url.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_title.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_without_title.yml +18 -10
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_valid_url.yml +7 -7
- 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 +7 -7
- 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 +5 -5
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_valid_url.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_text.yml +7 -7
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_valid_url.yml +7 -7
- data/spec/lib/aylien_text_api/client_spec.rb +1 -0
- data/spec/lib/aylien_text_api/combined.rb +88 -0
- metadata +25 -9
@@ -12,12 +12,12 @@ 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.3.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
|
-
|
18
|
+
X-Aylien-Textapi-Application-Id:
|
19
19
|
- "<PASSWORD>"
|
20
|
-
|
20
|
+
X-Aylien-Textapi-Application-Key:
|
21
21
|
- "<PASSWORD>"
|
22
22
|
response:
|
23
23
|
status:
|
@@ -27,27 +27,27 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Thu, 06 Aug 2015 16:59:46 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
34
|
-
- '
|
34
|
+
- '96'
|
35
35
|
Connection:
|
36
36
|
- keep-alive
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '206079'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1438905600'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: |-
|
46
46
|
{
|
47
47
|
"text": "Hello there! How's it going?",
|
48
48
|
"lang": "en",
|
49
|
-
"confidence": 0.
|
49
|
+
"confidence": 0.9999971062451781
|
50
50
|
}
|
51
51
|
http_version:
|
52
|
-
recorded_at:
|
52
|
+
recorded_at: Thu, 06 Aug 2015 16:59:46 GMT
|
53
53
|
recorded_with: VCR 2.9.3
|
@@ -12,12 +12,12 @@ 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.3.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
|
-
|
18
|
+
X-Aylien-Textapi-Application-Id:
|
19
19
|
- "<PASSWORD>"
|
20
|
-
|
20
|
+
X-Aylien-Textapi-Application-Key:
|
21
21
|
- "<PASSWORD>"
|
22
22
|
response:
|
23
23
|
status:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Thu, 06 Aug 2015 16:59:43 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
|
+
- '206092'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1438905600'
|
43
43
|
body:
|
44
44
|
encoding: ASCII-8BIT
|
45
45
|
string: !binary |-
|
@@ -71,7 +71,7 @@ http_interactions:
|
|
71
71
|
IGdhbWUgb24gVFYgb3IgaW4gdGhlIHN0YW5kcywgbm90IG9uZXMgdGhhdCB5
|
72
72
|
b3UgY2FuIG5vcm1hbGx5IHNlZSBvbiB0aGUgZmllbGQuXCJcbkFsc28gcmVs
|
73
73
|
YXRlZCB0byB0aGlzIHN0b3J5XG4iLAogICJsYW5nIjogImVuIiwKICAiY29u
|
74
|
-
|
74
|
+
ZmlkZW5jZSI6IDAuOTk5OTk0NjA2ODM1MzM5NAp9
|
75
75
|
http_version:
|
76
|
-
recorded_at:
|
76
|
+
recorded_at: Thu, 06 Aug 2015 16:59:43 GMT
|
77
77
|
recorded_with: VCR 2.9.3
|
@@ -12,12 +12,12 @@ 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.3.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
|
-
|
18
|
+
X-Aylien-Textapi-Application-Id:
|
19
19
|
- "<PASSWORD>"
|
20
|
-
|
20
|
+
X-Aylien-Textapi-Application-Key:
|
21
21
|
- "<PASSWORD>"
|
22
22
|
response:
|
23
23
|
status:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Thu, 06 Aug 2015 16:59:44 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
@@ -37,17 +37,17 @@ http_interactions:
|
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '206081'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1438905600'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: |-
|
46
46
|
{
|
47
47
|
"text": "Hello there! How's it going?",
|
48
48
|
"lang": "en",
|
49
|
-
"confidence": 0.
|
49
|
+
"confidence": 0.9999993297091697
|
50
50
|
}
|
51
51
|
http_version:
|
52
|
-
recorded_at:
|
52
|
+
recorded_at: Thu, 06 Aug 2015 16:59:44 GMT
|
53
53
|
recorded_with: VCR 2.9.3
|
@@ -12,12 +12,12 @@ 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.3.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
|
-
|
18
|
+
X-Aylien-Textapi-Application-Id:
|
19
19
|
- "<PASSWORD>"
|
20
|
-
|
20
|
+
X-Aylien-Textapi-Application-Key:
|
21
21
|
- "<PASSWORD>"
|
22
22
|
response:
|
23
23
|
status:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Thu, 06 Aug 2015 16:59: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
|
+
- '206080'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1438905600'
|
43
43
|
body:
|
44
44
|
encoding: ASCII-8BIT
|
45
45
|
string: !binary |-
|
@@ -71,7 +71,7 @@ http_interactions:
|
|
71
71
|
IGdhbWUgb24gVFYgb3IgaW4gdGhlIHN0YW5kcywgbm90IG9uZXMgdGhhdCB5
|
72
72
|
b3UgY2FuIG5vcm1hbGx5IHNlZSBvbiB0aGUgZmllbGQuXCJcbkFsc28gcmVs
|
73
73
|
YXRlZCB0byB0aGlzIHN0b3J5XG4iLAogICJsYW5nIjogImVuIiwKICAiY29u
|
74
|
-
|
74
|
+
ZmlkZW5jZSI6IDAuOTk5OTk1NDM2Nzg3Mzc3Mwp9
|
75
75
|
http_version:
|
76
|
-
recorded_at:
|
76
|
+
recorded_at: Thu, 06 Aug 2015 16:59:45 GMT
|
77
77
|
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.3.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.7.7.2
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Thu, 06 Aug 2015 16:59:33 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, 06 Aug 2015 16:59:33 GMT
|
38
38
|
recorded_with: VCR 2.9.3
|
@@ -12,12 +12,12 @@ 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.3.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
|
-
|
18
|
+
X-Aylien-Textapi-Application-Id:
|
19
19
|
- "<PASSWORD>"
|
20
|
-
|
20
|
+
X-Aylien-Textapi-Application-Key:
|
21
21
|
- "<PASSWORD>"
|
22
22
|
response:
|
23
23
|
status:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Thu, 06 Aug 2015 16:59:32 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
|
+
- '206152'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1438905600'
|
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, 06 Aug 2015 16:59:32 GMT
|
62
62
|
recorded_with: VCR 2.9.3
|
@@ -12,12 +12,12 @@ 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.3.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
|
-
|
18
|
+
X-Aylien-Textapi-Application-Id:
|
19
19
|
- random_string
|
20
|
-
|
20
|
+
X-Aylien-Textapi-Application-Key:
|
21
21
|
- random_string
|
22
22
|
response:
|
23
23
|
status:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Thu, 06 Aug 2015 16:59:31 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, 06 Aug 2015 16:59:31 GMT
|
42
42
|
recorded_with: VCR 2.9.3
|
@@ -12,12 +12,12 @@ 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.3.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
|
-
|
18
|
+
X-Aylien-Textapi-Application-Id:
|
19
19
|
- "<PASSWORD>"
|
20
|
-
|
20
|
+
X-Aylien-Textapi-Application-Key:
|
21
21
|
- "<PASSWORD>"
|
22
22
|
response:
|
23
23
|
status:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Thu, 06 Aug 2015 16:59:32 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
|
+
- '206153'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1438905600'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: |-
|
@@ -61,7 +61,7 @@ http_interactions:
|
|
61
61
|
"familyName": "van der Harten",
|
62
62
|
"givenName": "Sally",
|
63
63
|
"honorificSuffix": "Ph.D.",
|
64
|
-
"id": "
|
64
|
+
"id": "e4a7e359ded025c9cb0bfc559044f16952021e38",
|
65
65
|
"additionalName": "K.",
|
66
66
|
"honorificPrefix": "Dr."
|
67
67
|
},
|
@@ -80,5 +80,5 @@ http_interactions:
|
|
80
80
|
}]
|
81
81
|
}
|
82
82
|
http_version:
|
83
|
-
recorded_at:
|
83
|
+
recorded_at: Thu, 06 Aug 2015 16:59:32 GMT
|
84
84
|
recorded_with: VCR 2.9.3
|
@@ -12,12 +12,12 @@ 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.3.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
|
-
|
18
|
+
X-Aylien-Textapi-Application-Id:
|
19
19
|
- "<PASSWORD>"
|
20
|
-
|
20
|
+
X-Aylien-Textapi-Application-Key:
|
21
21
|
- "<PASSWORD>"
|
22
22
|
response:
|
23
23
|
status:
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Thu, 06 Aug 2015 16:59: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
|
+
- '206154'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1438905600'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: |-
|
@@ -61,7 +61,7 @@ http_interactions:
|
|
61
61
|
"familyName": "van der Harten",
|
62
62
|
"givenName": "Sally",
|
63
63
|
"honorificSuffix": "Ph.D.",
|
64
|
-
"id": "
|
64
|
+
"id": "6e42b884077fd815ed76edef9e62bbfae53f9ec7",
|
65
65
|
"additionalName": "K.",
|
66
66
|
"honorificPrefix": "Dr."
|
67
67
|
},
|
@@ -80,5 +80,5 @@ http_interactions:
|
|
80
80
|
}]
|
81
81
|
}
|
82
82
|
http_version:
|
83
|
-
recorded_at:
|
83
|
+
recorded_at: Thu, 06 Aug 2015 16:59:31 GMT
|
84
84
|
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.3.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.7.7.2
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Thu, 06 Aug 2015 16:59:11 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, 06 Aug 2015 16:59:11 GMT
|
38
38
|
recorded_with: VCR 2.9.3
|
@@ -5,19 +5,19 @@ http_interactions:
|
|
5
5
|
uri: https://api.aylien.com/api/v1/related
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string: wrong_param
|
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.3.0
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
|
-
|
18
|
+
X-Aylien-Textapi-Application-Id:
|
19
19
|
- "<PASSWORD>"
|
20
|
-
|
20
|
+
X-Aylien-Textapi-Application-Key:
|
21
21
|
- "<PASSWORD>"
|
22
22
|
response:
|
23
23
|
status:
|
@@ -27,22 +27,36 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Thu, 06 Aug 2015 16:59:13 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
34
|
-
- '
|
34
|
+
- '360'
|
35
35
|
Connection:
|
36
36
|
- keep-alive
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '206169'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1438905600'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
|
-
string:
|
45
|
+
string: |-
|
46
|
+
{
|
47
|
+
"error": "requirement failed: Form field 'phrase' Required",
|
48
|
+
"errors": [{
|
49
|
+
"reason": "required",
|
50
|
+
"message": "Form field 'phrase' Required",
|
51
|
+
"locationType": "parameter",
|
52
|
+
"location": "phrase"
|
53
|
+
}, {
|
54
|
+
"reason": "required",
|
55
|
+
"message": "Query parameter 'phrase' Required",
|
56
|
+
"locationType": "parameter",
|
57
|
+
"location": "phrase"
|
58
|
+
}]
|
59
|
+
}
|
46
60
|
http_version:
|
47
|
-
recorded_at:
|
61
|
+
recorded_at: Thu, 06 Aug 2015 16:59:13 GMT
|
48
62
|
recorded_with: VCR 2.9.3
|