aylien_text_api 0.0.4 → 0.1.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/LICENSE +1 -1
- data/lib/aylien_text_api.rb +1 -1
- data/lib/aylien_text_api/client.rb +57 -13
- data/lib/aylien_text_api/configuration.rb +14 -3
- data/lib/aylien_text_api/connection.rb +4 -2
- data/lib/aylien_text_api/error.rb +1 -1
- data/lib/aylien_text_api/version.rb +2 -2
- data/spec/fixtures/aylien_text_api/client/classify_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/classify_with_invalid_params.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/classify_with_text.yml +25 -16
- data/spec/fixtures/aylien_text_api/client/classify_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml +115 -67
- data/spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml +25 -16
- data/spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml +115 -67
- data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/concepts_with_text.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/concepts_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/concepts_with_valid_url.yml +109 -32
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml +109 -32
- data/spec/fixtures/aylien_text_api/client/entities_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/entities_with_invalid_params.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/entities_with_text.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/entities_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/entities_with_valid_url.yml +466 -271
- data/spec/fixtures/aylien_text_api/client/entities_with_value_as_text.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/entities_with_value_as_valid_url.yml +465 -271
- data/spec/fixtures/aylien_text_api/client/extract_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/extract_with_invalid_params.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/extract_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/extract_with_valid_url.yml +267 -154
- data/spec/fixtures/aylien_text_api/client/extract_with_value_as_text.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/extract_with_value_as_valid_url.yml +267 -154
- data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_params.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/hashtags_with_text.yml +31 -17
- data/spec/fixtures/aylien_text_api/client/hashtags_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/hashtags_with_valid_url.yml +51 -27
- data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_text.yml +32 -17
- data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_valid_url.yml +51 -27
- data/spec/fixtures/aylien_text_api/client/language_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/language_with_invalid_params.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/language_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/language_with_valid_text.yml +21 -9
- data/spec/fixtures/aylien_text_api/client/language_with_valid_url.yml +46 -26
- data/spec/fixtures/aylien_text_api/client/language_with_value_as_text.yml +21 -9
- data/spec/fixtures/aylien_text_api/client/language_with_value_as_valid_url.yml +46 -26
- data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_client.yml +38 -0
- data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_params.yml +62 -0
- data/spec/fixtures/aylien_text_api/client/microformats_with_unauthenticated_client.yml +42 -0
- data/spec/fixtures/aylien_text_api/client/microformats_with_valid_url.yml +84 -0
- data/spec/fixtures/aylien_text_api/client/microformats_with_value_as_valid_url.yml +84 -0
- data/spec/fixtures/aylien_text_api/client/related_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/related_with_invalid_params.yml +17 -9
- data/spec/fixtures/aylien_text_api/client/related_with_phrase.yml +80 -28
- data/spec/fixtures/aylien_text_api/client/related_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/related_with_value_as_phrase.yml +80 -28
- data/spec/fixtures/aylien_text_api/client/related_with_value_as_valid_url.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_params.yml +16 -8
- data/spec/fixtures/aylien_text_api/client/sentiment_with_text.yml +23 -21
- data/spec/fixtures/aylien_text_api/client/sentiment_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/sentiment_with_valid_url.yml +49 -26
- data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_text.yml +23 -21
- data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_valid_url.yml +49 -26
- data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_params.yml +17 -9
- data/spec/fixtures/aylien_text_api/client/summarize_with_title_and_text.yml +20 -46
- data/spec/fixtures/aylien_text_api/client/summarize_with_unauthenticated_client.yml +7 -5
- data/spec/fixtures/aylien_text_api/client/summarize_with_valid_url.yml +61 -34
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_title.yml +20 -46
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_without_title.yml +17 -9
- data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_valid_url.yml +61 -34
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_client.yml +38 -0
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_params.yml +57 -0
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_text.yml +53 -0
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_unauthenticated_client.yml +42 -0
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_valid_url.yml +96 -0
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_text.yml +57 -0
- data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_valid_url.yml +96 -0
- data/spec/lib/aylien_text_api/client_spec.rb +13 -3
- data/spec/lib/aylien_text_api/microformats.rb +66 -0
- data/spec/lib/aylien_text_api/unsupervised_classify.rb +87 -0
- metadata +105 -5
@@ -7,10 +7,12 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: text=Hello+there%21+How%27s+it+going%3F
|
9
9
|
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
10
12
|
Accept:
|
11
|
-
-
|
13
|
+
- "*/*"
|
12
14
|
User-Agent:
|
13
|
-
- Aylien Text API Ruby Gem 0.0
|
15
|
+
- Aylien Text API Ruby Gem 0.1.0
|
14
16
|
Content-Type:
|
15
17
|
- application/x-www-form-urlencoded
|
16
18
|
response:
|
@@ -21,7 +23,7 @@ http_interactions:
|
|
21
23
|
Server:
|
22
24
|
- openresty/1.5.12.1
|
23
25
|
Date:
|
24
|
-
- Tue,
|
26
|
+
- Tue, 10 Feb 2015 14:07:11 GMT
|
25
27
|
Content-Type:
|
26
28
|
- text/plain; charset=us-ascii
|
27
29
|
Transfer-Encoding:
|
@@ -29,8 +31,8 @@ http_interactions:
|
|
29
31
|
Connection:
|
30
32
|
- keep-alive
|
31
33
|
body:
|
32
|
-
encoding:
|
34
|
+
encoding: UTF-8
|
33
35
|
string: Authentication parameters missing
|
34
36
|
http_version:
|
35
|
-
recorded_at: Tue,
|
37
|
+
recorded_at: Tue, 10 Feb 2015 14:06:56 GMT
|
36
38
|
recorded_with: VCR 2.9.3
|
@@ -7,16 +7,18 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: wrong_param=Hello+there%21+How%27s+it+going%3F
|
9
9
|
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
10
12
|
Accept:
|
11
|
-
-
|
13
|
+
- "*/*"
|
12
14
|
User-Agent:
|
13
|
-
- Aylien Text API Ruby Gem 0.0
|
15
|
+
- Aylien Text API Ruby Gem 0.1.0
|
14
16
|
Content-Type:
|
15
17
|
- application/x-www-form-urlencoded
|
16
18
|
App-Id:
|
17
|
-
- <PASSWORD>
|
19
|
+
- "<PASSWORD>"
|
18
20
|
App-Key:
|
19
|
-
- <PASSWORD>
|
21
|
+
- "<PASSWORD>"
|
20
22
|
response:
|
21
23
|
status:
|
22
24
|
code: 400
|
@@ -25,16 +27,22 @@ http_interactions:
|
|
25
27
|
Server:
|
26
28
|
- openresty/1.5.12.1
|
27
29
|
Date:
|
28
|
-
- Tue,
|
30
|
+
- Tue, 10 Feb 2015 14:07:07 GMT
|
29
31
|
Content-Type:
|
30
32
|
- application/json;charset=UTF-8
|
31
33
|
Content-Length:
|
32
34
|
- '70'
|
33
35
|
Connection:
|
34
36
|
- keep-alive
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '207000'
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '205358'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1423612800'
|
35
43
|
body:
|
36
|
-
encoding:
|
37
|
-
string:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"error" : "requirement failed: you must either provide url or text."}'
|
38
46
|
http_version:
|
39
|
-
recorded_at: Tue,
|
47
|
+
recorded_at: Tue, 10 Feb 2015 14:06:52 GMT
|
40
48
|
recorded_with: VCR 2.9.3
|
@@ -7,10 +7,12 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: text=Hello+there%21+How%27s+it+going%3F
|
9
9
|
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
10
12
|
Accept:
|
11
|
-
-
|
13
|
+
- "*/*"
|
12
14
|
User-Agent:
|
13
|
-
- Aylien Text API Ruby Gem 0.0
|
15
|
+
- Aylien Text API Ruby Gem 0.1.0
|
14
16
|
Content-Type:
|
15
17
|
- application/x-www-form-urlencoded
|
16
18
|
App-Id:
|
@@ -25,7 +27,7 @@ http_interactions:
|
|
25
27
|
Server:
|
26
28
|
- openresty/1.5.12.1
|
27
29
|
Date:
|
28
|
-
- Tue,
|
30
|
+
- Tue, 10 Feb 2015 14:07:07 GMT
|
29
31
|
Content-Type:
|
30
32
|
- text/plain; charset=us-ascii
|
31
33
|
Transfer-Encoding:
|
@@ -33,8 +35,8 @@ http_interactions:
|
|
33
35
|
Connection:
|
34
36
|
- keep-alive
|
35
37
|
body:
|
36
|
-
encoding:
|
38
|
+
encoding: UTF-8
|
37
39
|
string: Authentication failed
|
38
40
|
http_version:
|
39
|
-
recorded_at: Tue,
|
41
|
+
recorded_at: Tue, 10 Feb 2015 14:06:52 GMT
|
40
42
|
recorded_with: VCR 2.9.3
|
@@ -7,16 +7,18 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: text=Hello+there%21+How%27s+it+going%3F
|
9
9
|
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
10
12
|
Accept:
|
11
|
-
-
|
13
|
+
- "*/*"
|
12
14
|
User-Agent:
|
13
|
-
- Aylien Text API Ruby Gem 0.0
|
15
|
+
- Aylien Text API Ruby Gem 0.1.0
|
14
16
|
Content-Type:
|
15
17
|
- application/x-www-form-urlencoded
|
16
18
|
App-Id:
|
17
|
-
- <PASSWORD>
|
19
|
+
- "<PASSWORD>"
|
18
20
|
App-Key:
|
19
|
-
- <PASSWORD>
|
21
|
+
- "<PASSWORD>"
|
20
22
|
response:
|
21
23
|
status:
|
22
24
|
code: 200
|
@@ -25,17 +27,27 @@ http_interactions:
|
|
25
27
|
Server:
|
26
28
|
- openresty/1.5.12.1
|
27
29
|
Date:
|
28
|
-
- Tue,
|
30
|
+
- Tue, 10 Feb 2015 14:07:11 GMT
|
29
31
|
Content-Type:
|
30
32
|
- application/json;charset=UTF-8
|
31
33
|
Content-Length:
|
32
34
|
- '96'
|
33
35
|
Connection:
|
34
36
|
- keep-alive
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '207000'
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '205354'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1423612800'
|
35
43
|
body:
|
36
|
-
encoding:
|
37
|
-
string:
|
38
|
-
|
44
|
+
encoding: UTF-8
|
45
|
+
string: |-
|
46
|
+
{
|
47
|
+
"text": "Hello there! How's it going?",
|
48
|
+
"lang": "en",
|
49
|
+
"confidence": 0.9999965950762861
|
50
|
+
}
|
39
51
|
http_version:
|
40
|
-
recorded_at: Tue,
|
52
|
+
recorded_at: Tue, 10 Feb 2015 14:06:57 GMT
|
41
53
|
recorded_with: VCR 2.9.3
|
@@ -7,16 +7,18 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: url=http%3A%2F%2Fwww.bbc.com%2Fsport%2F0%2Ffootball%2F25912393
|
9
9
|
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
10
12
|
Accept:
|
11
|
-
-
|
13
|
+
- "*/*"
|
12
14
|
User-Agent:
|
13
|
-
- Aylien Text API Ruby Gem 0.0
|
15
|
+
- Aylien Text API Ruby Gem 0.1.0
|
14
16
|
Content-Type:
|
15
17
|
- application/x-www-form-urlencoded
|
16
18
|
App-Id:
|
17
|
-
- <PASSWORD>
|
19
|
+
- "<PASSWORD>"
|
18
20
|
App-Key:
|
19
|
-
- <PASSWORD>
|
21
|
+
- "<PASSWORD>"
|
20
22
|
response:
|
21
23
|
status:
|
22
24
|
code: 200
|
@@ -25,33 +27,51 @@ http_interactions:
|
|
25
27
|
Server:
|
26
28
|
- openresty/1.5.12.1
|
27
29
|
Date:
|
28
|
-
- Tue,
|
30
|
+
- Tue, 10 Feb 2015 14:07:10 GMT
|
29
31
|
Content-Type:
|
30
32
|
- application/json;charset=UTF-8
|
31
33
|
Content-Length:
|
32
|
-
- '
|
34
|
+
- '1290'
|
33
35
|
Connection:
|
34
36
|
- keep-alive
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '207000'
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '205355'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1423612800'
|
35
43
|
body:
|
36
|
-
encoding:
|
37
|
-
string: !
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
44
|
+
encoding: ASCII-8BIT
|
45
|
+
string: !binary |-
|
46
|
+
ewogICJ0ZXh0IjogIkZvdXItdGltZSBCYWxsb24gZCdPciB3aW5uZXIgTWVz
|
47
|
+
c2ksIDI2LCBpcyByZXBvcnRlZCB0byBiZSBhIHRhcmdldCBmb3IgRnJlbmNo
|
48
|
+
IHNpZGUgUGFyaXMgU3QtR2VybWFpbi7CoFxuTWVzc2kgbWFraW5nIGNoYW5j
|
49
|
+
ZXNcbkxpb25lbCBNZXNzaSBoYXMgY3JlYXRlZCAzNiBjaGFuY2VzIGZvciBC
|
50
|
+
YXJjZWxvbmEgdGhpcyBzZWFzb24gYW5kIGhhcyBiZWVuIG9uIHRoZSB3aW5u
|
51
|
+
aW5nIHNpZGUgaW4gMTYgb2YgdGhlIDIwIGdhbWVzIGhlIGhhcyBwbGF5ZWRc
|
52
|
+
bkluIGFuIGludGVydmlldyB3aXRoIHJhZ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bCwgcGFzc2VzIHRoZSBi
|
68
|
+
YWxsIHdlbGwsIGhlIGlzIGEgZ29vZCBmaW5pc2hlciwgaGUgY2FuIHByZXNz
|
69
|
+
IGFuZCByZWNvdmVyIHRoZSBiYWxsLlxuXCJIZSBzZWVzIHBhc3NlcyB0aGF0
|
70
|
+
IG1vc3QgcGVvcGxlIGNhbiBvbmx5IHNlZSB3aGlsc3Qgd2F0Y2hpbmcgdGhl
|
71
|
+
IGdhbWUgb24gVFYgb3IgaW4gdGhlIHN0YW5kcywgbm90IG9uZXMgdGhhdCB5
|
72
|
+
b3UgY2FuIG5vcm1hbGx5IHNlZSBvbiB0aGUgZmllbGQuXCJcbkFsc28gcmVs
|
73
|
+
YXRlZCB0byB0aGlzIHN0b3J5XG4iLAogICJsYW5nIjogImVuIiwKICAiY29u
|
74
|
+
ZmlkZW5jZSI6IDAuOTk5OTk4MDk4OTI0NTU1Mgp9
|
55
75
|
http_version:
|
56
|
-
recorded_at: Tue,
|
76
|
+
recorded_at: Tue, 10 Feb 2015 14:06:55 GMT
|
57
77
|
recorded_with: VCR 2.9.3
|
@@ -7,16 +7,18 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: text=Hello+there%21+How%27s+it+going%3F
|
9
9
|
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
10
12
|
Accept:
|
11
|
-
-
|
13
|
+
- "*/*"
|
12
14
|
User-Agent:
|
13
|
-
- Aylien Text API Ruby Gem 0.0
|
15
|
+
- Aylien Text API Ruby Gem 0.1.0
|
14
16
|
Content-Type:
|
15
17
|
- application/x-www-form-urlencoded
|
16
18
|
App-Id:
|
17
|
-
- <PASSWORD>
|
19
|
+
- "<PASSWORD>"
|
18
20
|
App-Key:
|
19
|
-
- <PASSWORD>
|
21
|
+
- "<PASSWORD>"
|
20
22
|
response:
|
21
23
|
status:
|
22
24
|
code: 200
|
@@ -25,17 +27,27 @@ http_interactions:
|
|
25
27
|
Server:
|
26
28
|
- openresty/1.5.12.1
|
27
29
|
Date:
|
28
|
-
- Tue,
|
30
|
+
- Tue, 10 Feb 2015 14:07:12 GMT
|
29
31
|
Content-Type:
|
30
32
|
- application/json;charset=UTF-8
|
31
33
|
Content-Length:
|
32
34
|
- '96'
|
33
35
|
Connection:
|
34
36
|
- keep-alive
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '207000'
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '205353'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1423612800'
|
35
43
|
body:
|
36
|
-
encoding:
|
37
|
-
string:
|
38
|
-
|
44
|
+
encoding: UTF-8
|
45
|
+
string: |-
|
46
|
+
{
|
47
|
+
"text": "Hello there! How's it going?",
|
48
|
+
"lang": "en",
|
49
|
+
"confidence": 0.9999993222674556
|
50
|
+
}
|
39
51
|
http_version:
|
40
|
-
recorded_at: Tue,
|
52
|
+
recorded_at: Tue, 10 Feb 2015 14:06:57 GMT
|
41
53
|
recorded_with: VCR 2.9.3
|
@@ -7,16 +7,18 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: url=http%3A%2F%2Fwww.bbc.com%2Fsport%2F0%2Ffootball%2F25912393
|
9
9
|
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
10
12
|
Accept:
|
11
|
-
-
|
13
|
+
- "*/*"
|
12
14
|
User-Agent:
|
13
|
-
- Aylien Text API Ruby Gem 0.0
|
15
|
+
- Aylien Text API Ruby Gem 0.1.0
|
14
16
|
Content-Type:
|
15
17
|
- application/x-www-form-urlencoded
|
16
18
|
App-Id:
|
17
|
-
- <PASSWORD>
|
19
|
+
- "<PASSWORD>"
|
18
20
|
App-Key:
|
19
|
-
- <PASSWORD>
|
21
|
+
- "<PASSWORD>"
|
20
22
|
response:
|
21
23
|
status:
|
22
24
|
code: 200
|
@@ -25,33 +27,51 @@ http_interactions:
|
|
25
27
|
Server:
|
26
28
|
- openresty/1.5.12.1
|
27
29
|
Date:
|
28
|
-
- Tue,
|
30
|
+
- Tue, 10 Feb 2015 14:07:09 GMT
|
29
31
|
Content-Type:
|
30
32
|
- application/json;charset=UTF-8
|
31
33
|
Content-Length:
|
32
|
-
- '
|
34
|
+
- '1290'
|
33
35
|
Connection:
|
34
36
|
- keep-alive
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '207000'
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '205356'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1423612800'
|
35
43
|
body:
|
36
|
-
encoding:
|
37
|
-
string: !
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
44
|
+
encoding: ASCII-8BIT
|
45
|
+
string: !binary |-
|
46
|
+
ewogICJ0ZXh0IjogIkZvdXItdGltZSBCYWxsb24gZCdPciB3aW5uZXIgTWVz
|
47
|
+
c2ksIDI2LCBpcyByZXBvcnRlZCB0byBiZSBhIHRhcmdldCBmb3IgRnJlbmNo
|
48
|
+
IHNpZGUgUGFyaXMgU3QtR2VybWFpbi7CoFxuTWVzc2kgbWFraW5nIGNoYW5j
|
49
|
+
ZXNcbkxpb25lbCBNZXNzaSBoYXMgY3JlYXRlZCAzNiBjaGFuY2VzIGZvciBC
|
50
|
+
YXJjZWxvbmEgdGhpcyBzZWFzb24gYW5kIGhhcyBiZWVuIG9uIHRoZSB3aW5u
|
51
|
+
aW5nIHNpZGUgaW4gMTYgb2YgdGhlIDIwIGdhbWVzIGhlIGhhcyBwbGF5ZWRc
|
52
|
+
bkluIGFuIGludGVydmlldyB3aXRoIHJhZGlvIHN0YXRpb24gUkFDMSwgcG9z
|
53
|
+
dGVkIG9uIEJhcmNlbG9uY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vZCBmaW5pc2hlciwgaGUgY2FuIHByZXNz
|
69
|
+
IGFuZCByZWNvdmVyIHRoZSBiYWxsLlxuXCJIZSBzZWVzIHBhc3NlcyB0aGF0
|
70
|
+
IG1vc3QgcGVvcGxlIGNhbiBvbmx5IHNlZSB3aGlsc3Qgd2F0Y2hpbmcgdGhl
|
71
|
+
IGdhbWUgb24gVFYgb3IgaW4gdGhlIHN0YW5kcywgbm90IG9uZXMgdGhhdCB5
|
72
|
+
b3UgY2FuIG5vcm1hbGx5IHNlZSBvbiB0aGUgZmllbGQuXCJcbkFsc28gcmVs
|
73
|
+
YXRlZCB0byB0aGlzIHN0b3J5XG4iLAogICJsYW5nIjogImVuIiwKICAiY29u
|
74
|
+
ZmlkZW5jZSI6IDAuOTk5OTk3MzUwNDQ3NjI4Mwp9
|
55
75
|
http_version:
|
56
|
-
recorded_at: Tue,
|
76
|
+
recorded_at: Tue, 10 Feb 2015 14:06:54 GMT
|
57
77
|
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.aylien.com/api/v1/microformats
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: url=http%3A%2F%2Fcodepen.io%2Fanon%2Fpen%2FZYaKbz.html
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Aylien Text API Ruby Gem 0.1.0
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 403
|
21
|
+
message: Forbidden
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- openresty/1.5.12.1
|
25
|
+
Date:
|
26
|
+
- Tue, 10 Feb 2015 14:06:23 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/plain; charset=us-ascii
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: Authentication parameters missing
|
36
|
+
http_version:
|
37
|
+
recorded_at: Tue, 10 Feb 2015 14:06:08 GMT
|
38
|
+
recorded_with: VCR 2.9.3
|