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,86 +27,86 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Thu, 06 Aug 2015 16:59:12 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
34
|
-
- '
|
34
|
+
- '1470'
|
35
35
|
Connection:
|
36
36
|
- keep-alive
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '206170'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1438905600'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: |-
|
46
46
|
{
|
47
47
|
"phrase": "android",
|
48
48
|
"related": [{
|
49
|
+
"phrase": "android version",
|
50
|
+
"distance": 0.3989213705062866
|
51
|
+
}, {
|
49
52
|
"phrase": "ios",
|
50
|
-
"distance": 0.
|
53
|
+
"distance": 0.41522765159606934
|
51
54
|
}, {
|
52
|
-
"phrase": "
|
53
|
-
"distance": 0.
|
55
|
+
"phrase": "android devices",
|
56
|
+
"distance": 0.423676073551178
|
54
57
|
}, {
|
55
|
-
"phrase": "
|
56
|
-
"distance": 0.
|
58
|
+
"phrase": "android lollipop",
|
59
|
+
"distance": 0.4261924624443054
|
57
60
|
}, {
|
58
|
-
"phrase": "
|
59
|
-
"distance": 0.
|
61
|
+
"phrase": "iphone",
|
62
|
+
"distance": 0.42704862356185913
|
60
63
|
}, {
|
61
|
-
"phrase": "
|
62
|
-
"distance": 0.
|
64
|
+
"phrase": "android os",
|
65
|
+
"distance": 0.42750751972198486
|
63
66
|
}, {
|
64
|
-
"phrase": "
|
65
|
-
"distance": 0.
|
67
|
+
"phrase": "froyo",
|
68
|
+
"distance": 0.4317677617073059
|
66
69
|
}, {
|
67
70
|
"phrase": "smartphone",
|
68
|
-
"distance": 0.
|
71
|
+
"distance": 0.4510107636451721
|
69
72
|
}, {
|
70
|
-
"phrase": "
|
71
|
-
"distance": 0.
|
72
|
-
}, {
|
73
|
-
"phrase": "webos",
|
74
|
-
"distance": 0.7951686382293701
|
73
|
+
"phrase": "android platform",
|
74
|
+
"distance": 0.45518678426742554
|
75
75
|
}, {
|
76
|
-
"phrase": "
|
77
|
-
"distance": 0.
|
76
|
+
"phrase": "ios platforms",
|
77
|
+
"distance": 0.45898914337158203
|
78
78
|
}, {
|
79
|
-
"phrase": "
|
80
|
-
"distance": 0.
|
79
|
+
"phrase": "touchwiz ui",
|
80
|
+
"distance": 0.4686887264251709
|
81
81
|
}, {
|
82
|
-
"phrase": "
|
83
|
-
"distance": 0.
|
82
|
+
"phrase": "ios devices",
|
83
|
+
"distance": 0.47086143493652344
|
84
84
|
}, {
|
85
|
-
"phrase": "
|
86
|
-
"distance": 0.
|
85
|
+
"phrase": "ice cream sandwich",
|
86
|
+
"distance": 0.4727413058280945
|
87
87
|
}, {
|
88
|
-
"phrase": "
|
89
|
-
"distance": 0.
|
88
|
+
"phrase": "android device",
|
89
|
+
"distance": 0.4732778072357178
|
90
90
|
}, {
|
91
|
-
"phrase": "
|
92
|
-
"distance": 0.
|
91
|
+
"phrase": "apple ios",
|
92
|
+
"distance": 0.47654372453689575
|
93
93
|
}, {
|
94
|
-
"phrase": "
|
95
|
-
"distance": 0.
|
94
|
+
"phrase": "windows phone",
|
95
|
+
"distance": 0.47724878787994385
|
96
96
|
}, {
|
97
|
-
"phrase": "
|
98
|
-
"distance": 0.
|
97
|
+
"phrase": "ios version",
|
98
|
+
"distance": 0.47820836305618286
|
99
99
|
}, {
|
100
|
-
"phrase": "
|
101
|
-
"distance": 0.
|
100
|
+
"phrase": "app",
|
101
|
+
"distance": 0.4802556037902832
|
102
102
|
}, {
|
103
|
-
"phrase": "
|
104
|
-
"distance": 0.
|
103
|
+
"phrase": "custom roms",
|
104
|
+
"distance": 0.4839458465576172
|
105
105
|
}, {
|
106
|
-
"phrase": "
|
107
|
-
"distance": 0.
|
106
|
+
"phrase": "android apps",
|
107
|
+
"distance": 0.4847920536994934
|
108
108
|
}]
|
109
109
|
}
|
110
110
|
http_version:
|
111
|
-
recorded_at:
|
111
|
+
recorded_at: Thu, 06 Aug 2015 16:59:12 GMT
|
112
112
|
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:13 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:13 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,86 +27,86 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Thu, 06 Aug 2015 16:59:11 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
34
|
-
- '
|
34
|
+
- '1470'
|
35
35
|
Connection:
|
36
36
|
- keep-alive
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '206172'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
42
|
+
- '1438905600'
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: |-
|
46
46
|
{
|
47
47
|
"phrase": "android",
|
48
48
|
"related": [{
|
49
|
+
"phrase": "android version",
|
50
|
+
"distance": 0.3989213705062866
|
51
|
+
}, {
|
49
52
|
"phrase": "ios",
|
50
|
-
"distance": 0.
|
53
|
+
"distance": 0.41522765159606934
|
51
54
|
}, {
|
52
|
-
"phrase": "
|
53
|
-
"distance": 0.
|
55
|
+
"phrase": "android devices",
|
56
|
+
"distance": 0.423676073551178
|
54
57
|
}, {
|
55
|
-
"phrase": "
|
56
|
-
"distance": 0.
|
58
|
+
"phrase": "android lollipop",
|
59
|
+
"distance": 0.4261924624443054
|
57
60
|
}, {
|
58
|
-
"phrase": "
|
59
|
-
"distance": 0.
|
61
|
+
"phrase": "iphone",
|
62
|
+
"distance": 0.42704862356185913
|
60
63
|
}, {
|
61
|
-
"phrase": "
|
62
|
-
"distance": 0.
|
64
|
+
"phrase": "android os",
|
65
|
+
"distance": 0.42750751972198486
|
63
66
|
}, {
|
64
|
-
"phrase": "
|
65
|
-
"distance": 0.
|
67
|
+
"phrase": "froyo",
|
68
|
+
"distance": 0.4317677617073059
|
66
69
|
}, {
|
67
70
|
"phrase": "smartphone",
|
68
|
-
"distance": 0.
|
71
|
+
"distance": 0.4510107636451721
|
69
72
|
}, {
|
70
|
-
"phrase": "
|
71
|
-
"distance": 0.
|
72
|
-
}, {
|
73
|
-
"phrase": "webos",
|
74
|
-
"distance": 0.7951686382293701
|
73
|
+
"phrase": "android platform",
|
74
|
+
"distance": 0.45518678426742554
|
75
75
|
}, {
|
76
|
-
"phrase": "
|
77
|
-
"distance": 0.
|
76
|
+
"phrase": "ios platforms",
|
77
|
+
"distance": 0.45898914337158203
|
78
78
|
}, {
|
79
|
-
"phrase": "
|
80
|
-
"distance": 0.
|
79
|
+
"phrase": "touchwiz ui",
|
80
|
+
"distance": 0.4686887264251709
|
81
81
|
}, {
|
82
|
-
"phrase": "
|
83
|
-
"distance": 0.
|
82
|
+
"phrase": "ios devices",
|
83
|
+
"distance": 0.47086143493652344
|
84
84
|
}, {
|
85
|
-
"phrase": "
|
86
|
-
"distance": 0.
|
85
|
+
"phrase": "ice cream sandwich",
|
86
|
+
"distance": 0.4727413058280945
|
87
87
|
}, {
|
88
|
-
"phrase": "
|
89
|
-
"distance": 0.
|
88
|
+
"phrase": "android device",
|
89
|
+
"distance": 0.4732778072357178
|
90
90
|
}, {
|
91
|
-
"phrase": "
|
92
|
-
"distance": 0.
|
91
|
+
"phrase": "apple ios",
|
92
|
+
"distance": 0.47654372453689575
|
93
93
|
}, {
|
94
|
-
"phrase": "
|
95
|
-
"distance": 0.
|
94
|
+
"phrase": "windows phone",
|
95
|
+
"distance": 0.47724878787994385
|
96
96
|
}, {
|
97
|
-
"phrase": "
|
98
|
-
"distance": 0.
|
97
|
+
"phrase": "ios version",
|
98
|
+
"distance": 0.47820836305618286
|
99
99
|
}, {
|
100
|
-
"phrase": "
|
101
|
-
"distance": 0.
|
100
|
+
"phrase": "app",
|
101
|
+
"distance": 0.4802556037902832
|
102
102
|
}, {
|
103
|
-
"phrase": "
|
104
|
-
"distance": 0.
|
103
|
+
"phrase": "custom roms",
|
104
|
+
"distance": 0.4839458465576172
|
105
105
|
}, {
|
106
|
-
"phrase": "
|
107
|
-
"distance": 0.
|
106
|
+
"phrase": "android apps",
|
107
|
+
"distance": 0.4847920536994934
|
108
108
|
}]
|
109
109
|
}
|
110
110
|
http_version:
|
111
|
-
recorded_at:
|
111
|
+
recorded_at: Thu, 06 Aug 2015 16:59:11 GMT
|
112
112
|
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,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:12 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
|
+
- '206171'
|
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:12 GMT
|
48
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.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:26 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:26 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,22 +27,31 @@ http_interactions:
|
|
27
27
|
Server:
|
28
28
|
- openresty/1.7.7.2
|
29
29
|
Date:
|
30
|
-
-
|
30
|
+
- Thu, 06 Aug 2015 16:59:24 GMT
|
31
31
|
Content-Type:
|
32
32
|
- application/json;charset=UTF-8
|
33
33
|
Content-Length:
|
34
|
-
- '
|
34
|
+
- '219'
|
35
35
|
Connection:
|
36
36
|
- keep-alive
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '207000'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '206159'
|
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: either text or url is required",
|
48
|
+
"errors": [{
|
49
|
+
"reason": "required",
|
50
|
+
"message": "either text or url is required",
|
51
|
+
"locationType": "parameter",
|
52
|
+
"location": "text"
|
53
|
+
}]
|
54
|
+
}
|
46
55
|
http_version:
|
47
|
-
recorded_at:
|
56
|
+
recorded_at: Thu, 06 Aug 2015 16:59:24 GMT
|
48
57
|
recorded_with: VCR 2.9.3
|