aylien_text_api 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -1
  3. data/README.md +1 -1
  4. data/aylien_text_api.gemspec +2 -2
  5. data/lib/aylien_text_api/client.rb +41 -12
  6. data/lib/aylien_text_api/configuration.rb +2 -1
  7. data/lib/aylien_text_api/connection.rb +2 -2
  8. data/lib/aylien_text_api/version.rb +1 -1
  9. data/spec/fixtures/aylien_text_api/client/classify_with_invalid_client.yml +3 -3
  10. data/spec/fixtures/aylien_text_api/client/classify_with_invalid_params.yml +18 -9
  11. data/spec/fixtures/aylien_text_api/client/classify_with_text.yml +7 -7
  12. data/spec/fixtures/aylien_text_api/client/classify_with_unauthenticated_client.yml +5 -5
  13. data/spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml +7 -7
  14. data/spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml +7 -7
  15. data/spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml +7 -7
  16. data/spec/fixtures/aylien_text_api/client/combined_with_invalid_client.yml +38 -0
  17. data/spec/fixtures/aylien_text_api/client/combined_with_invalid_params.yml +57 -0
  18. data/spec/fixtures/aylien_text_api/client/combined_with_text.yml +70 -0
  19. data/spec/fixtures/aylien_text_api/client/combined_with_unauthenticated_client.yml +42 -0
  20. data/spec/fixtures/aylien_text_api/client/combined_with_valid_url.yml +315 -0
  21. data/spec/fixtures/aylien_text_api/client/combined_with_value_as_text.yml +70 -0
  22. data/spec/fixtures/aylien_text_api/client/combined_with_value_as_valid_url.yml +315 -0
  23. data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml +3 -3
  24. data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml +18 -9
  25. data/spec/fixtures/aylien_text_api/client/concepts_with_text.yml +42 -13
  26. data/spec/fixtures/aylien_text_api/client/concepts_with_unauthenticated_client.yml +5 -5
  27. data/spec/fixtures/aylien_text_api/client/concepts_with_valid_url.yml +89 -100
  28. data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml +42 -13
  29. data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml +89 -100
  30. data/spec/fixtures/aylien_text_api/client/entities_with_invalid_client.yml +3 -3
  31. data/spec/fixtures/aylien_text_api/client/entities_with_invalid_params.yml +9 -9
  32. data/spec/fixtures/aylien_text_api/client/entities_with_text.yml +19 -12
  33. data/spec/fixtures/aylien_text_api/client/entities_with_unauthenticated_client.yml +5 -5
  34. data/spec/fixtures/aylien_text_api/client/entities_with_valid_url.yml +459 -456
  35. data/spec/fixtures/aylien_text_api/client/entities_with_value_as_text.yml +19 -12
  36. data/spec/fixtures/aylien_text_api/client/entities_with_value_as_valid_url.yml +459 -456
  37. data/spec/fixtures/aylien_text_api/client/extract_with_invalid_client.yml +3 -3
  38. data/spec/fixtures/aylien_text_api/client/extract_with_invalid_params.yml +19 -10
  39. data/spec/fixtures/aylien_text_api/client/extract_with_unauthenticated_client.yml +5 -5
  40. data/spec/fixtures/aylien_text_api/client/extract_with_valid_url.yml +7 -7
  41. data/spec/fixtures/aylien_text_api/client/extract_with_value_as_text.yml +18 -9
  42. data/spec/fixtures/aylien_text_api/client/extract_with_value_as_valid_url.yml +7 -7
  43. data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_client.yml +3 -3
  44. data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_params.yml +18 -9
  45. data/spec/fixtures/aylien_text_api/client/hashtags_with_text.yml +10 -11
  46. data/spec/fixtures/aylien_text_api/client/hashtags_with_unauthenticated_client.yml +5 -5
  47. data/spec/fixtures/aylien_text_api/client/hashtags_with_valid_url.yml +12 -12
  48. data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_text.yml +10 -11
  49. data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_valid_url.yml +12 -12
  50. data/spec/fixtures/aylien_text_api/client/image_tags_with_invalid_client.yml +3 -3
  51. data/spec/fixtures/aylien_text_api/client/image_tags_with_invalid_params.yml +7 -7
  52. data/spec/fixtures/aylien_text_api/client/image_tags_with_unauthenticated_client.yml +5 -5
  53. data/spec/fixtures/aylien_text_api/client/image_tags_with_valid_url.yml +10 -9
  54. data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_text.yml +7 -7
  55. data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_valid_url.yml +10 -9
  56. data/spec/fixtures/aylien_text_api/client/language_with_invalid_client.yml +3 -3
  57. data/spec/fixtures/aylien_text_api/client/language_with_invalid_params.yml +18 -9
  58. data/spec/fixtures/aylien_text_api/client/language_with_unauthenticated_client.yml +5 -5
  59. data/spec/fixtures/aylien_text_api/client/language_with_valid_text.yml +9 -9
  60. data/spec/fixtures/aylien_text_api/client/language_with_valid_url.yml +8 -8
  61. data/spec/fixtures/aylien_text_api/client/language_with_value_as_text.yml +8 -8
  62. data/spec/fixtures/aylien_text_api/client/language_with_value_as_valid_url.yml +8 -8
  63. data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_client.yml +3 -3
  64. data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_params.yml +7 -7
  65. data/spec/fixtures/aylien_text_api/client/microformats_with_unauthenticated_client.yml +5 -5
  66. data/spec/fixtures/aylien_text_api/client/microformats_with_valid_url.yml +8 -8
  67. data/spec/fixtures/aylien_text_api/client/microformats_with_value_as_valid_url.yml +8 -8
  68. data/spec/fixtures/aylien_text_api/client/related_with_invalid_client.yml +3 -3
  69. data/spec/fixtures/aylien_text_api/client/related_with_invalid_params.yml +24 -10
  70. data/spec/fixtures/aylien_text_api/client/related_with_phrase.yml +47 -47
  71. data/spec/fixtures/aylien_text_api/client/related_with_unauthenticated_client.yml +5 -5
  72. data/spec/fixtures/aylien_text_api/client/related_with_value_as_phrase.yml +47 -47
  73. data/spec/fixtures/aylien_text_api/client/related_with_value_as_valid_url.yml +23 -9
  74. data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_client.yml +3 -3
  75. data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_params.yml +18 -9
  76. data/spec/fixtures/aylien_text_api/client/sentiment_with_text.yml +8 -8
  77. data/spec/fixtures/aylien_text_api/client/sentiment_with_unauthenticated_client.yml +5 -5
  78. data/spec/fixtures/aylien_text_api/client/sentiment_with_valid_url.yml +8 -8
  79. data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_text.yml +8 -8
  80. data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_valid_url.yml +8 -8
  81. data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_client.yml +3 -3
  82. data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_params.yml +23 -10
  83. data/spec/fixtures/aylien_text_api/client/summarize_with_title_and_text.yml +7 -7
  84. data/spec/fixtures/aylien_text_api/client/summarize_with_unauthenticated_client.yml +5 -5
  85. data/spec/fixtures/aylien_text_api/client/summarize_with_valid_url.yml +7 -7
  86. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_title.yml +7 -7
  87. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_without_title.yml +18 -10
  88. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_valid_url.yml +7 -7
  89. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_client.yml +3 -3
  90. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_params.yml +7 -7
  91. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_text.yml +7 -7
  92. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_unauthenticated_client.yml +5 -5
  93. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_valid_url.yml +7 -7
  94. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_text.yml +7 -7
  95. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_valid_url.yml +7 -7
  96. data/spec/lib/aylien_text_api/client_spec.rb +1 -0
  97. data/spec/lib/aylien_text_api/combined.rb +88 -0
  98. metadata +25 -9
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.2.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
- - Mon, 16 Mar 2015 14:33:18 GMT
26
+ - Thu, 06 Aug 2015 16:59:21 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: Mon, 16 Mar 2015 14:33:18 GMT
37
+ recorded_at: Thu, 06 Aug 2015 16:59:21 GMT
38
38
  recorded_with: VCR 2.9.3
@@ -5,19 +5,19 @@ http_interactions:
5
5
  uri: https://api.aylien.com/api/v1/extract
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: text=The+oil-rich+billionaires+of+the+Gulf+have+planted%0A++++++++++++++++a+flag+at+the+heart+of+the+sporting+landscape+in+recent+years.
8
+ string: wrong_param=The+oil-rich+billionaires+of+the+Gulf+have+planted%0A++++++++++++++++a+flag+at+the+heart+of+the+sporting+landscape+in+recent+years.
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.2.0
15
+ - Aylien Text API Ruby Gem 0.3.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
- App-Id:
18
+ X-Aylien-Textapi-Application-Id:
19
19
  - "<PASSWORD>"
20
- App-Key:
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
- - Mon, 16 Mar 2015 14:33:17 GMT
30
+ - Thu, 06 Aug 2015 16:59:22 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
34
- - '70'
34
+ - '218'
35
35
  Connection:
36
36
  - keep-alive
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '205553'
40
+ - '206162'
41
41
  X-Ratelimit-Reset:
42
- - '1426550400'
42
+ - '1438905600'
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"error" : "requirement failed: you must either provide url or html."}'
45
+ string: |-
46
+ {
47
+ "error": "requirement failed: either html or url is required",
48
+ "errors": [{
49
+ "reason": "required",
50
+ "message": "either html or url is required",
51
+ "locationType": "parameter",
52
+ "location": "url"
53
+ }]
54
+ }
46
55
  http_version:
47
- recorded_at: Mon, 16 Mar 2015 14:33:17 GMT
56
+ recorded_at: Thu, 06 Aug 2015 16:59:22 GMT
48
57
  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.2.0
15
+ - Aylien Text API Ruby Gem 0.3.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
- App-Id:
18
+ X-Aylien-Textapi-Application-Id:
19
19
  - random_string
20
- App-Key:
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
- - Mon, 16 Mar 2015 14:33:17 GMT
30
+ - Thu, 06 Aug 2015 16:59:22 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: Mon, 16 Mar 2015 14:33:17 GMT
41
+ recorded_at: Thu, 06 Aug 2015 16:59:22 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.2.0
15
+ - Aylien Text API Ruby Gem 0.3.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
- App-Id:
18
+ X-Aylien-Textapi-Application-Id:
19
19
  - "<PASSWORD>"
20
- App-Key:
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
- - Mon, 16 Mar 2015 14:33:19 GMT
30
+ - Thu, 06 Aug 2015 16:59:21 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
- - '205552'
40
+ - '206163'
41
41
  X-Ratelimit-Reset:
42
- - '1426550400'
42
+ - '1438905600'
43
43
  body:
44
44
  encoding: ASCII-8BIT
45
45
  string: !binary |-
@@ -294,5 +294,5 @@ http_interactions:
294
294
  d2VzdC4iLAogICJ2aWRlb3MiOiBbXSwKICAidGl0bGUiOiAiTmV3IGNlbnRy
295
295
  ZSBvZiB0aGUgc3BvcnRpbmcgd29ybGQ/IiwKICAiZmVlZHMiOiBbXQp9
296
296
  http_version:
297
- recorded_at: Mon, 16 Mar 2015 14:33:19 GMT
297
+ recorded_at: Thu, 06 Aug 2015 16:59:21 GMT
298
298
  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.2.0
15
+ - Aylien Text API Ruby Gem 0.3.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
- App-Id:
18
+ X-Aylien-Textapi-Application-Id:
19
19
  - "<PASSWORD>"
20
- App-Key:
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
- - Mon, 16 Mar 2015 14:33:15 GMT
30
+ - Thu, 06 Aug 2015 16:59:22 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
34
- - '70'
34
+ - '218'
35
35
  Connection:
36
36
  - keep-alive
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '205564'
40
+ - '206161'
41
41
  X-Ratelimit-Reset:
42
- - '1426550400'
42
+ - '1438905600'
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"error" : "requirement failed: you must either provide url or html."}'
45
+ string: |-
46
+ {
47
+ "error": "requirement failed: either html or url is required",
48
+ "errors": [{
49
+ "reason": "required",
50
+ "message": "either html or url is required",
51
+ "locationType": "parameter",
52
+ "location": "url"
53
+ }]
54
+ }
46
55
  http_version:
47
- recorded_at: Mon, 16 Mar 2015 14:33:15 GMT
56
+ recorded_at: Thu, 06 Aug 2015 16:59:23 GMT
48
57
  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.2.0
15
+ - Aylien Text API Ruby Gem 0.3.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
- App-Id:
18
+ X-Aylien-Textapi-Application-Id:
19
19
  - "<PASSWORD>"
20
- App-Key:
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
- - Mon, 16 Mar 2015 14:33:16 GMT
30
+ - Thu, 06 Aug 2015 16:59:24 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
- - '205554'
40
+ - '206160'
41
41
  X-Ratelimit-Reset:
42
- - '1426550400'
42
+ - '1438905600'
43
43
  body:
44
44
  encoding: ASCII-8BIT
45
45
  string: !binary |-
@@ -294,5 +294,5 @@ http_interactions:
294
294
  d2VzdC4iLAogICJ2aWRlb3MiOiBbXSwKICAidGl0bGUiOiAiTmV3IGNlbnRy
295
295
  ZSBvZiB0aGUgc3BvcnRpbmcgd29ybGQ/IiwKICAiZmVlZHMiOiBbXQp9
296
296
  http_version:
297
- recorded_at: Mon, 16 Mar 2015 14:33:16 GMT
297
+ recorded_at: Thu, 06 Aug 2015 16:59:24 GMT
298
298
  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.2.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
- - Mon, 16 Mar 2015 14:33:34 GMT
26
+ - Thu, 06 Aug 2015 16:59:48 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: Mon, 16 Mar 2015 14:33:34 GMT
37
+ recorded_at: Thu, 06 Aug 2015 16:59:48 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.2.0
15
+ - Aylien Text API Ruby Gem 0.3.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
- App-Id:
18
+ X-Aylien-Textapi-Application-Id:
19
19
  - "<PASSWORD>"
20
- App-Key:
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
- - Mon, 16 Mar 2015 14:33:33 GMT
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
- - '70'
34
+ - '219'
35
35
  Connection:
36
36
  - keep-alive
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '205541'
40
+ - '206078'
41
41
  X-Ratelimit-Reset:
42
- - '1426550400'
42
+ - '1438905600'
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"error" : "requirement failed: you must either provide url or text."}'
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: Mon, 16 Mar 2015 14:33:33 GMT
56
+ recorded_at: Thu, 06 Aug 2015 16:59:46 GMT
48
57
  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.2.0
15
+ - Aylien Text API Ruby Gem 0.3.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
- App-Id:
18
+ X-Aylien-Textapi-Application-Id:
19
19
  - "<PASSWORD>"
20
- App-Key:
20
+ X-Aylien-Textapi-Application-Key:
21
21
  - "<PASSWORD>"
22
22
  response:
23
23
  status:
@@ -27,19 +27,19 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.7.7.2
29
29
  Date:
30
- - Mon, 16 Mar 2015 14:33:33 GMT
30
+ - Thu, 06 Aug 2015 16:59:47 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
34
- - '634'
34
+ - '595'
35
35
  Connection:
36
36
  - keep-alive
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '205540'
40
+ - '206077'
41
41
  X-Ratelimit-Reset:
42
- - '1426550400'
42
+ - '1438905600'
43
43
  body:
44
44
  encoding: ASCII-8BIT
45
45
  string: !binary |-
@@ -55,9 +55,8 @@ http_interactions:
55
55
  YXMgb24gQ2hyb21lXG4gICAgICB0aHJvdWdoIHRoZSBHb29nbGUgQ2FzdCBi
56
56
  cm93c2VyIGV4dGVuc2lvbi4iLAogICJsYW5ndWFnZSI6ICJlbiIsCiAgImhh
57
57
  c2h0YWdzIjogWyIjU29mdHdhcmVEZXZlbG9wbWVudEtpdCIsICIjU0RLIiwg
58
- IiNHb29nbGUiLCAiI0Jyb3dzZXJFeHRlbnNpb24iLCAiI0FuZHJvaWQiLCAi
59
- I0lPUyIsICIjV2ViQXBwbGljYXRpb24iLCAiI1RlbGV2aXNpb24iLCAiI1RW
60
- Il0KfQ==
58
+ IiNDaHJvbWVjYXN0IiwgIiNBbmRyb2lkIiwgIiNJT1MiLCAiI1dlYkFwcGxp
59
+ Y2F0aW9uIl0KfQ==
61
60
  http_version:
62
- recorded_at: Mon, 16 Mar 2015 14:33:33 GMT
61
+ recorded_at: Thu, 06 Aug 2015 16:59:47 GMT
63
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.2.0
15
+ - Aylien Text API Ruby Gem 0.3.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
- App-Id:
18
+ X-Aylien-Textapi-Application-Id:
19
19
  - random_string
20
- App-Key:
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
- - Mon, 16 Mar 2015 14:33:37 GMT
30
+ - Thu, 06 Aug 2015 16:59:47 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: Mon, 16 Mar 2015 14:33:37 GMT
41
+ recorded_at: Thu, 06 Aug 2015 16:59:47 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.2.0
15
+ - Aylien Text API Ruby Gem 0.3.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
- App-Id:
18
+ X-Aylien-Textapi-Application-Id:
19
19
  - "<PASSWORD>"
20
- App-Key:
20
+ X-Aylien-Textapi-Application-Key:
21
21
  - "<PASSWORD>"
22
22
  response:
23
23
  status:
@@ -27,19 +27,19 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.7.7.2
29
29
  Date:
30
- - Mon, 16 Mar 2015 14:33:39 GMT
30
+ - Thu, 06 Aug 2015 16:59:50 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
34
- - '1525'
34
+ - '1512'
35
35
  Connection:
36
36
  - keep-alive
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '205537'
40
+ - '206075'
41
41
  X-Ratelimit-Reset:
42
- - '1426550400'
42
+ - '1438905600'
43
43
  body:
44
44
  encoding: ASCII-8BIT
45
45
  string: !binary |-
@@ -73,10 +73,10 @@ http_interactions:
73
73
  bHkgc2VlIHdoaWxzdCB3YXRjaGluZyB0aGUgZ2FtZSBvbiBUViBvciBpbiB0
74
74
  aGUgc3RhbmRzLCBub3Qgb25lcyB0aGF0IHlvdSBjYW4gbm9ybWFsbHkgc2Vl
75
75
  IG9uIHRoZSBmaWVsZC5cIiIsCiAgImxhbmd1YWdlIjogImVuIiwKICAiaGFz
76
- aHRhZ3MiOiBbIiNMaW9uZWxNZXNzaSIsICIjQmFyY2Vsb25hIiwgIiNBcmdl
77
- bnRpbmEiLCAiI0ZyYW5jZSIsICIjUGFyaXNTYWludEdlcm1haW5GQyIsICIj
78
- R2VyYXJkb01hcnRpbm8iLCAiI0JhbGxvbkRPciIsICIjUkFDMSIsICIjUmFk
79
- aW9Ccm9hZGNhc3RpbmciLCAiI1RlbGV2aXNpb24iLCAiI1RWIl0KfQ==
76
+ aHRhZ3MiOiBbIiNMaW9uZWxNZXNzaSIsICIjRkNCYXJjZWxvbmEiLCAiI0Zy
77
+ YW5jZSIsICIjUGFyaXNTYWludEdlcm1haW5GQyIsICIjR2VyYXJkb01hcnRp
78
+ bm8iLCAiI1JBQzEiLCAiI0FyZ2VudGluYU5hdGlvbmFsRm9vdGJhbGxUZWFt
79
+ IiwgIiNKb3NlcE1hcmlhQmFydG9tZXUiXQp9
80
80
  http_version:
81
- recorded_at: Mon, 16 Mar 2015 14:33:39 GMT
81
+ recorded_at: Thu, 06 Aug 2015 16:59:50 GMT
82
82
  recorded_with: VCR 2.9.3