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.
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,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:37 GMT
30
+ - Thu, 06 Aug 2015 16:59:48 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
- - '205538'
40
+ - '206076'
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:37 GMT
61
+ recorded_at: Thu, 06 Aug 2015 16:59:48 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
  - "<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:36 GMT
30
+ - Thu, 06 Aug 2015 16:59:51 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
- - '205539'
40
+ - '206074'
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:36 GMT
81
+ recorded_at: Thu, 06 Aug 2015 16:59:51 GMT
82
82
  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:12 GMT
26
+ - Thu, 06 Aug 2015 16:59:39 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:12 GMT
37
+ recorded_at: Thu, 06 Aug 2015 16:59:39 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,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:11 GMT
30
+ - Thu, 06 Aug 2015 16:59:41 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
- - '205585'
40
+ - '206102'
41
41
  X-Ratelimit-Reset:
42
- - '1426550400'
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: Mon, 16 Mar 2015 14:33:11 GMT
61
+ recorded_at: Thu, 06 Aug 2015 16:59:41 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.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:11 GMT
30
+ - Thu, 06 Aug 2015 16:59:38 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:11 GMT
41
+ recorded_at: Thu, 06 Aug 2015 16:59:38 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,22 +27,23 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.7.7.2
29
29
  Date:
30
- - Mon, 16 Mar 2015 14:33:11 GMT
30
+ - Thu, 06 Aug 2015 16:59:41 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
34
- - '3154'
34
+ - '3196'
35
35
  Connection:
36
36
  - keep-alive
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '205596'
40
+ - '206112'
41
41
  X-Ratelimit-Reset:
42
- - '1426550400'
42
+ - '1438905600'
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"image":"http://aylien.com/images/michaelo.png","tags":[{"tag":"man","confidence":0.3828240407001911},{"tag":"male","confidence":0.34313045945162235},{"tag":"caucasian","confidence":0.2857856334762856},{"tag":"person","confidence":0.24621460504435},{"tag":"portrait","confidence":0.2409671660455617},{"tag":"people","confidence":0.24095074058961377},{"tag":"adult","confidence":0.23400797884900842},{"tag":"business","confidence":0.2113370112960779},{"tag":"face","confidence":0.20614719474012386},{"tag":"suit","confidence":0.20015157772804085},{"tag":"expression","confidence":0.1890961804063794},{"tag":"handsome","confidence":0.18364288542228124},{"tag":"businessman","confidence":0.18248856663307414},{"tag":"looking","confidence":0.1789521780936461},{"tag":"black","confidence":0.15240090119668576},{"tag":"sitting","confidence":0.15074092827821586},{"tag":"holding","confidence":0.14561924820222114},{"tag":"professional","confidence":0.14229122444812603},{"tag":"happy","confidence":0.13667237504697832},{"tag":"office","confidence":0.1336233977195797},{"tag":"smile","confidence":0.13292314359043356},{"tag":"corporate","confidence":0.1271356986026965},{"tag":"casual","confidence":0.12633317203035813},{"tag":"attractive","confidence":0.1258087772276324},{"tag":"work","confidence":0.12278615003240921},{"tag":"smiling","confidence":0.12226115114925779},{"tag":"one","confidence":0.11835568606522216},{"tag":"hair","confidence":0.11725824855078498},{"tag":"serious","confidence":0.1142303995120345},{"tag":"fashion","confidence":0.11302837841775058},{"tag":"mature","confidence":0.11142953706468728},{"tag":"working","confidence":0.10564698394058411},{"tag":"hand","confidence":0.10508710095508628},{"tag":"manager","confidence":0.10372543070923515},{"tag":"men","confidence":0.10349135863737166},{"tag":"model","confidence":0.1027018579474755},{"tag":"executive","confidence":0.1026028024919642},{"tag":"lifestyle","confidence":0.10169704329140629},{"tag":"make","confidence":0.10119220655297764},{"tag":"head","confidence":0.10027349874606023},{"tag":"dark","confidence":0.10009514504823279},{"tag":"success","confidence":0.09807697608191061},{"tag":"sexy","confidence":0.0978626810559277},{"tag":"american","confidence":0.09614158586376689},{"tag":"senior","confidence":0.09482034864538473},{"tag":"occupation","confidence":0.09350171728102956},{"tag":"tie","confidence":0.08762841867319845},{"tag":"successful","confidence":0.0844585710665222},{"tag":"businesswoman","confidence":0.08412731613019783},{"tag":"posing","confidence":0.08244083111047358},{"tag":"job","confidence":0.08220536161999352},{"tag":"indoors","confidence":0.08102732400906743},{"tag":"human","confidence":0.0774760469879749},{"tag":"close","confidence":0.07707740981937584},{"tag":"cheerful","confidence":0.07558562806720315},{"tag":"fun","confidence":0.07494794445518303},{"tag":"boy","confidence":0.07238959336645391},{"tag":"pretty","confidence":0.07230463533929983},{"tag":"eyes","confidence":0.07151279760048233},{"tag":"hands","confidence":0.07129851472391158},{"tag":"jacket","confidence":0.07105841937235287},{"tag":"youth","confidence":0.07081949507274561}]}'
45
+ string: '{"image":"http://aylien.com/images/michaelo.png","tags":[{"tag":"man","confidence":0.41905796781562576},{"tag":"male","confidence":0.38725180560137573},{"tag":"person","confidence":0.2950782772093383},{"tag":"caucasian","confidence":0.2881993803315241},{"tag":"adult","confidence":0.28600742180091276},{"tag":"people","confidence":0.2813499227975374},{"tag":"portrait","confidence":0.25560805734323855},{"tag":"happy","confidence":0.198022691012874},{"tag":"expression","confidence":0.1827944845790072},{"tag":"face","confidence":0.17406795361041832},{"tag":"smiling","confidence":0.1713750312011917},{"tag":"professional","confidence":0.16758256025372414},{"tag":"men","confidence":0.1608681317846293},{"tag":"handsome","confidence":0.16018362540776995},{"tag":"businessman","confidence":0.15903475619887117},{"tag":"looking","confidence":0.15796172529047076},{"tag":"business","confidence":0.15571183908125724},{"tag":"smile","confidence":0.15438355348978636},{"tag":"mature","confidence":0.14688734460740072},{"tag":"attractive","confidence":0.1336136704401174},{"tag":"lifestyle","confidence":0.129920435341427},{"tag":"hand","confidence":0.12735821368129105},{"tag":"holding","confidence":0.12355007061531391},{"tag":"standing","confidence":0.12295081288362765},{"tag":"boy","confidence":0.12164446472125125},{"tag":"executive","confidence":0.11187875772377731},{"tag":"black","confidence":0.11010645161151267},{"tag":"suit","confidence":0.10927890958559065},{"tag":"tie","confidence":0.10618284567649314},{"tag":"one
46
+ person","confidence":0.10453506692042304},{"tag":"senior","confidence":0.10431091385198427},{"tag":"guy","confidence":0.10391495635602893},{"tag":"casual","confidence":0.10351146297213304},{"tag":"close","confidence":0.1034506611459088},{"tag":"work","confidence":0.10211116753559671},{"tag":"head","confidence":0.10156530612354944},{"tag":"serious","confidence":0.09743612615954547},{"tag":"model","confidence":0.09610429154317336},{"tag":"sitting","confidence":0.09588822579904123},{"tag":"hair","confidence":0.09586617336366489},{"tag":"occupation","confidence":0.0945039512484196},{"tag":"glasses","confidence":0.09449592370619914},{"tag":"hat","confidence":0.09400743010186874},{"tag":"alone","confidence":0.09328376866442029},{"tag":"job","confidence":0.0914226414526386},{"tag":"one","confidence":0.0911875152975763},{"tag":"office","confidence":0.0899068862644172},{"tag":"gesture","confidence":0.08865037616793664},{"tag":"corporate","confidence":0.08828812052973949},{"tag":"happiness","confidence":0.08670638566536541},{"tag":"phone","confidence":0.08506223334758561},{"tag":"elderly","confidence":0.07976172923998952},{"tag":"youth","confidence":0.07942132053076967},{"tag":"studio","confidence":0.0784970336252009},{"tag":"lady","confidence":0.07676805542200396},{"tag":"old","confidence":0.07663315180539713},{"tag":"worker","confidence":0.07498433825568385},{"tag":"indoors","confidence":0.07366468207622201},{"tag":"home","confidence":0.0734225587204499},{"tag":"pretty","confidence":0.07277674826275794},{"tag":"eyes","confidence":0.07229058876372464},{"tag":"uniform","confidence":0.07073310660962412},{"tag":"thinking","confidence":0.07067450196215086}]}'
46
47
  http_version:
47
- recorded_at: Mon, 16 Mar 2015 14:33:11 GMT
48
+ recorded_at: Thu, 06 Aug 2015 16:59:41 GMT
48
49
  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:12 GMT
30
+ - Thu, 06 Aug 2015 16:59:38 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
- - '205584'
40
+ - '206122'
41
41
  X-Ratelimit-Reset:
42
- - '1426550400'
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: Mon, 16 Mar 2015 14:33:12 GMT
61
+ recorded_at: Thu, 06 Aug 2015 16:59:38 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.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,23 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.7.7.2
29
29
  Date:
30
- - Mon, 16 Mar 2015 14:33:14 GMT
30
+ - Thu, 06 Aug 2015 16:59:40 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
34
- - '3157'
34
+ - '3191'
35
35
  Connection:
36
36
  - keep-alive
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '205574'
40
+ - '206122'
41
41
  X-Ratelimit-Reset:
42
- - '1426550400'
42
+ - '1438905600'
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"image":"http://aylien.com/images/michaelo.png","tags":[{"tag":"man","confidence":0.3828240410124513},{"tag":"male","confidence":0.34313045973878525},{"tag":"caucasian","confidence":0.285785633634663},{"tag":"person","confidence":0.2462146050245204},{"tag":"portrait","confidence":0.24096716620823957},{"tag":"people","confidence":0.24095074095814423},{"tag":"adult","confidence":0.23400797914615765},{"tag":"business","confidence":0.2113370115663617},{"tag":"face","confidence":0.20614719485480687},{"tag":"suit","confidence":0.20015157808011869},{"tag":"expression","confidence":0.1890961810979611},{"tag":"handsome","confidence":0.1836428859652077},{"tag":"businessman","confidence":0.18248856702840988},{"tag":"looking","confidence":0.17895217885888964},{"tag":"black","confidence":0.15240090097836684},{"tag":"sitting","confidence":0.1507409285350656},{"tag":"holding","confidence":0.1456192488789039},{"tag":"professional","confidence":0.14229122451220452},{"tag":"happy","confidence":0.13667237540706897},{"tag":"office","confidence":0.1336233978631446},{"tag":"smile","confidence":0.13292314374339223},{"tag":"corporate","confidence":0.12713569886706247},{"tag":"casual","confidence":0.12633317220619272},{"tag":"attractive","confidence":0.1258087772732743},{"tag":"work","confidence":0.12278614992850433},{"tag":"smiling","confidence":0.12226115121006557},{"tag":"one","confidence":0.11835568594657789},{"tag":"hair","confidence":0.11725824843551508},{"tag":"serious","confidence":0.1142303998193662},{"tag":"fashion","confidence":0.1130283784503821},{"tag":"mature","confidence":0.11142953701746189},{"tag":"working","confidence":0.10564698389322037},{"tag":"hand","confidence":0.10508710102416158},{"tag":"manager","confidence":0.10372543054941859},{"tag":"men","confidence":0.10349135859675394},{"tag":"model","confidence":0.10270185778931236},{"tag":"executive","confidence":0.10260280301823574},{"tag":"lifestyle","confidence":0.1016970435618995},{"tag":"make","confidence":0.10119220614714126},{"tag":"head","confidence":0.10027349902698422},{"tag":"dark","confidence":0.10009514522883245},{"tag":"success","confidence":0.09807697622427339},{"tag":"sexy","confidence":0.09786268110172859},{"tag":"american","confidence":0.09614158601812486},{"tag":"senior","confidence":0.09482034880059242},{"tag":"occupation","confidence":0.09350171731258416},{"tag":"tie","confidence":0.08762841897207142},{"tag":"successful","confidence":0.08445857118473424},{"tag":"businesswoman","confidence":0.08412731616075109},{"tag":"posing","confidence":0.08244083122508428},{"tag":"job","confidence":0.08220536164936985},{"tag":"indoors","confidence":0.08102732415619879},{"tag":"human","confidence":0.07747604679859563},{"tag":"close","confidence":0.07707740988645055},{"tag":"cheerful","confidence":0.07558562814237123},{"tag":"fun","confidence":0.07494794480640193},{"tag":"boy","confidence":0.07238959336242223},{"tag":"pretty","confidence":0.07230463530684096},{"tag":"eyes","confidence":0.0715127976534865},{"tag":"hands","confidence":0.07129851484134297},{"tag":"jacket","confidence":0.07105841931546193},{"tag":"youth","confidence":0.07081949532389974}]}'
45
+ string: '{"image":"http://aylien.com/images/michaelo.png","tags":[{"tag":"man","confidence":0.41905796753562874},{"tag":"male","confidence":0.3872518054516788},{"tag":"person","confidence":0.29507827718731},{"tag":"caucasian","confidence":0.2881993799295364},{"tag":"adult","confidence":0.2860074219923802},{"tag":"people","confidence":0.2813499226203596},{"tag":"portrait","confidence":0.2556080572502222},{"tag":"happy","confidence":0.19802269088783603},{"tag":"expression","confidence":0.1827944848628417},{"tag":"face","confidence":0.1740679535874355},{"tag":"smiling","confidence":0.17137503139393953},{"tag":"professional","confidence":0.1675825600876775},{"tag":"men","confidence":0.1608681320074672},{"tag":"handsome","confidence":0.16018362548373705},{"tag":"businessman","confidence":0.1590347564541998},{"tag":"looking","confidence":0.15796172537841166},{"tag":"business","confidence":0.15571183920061635},{"tag":"smile","confidence":0.15438355354305952},{"tag":"mature","confidence":0.14688734417404992},{"tag":"attractive","confidence":0.13361367026406698},{"tag":"lifestyle","confidence":0.1299204350581907},{"tag":"hand","confidence":0.12735821373654832},{"tag":"holding","confidence":0.12355007083642862},{"tag":"standing","confidence":0.12295081298809991},{"tag":"boy","confidence":0.12164446462158096},{"tag":"executive","confidence":0.11187875776186906},{"tag":"black","confidence":0.1101064516245634},{"tag":"suit","confidence":0.10927890953889632},{"tag":"tie","confidence":0.10618284561252113},{"tag":"one
46
+ person","confidence":0.10453506663240725},{"tag":"senior","confidence":0.10431091358732707},{"tag":"guy","confidence":0.10391495667596995},{"tag":"casual","confidence":0.10351146320671946},{"tag":"close","confidence":0.10345066083793719},{"tag":"work","confidence":0.10211116738201911},{"tag":"head","confidence":0.10156530628632796},{"tag":"serious","confidence":0.09743612615013497},{"tag":"model","confidence":0.09610429147612086},{"tag":"sitting","confidence":0.0958882257796285},{"tag":"hair","confidence":0.09586617325293308},{"tag":"occupation","confidence":0.0945039516724398},{"tag":"glasses","confidence":0.09449592350887047},{"tag":"hat","confidence":0.0940074303890231},{"tag":"alone","confidence":0.09328376822919399},{"tag":"job","confidence":0.09142264145586156},{"tag":"one","confidence":0.09118751528899795},{"tag":"office","confidence":0.08990688628490849},{"tag":"gesture","confidence":0.08865037605646554},{"tag":"corporate","confidence":0.08828812046846345},{"tag":"happiness","confidence":0.08670638584414275},{"tag":"phone","confidence":0.08506223349855711},{"tag":"elderly","confidence":0.07976172910377889},{"tag":"youth","confidence":0.07942132039716186},{"tag":"studio","confidence":0.07849703334990604},{"tag":"lady","confidence":0.0767680551179819},{"tag":"old","confidence":0.07663315164513022},{"tag":"worker","confidence":0.07498433810751128},{"tag":"indoors","confidence":0.07366468191986043},{"tag":"home","confidence":0.07342255851376338},{"tag":"pretty","confidence":0.0727767482101001},{"tag":"eyes","confidence":0.07229058875356396},{"tag":"uniform","confidence":0.07073310654159},{"tag":"thinking","confidence":0.07067450211133833}]}'
46
47
  http_version:
47
- recorded_at: Mon, 16 Mar 2015 14:33:14 GMT
48
+ recorded_at: Thu, 06 Aug 2015 16:59:40 GMT
48
49
  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:43 GMT
26
+ - Thu, 06 Aug 2015 16:59:43 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:43 GMT
37
+ recorded_at: Thu, 06 Aug 2015 16:59:43 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:40 GMT
30
+ - Thu, 06 Aug 2015 16:59:44 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
- - '205536'
40
+ - '206082'
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:40 GMT
56
+ recorded_at: Thu, 06 Aug 2015 16:59:44 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:40 GMT
30
+ - Thu, 06 Aug 2015 16:59:45 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:40 GMT
41
+ recorded_at: Thu, 06 Aug 2015 16:59:45 GMT
42
42
  recorded_with: VCR 2.9.3