alchemy-api-rb 0.1.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 (57) hide show
  1. data/.gitignore +19 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +22 -0
  4. data/README.md +80 -0
  5. data/Rakefile +11 -0
  6. data/alchemy-api-rb.gemspec +24 -0
  7. data/lib/alchemy-api.rb +47 -0
  8. data/lib/alchemy-api/author_extraction.rb +21 -0
  9. data/lib/alchemy-api/base.rb +78 -0
  10. data/lib/alchemy-api/concept_tagging.rb +16 -0
  11. data/lib/alchemy-api/config.rb +34 -0
  12. data/lib/alchemy-api/entity_extraction.rb +15 -0
  13. data/lib/alchemy-api/keyword_extraction.rb +15 -0
  14. data/lib/alchemy-api/language_detection.rb +17 -0
  15. data/lib/alchemy-api/relation_extraction.rb +16 -0
  16. data/lib/alchemy-api/sentiment_analysis.rb +16 -0
  17. data/lib/alchemy-api/text_categorization.rb +21 -0
  18. data/lib/alchemy-api/text_extraction.rb +19 -0
  19. data/lib/alchemy-api/version.rb +3 -0
  20. data/spec/alchemy_api_spec.rb +70 -0
  21. data/spec/author_extraction_spec.rb +43 -0
  22. data/spec/base_spec.rb +20 -0
  23. data/spec/concept_tagging_spec.rb +44 -0
  24. data/spec/entity_extraction_spec.rb +44 -0
  25. data/spec/keyword_extraction_spec.rb +50 -0
  26. data/spec/language_detection_spec.rb +43 -0
  27. data/spec/relation_extraction_spec.rb +44 -0
  28. data/spec/sentiment_analysis_spec.rb +43 -0
  29. data/spec/spec_helper.rb +13 -0
  30. data/spec/text_categorization_spec.rb +43 -0
  31. data/spec/text_extraction_spec.rb +32 -0
  32. data/spec/vcr_cassettes/author_basic_html_json_search.yml +46 -0
  33. data/spec/vcr_cassettes/author_basic_url_json_search.yml +47 -0
  34. data/spec/vcr_cassettes/category_basic_html_json_search.yml +43 -0
  35. data/spec/vcr_cassettes/category_basic_text_json_search.yml +46 -0
  36. data/spec/vcr_cassettes/category_basic_url_json_search.yml +46 -0
  37. data/spec/vcr_cassettes/concept_basic_html_json_search.yml +54 -0
  38. data/spec/vcr_cassettes/concept_basic_text_json_search.yml +55 -0
  39. data/spec/vcr_cassettes/concept_basic_url_json_search.yml +75 -0
  40. data/spec/vcr_cassettes/entity_basic_html_json_search.yml +61 -0
  41. data/spec/vcr_cassettes/entity_basic_text_json_search.yml +60 -0
  42. data/spec/vcr_cassettes/entity_basic_url_json_search.yml +71 -0
  43. data/spec/vcr_cassettes/keyword_basic_html_json_search.yml +48 -0
  44. data/spec/vcr_cassettes/keyword_basic_text_json_search.yml +48 -0
  45. data/spec/vcr_cassettes/keyword_basic_url_json_search.yml +67 -0
  46. data/spec/vcr_cassettes/language_basic_html_json_search.yml +49 -0
  47. data/spec/vcr_cassettes/language_basic_text_json_search.yml +49 -0
  48. data/spec/vcr_cassettes/language_basic_url_json_search.yml +49 -0
  49. data/spec/vcr_cassettes/relation_basic_html_json_search.yml +53 -0
  50. data/spec/vcr_cassettes/relation_basic_text_json_search.yml +53 -0
  51. data/spec/vcr_cassettes/relation_basic_url_json_search.yml +58 -0
  52. data/spec/vcr_cassettes/sentiment_basic_html_json_search.yml +48 -0
  53. data/spec/vcr_cassettes/sentiment_basic_text_json_search.yml +48 -0
  54. data/spec/vcr_cassettes/sentiment_basic_url_json_search.yml +48 -0
  55. data/spec/vcr_cassettes/text_basic_html_json_search.yml +47 -0
  56. data/spec/vcr_cassettes/text_basic_url_json_search.yml +47 -0
  57. metadata +196 -0
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://access.alchemyapi.com/calls/html/HTMLGetRankedNamedEntities
6
+ body:
7
+ encoding: US-ASCII
8
+ string: apikey=cbc80670767f2e9ccecc9a6f4df6f45f207d9cda&html=<html><body>Google
9
+ is a large company</body></html>&outputMode=json
10
+ headers:
11
+ content-type:
12
+ - application/x-www-form-urlencoded
13
+ accept:
14
+ - ! '*/*'
15
+ user-agent:
16
+ - Ruby
17
+ connection:
18
+ - close
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ server:
25
+ - nginx
26
+ date:
27
+ - Sun, 17 Jun 2012 03:00:52 GMT
28
+ content-type:
29
+ - application/json
30
+ connection:
31
+ - close
32
+ content-length:
33
+ - '1370'
34
+ cache-control:
35
+ - no-cache
36
+ access-control-allow-origin:
37
+ - ! '*'
38
+ - ! '*'
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! "{\r\n \"status\": \"OK\",\r\n \"usage\": \"By accessing AlchemyAPI
42
+ or using information generated by AlchemyAPI, you are agreeing to be bound
43
+ by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
44
+ \ \"url\": \"\",\r\n \"language\": \"english\",\r\n \"entities\":
45
+ [\r\n {\r\n \"type\": \"Company\",\r\n \"relevance\":
46
+ \"0.33\",\r\n \"count\": \"2\",\r\n \"text\": \"a large
47
+ company\",\r\n \"disambiguated\": {\r\n \"subType\":
48
+ [\r\n \"AcademicInstitution\",\r\n \"AwardPresentingOrganization\",\r\n
49
+ \ \"OperatingSystemDeveloper\",\r\n \"ProgrammingLanguageDeveloper\",\r\n
50
+ \ \"SoftwareDeveloper\",\r\n \"VentureFundedCompany\"\r\n
51
+ \ ],\r\n \"name\": \"Google\",\r\n \"website\":
52
+ \"http://www.google.com/\",\r\n \"dbpedia\": \"http://dbpedia.org/resource/Google\",\r\n
53
+ \ \"freebase\": \"http://rdf.freebase.com/ns/guid.9202a8c04000641f800000000042acea\",\r\n
54
+ \ \"umbel\": \"http://umbel.org/umbel/ne/wikipedia/Google\",\r\n
55
+ \ \"yago\": \"http://mpii.de/yago/resource/Google\",\r\n \"crunchbase\":
56
+ \"http://www.crunchbase.com/company/google\",\r\n \"semanticCrunchbase\":
57
+ \"http://cb.semsol.org/company/google.rdf\"\r\n }\r\n }\r\n
58
+ \ ]\r\n}\r\n"
59
+ http_version: '1.1'
60
+ recorded_at: Sun, 17 Jun 2012 02:02:51 GMT
61
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,60 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://access.alchemyapi.com/calls/text/TextGetRankedNamedEntities
6
+ body:
7
+ encoding: US-ASCII
8
+ string: apikey=cbc80670767f2e9ccecc9a6f4df6f45f207d9cda&text=Google is a large
9
+ company&outputMode=json
10
+ headers:
11
+ content-type:
12
+ - application/x-www-form-urlencoded
13
+ accept:
14
+ - ! '*/*'
15
+ user-agent:
16
+ - Ruby
17
+ connection:
18
+ - close
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ server:
25
+ - nginx
26
+ date:
27
+ - Sun, 17 Jun 2012 03:00:52 GMT
28
+ content-type:
29
+ - application/json
30
+ connection:
31
+ - close
32
+ content-length:
33
+ - '1370'
34
+ cache-control:
35
+ - no-cache
36
+ access-control-allow-origin:
37
+ - ! '*'
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ! "{\r\n \"status\": \"OK\",\r\n \"usage\": \"By accessing AlchemyAPI
41
+ or using information generated by AlchemyAPI, you are agreeing to be bound
42
+ by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
43
+ \ \"url\": \"\",\r\n \"language\": \"english\",\r\n \"entities\":
44
+ [\r\n {\r\n \"type\": \"Company\",\r\n \"relevance\":
45
+ \"0.33\",\r\n \"count\": \"2\",\r\n \"text\": \"a large
46
+ company\",\r\n \"disambiguated\": {\r\n \"subType\":
47
+ [\r\n \"AcademicInstitution\",\r\n \"AwardPresentingOrganization\",\r\n
48
+ \ \"OperatingSystemDeveloper\",\r\n \"ProgrammingLanguageDeveloper\",\r\n
49
+ \ \"SoftwareDeveloper\",\r\n \"VentureFundedCompany\"\r\n
50
+ \ ],\r\n \"name\": \"Google\",\r\n \"website\":
51
+ \"http://www.google.com/\",\r\n \"dbpedia\": \"http://dbpedia.org/resource/Google\",\r\n
52
+ \ \"freebase\": \"http://rdf.freebase.com/ns/guid.9202a8c04000641f800000000042acea\",\r\n
53
+ \ \"umbel\": \"http://umbel.org/umbel/ne/wikipedia/Google\",\r\n
54
+ \ \"yago\": \"http://mpii.de/yago/resource/Google\",\r\n \"crunchbase\":
55
+ \"http://www.crunchbase.com/company/google\",\r\n \"semanticCrunchbase\":
56
+ \"http://cb.semsol.org/company/google.rdf\"\r\n }\r\n }\r\n
57
+ \ ]\r\n}\r\n"
58
+ http_version: '1.1'
59
+ recorded_at: Sun, 17 Jun 2012 02:02:51 GMT
60
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,71 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://access.alchemyapi.com/calls/url/URLGetRankedNamedEntities
6
+ body:
7
+ encoding: US-ASCII
8
+ string: apikey=cbc80670767f2e9ccecc9a6f4df6f45f207d9cda&url=http://www.google.com&outputMode=json
9
+ headers:
10
+ content-type:
11
+ - application/x-www-form-urlencoded
12
+ accept:
13
+ - ! '*/*'
14
+ user-agent:
15
+ - Ruby
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ server:
24
+ - nginx
25
+ date:
26
+ - Sun, 17 Jun 2012 03:00:52 GMT
27
+ content-type:
28
+ - application/json
29
+ connection:
30
+ - close
31
+ content-length:
32
+ - '2311'
33
+ cache-control:
34
+ - no-cache
35
+ access-control-allow-origin:
36
+ - ! '*'
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ! "{\r\n \"status\": \"OK\",\r\n \"usage\": \"By accessing AlchemyAPI
40
+ or using information generated by AlchemyAPI, you are agreeing to be bound
41
+ by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
42
+ \ \"url\": \"http://www.google.com/\",\r\n \"language\": \"english\",\r\n
43
+ \ \"entities\": [\r\n {\r\n \"type\": \"Company\",\r\n
44
+ \ \"relevance\": \"0.909648\",\r\n \"count\": \"2\",\r\n
45
+ \ \"text\": \"Google\",\r\n \"disambiguated\": {\r\n
46
+ \ \"subType\": [\r\n \"AcademicInstitution\",\r\n
47
+ \ \"AwardPresentingOrganization\",\r\n \"OperatingSystemDeveloper\",\r\n
48
+ \ \"ProgrammingLanguageDeveloper\",\r\n \"SoftwareDeveloper\",\r\n
49
+ \ \"VentureFundedCompany\"\r\n ],\r\n \"name\":
50
+ \"Google\",\r\n \"website\": \"http://www.google.com/\",\r\n
51
+ \ \"dbpedia\": \"http://dbpedia.org/resource/Google\",\r\n \"freebase\":
52
+ \"http://rdf.freebase.com/ns/guid.9202a8c04000641f800000000042acea\",\r\n
53
+ \ \"umbel\": \"http://umbel.org/umbel/ne/wikipedia/Google\",\r\n
54
+ \ \"yago\": \"http://mpii.de/yago/resource/Google\",\r\n \"crunchbase\":
55
+ \"http://www.crunchbase.com/company/google\",\r\n \"semanticCrunchbase\":
56
+ \"http://cb.semsol.org/company/google.rdf\"\r\n }\r\n },\r\n
57
+ \ {\r\n \"type\": \"Company\",\r\n \"relevance\":
58
+ \"0.381087\",\r\n \"count\": \"1\",\r\n \"text\": \"YouTube\",\r\n
59
+ \ \"disambiguated\": {\r\n \"subType\": [\r\n \"Website\",\r\n
60
+ \ \"BroadcastDistributor\",\r\n \"FilmDistributor\",\r\n
61
+ \ \"VentureFundedCompany\",\r\n \"AwardWinner\"\r\n
62
+ \ ],\r\n \"name\": \"YouTube\",\r\n \"website\":
63
+ \"http://www.youtube.com/\",\r\n \"dbpedia\": \"http://dbpedia.org/resource/YouTube\",\r\n
64
+ \ \"freebase\": \"http://rdf.freebase.com/ns/guid.9202a8c04000641f8000000000982f58\",\r\n
65
+ \ \"yago\": \"http://mpii.de/yago/resource/YouTube\",\r\n \"crunchbase\":
66
+ \"http://www.crunchbase.com/company/youtube\",\r\n \"semanticCrunchbase\":
67
+ \"http://cb.semsol.org/company/youtube.rdf\"\r\n }\r\n }\r\n
68
+ \ ]\r\n}\r\n"
69
+ http_version: '1.1'
70
+ recorded_at: Sun, 17 Jun 2012 02:02:51 GMT
71
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://access.alchemyapi.com/calls/html/HTMLGetRankedKeywords
6
+ body:
7
+ encoding: US-ASCII
8
+ string: apikey=cbc80670767f2e9ccecc9a6f4df6f45f207d9cda&html=<html><body>foo
9
+ bar</body></html>&outputMode=json
10
+ headers:
11
+ content-type:
12
+ - application/x-www-form-urlencoded
13
+ accept:
14
+ - ! '*/*'
15
+ user-agent:
16
+ - Ruby
17
+ connection:
18
+ - close
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ server:
25
+ - nginx
26
+ date:
27
+ - Sun, 17 Jun 2012 03:00:53 GMT
28
+ content-type:
29
+ - application/json
30
+ connection:
31
+ - close
32
+ content-length:
33
+ - '381'
34
+ cache-control:
35
+ - no-cache
36
+ access-control-allow-origin:
37
+ - ! '*'
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ! "{\r\n \"status\": \"OK\",\r\n \"usage\": \"By accessing AlchemyAPI
41
+ or using information generated by AlchemyAPI, you are agreeing to be bound
42
+ by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
43
+ \ \"url\": \"\",\r\n \"language\": \"english\",\r\n \"keywords\":
44
+ [\r\n {\r\n \"text\": \"foo bar\",\r\n \"relevance\":
45
+ \"0.987525\"\r\n }\r\n ]\r\n}\r\n"
46
+ http_version: '1.1'
47
+ recorded_at: Sun, 17 Jun 2012 02:02:52 GMT
48
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://access.alchemyapi.com/calls/text/TextGetRankedKeywords
6
+ body:
7
+ encoding: US-ASCII
8
+ string: apikey=cbc80670767f2e9ccecc9a6f4df6f45f207d9cda&text=lorem ipsum&outputMode=json
9
+ headers:
10
+ content-type:
11
+ - application/x-www-form-urlencoded
12
+ accept:
13
+ - ! '*/*'
14
+ user-agent:
15
+ - Ruby
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ server:
24
+ - nginx
25
+ date:
26
+ - Sun, 17 Jun 2012 03:00:53 GMT
27
+ content-type:
28
+ - application/json
29
+ connection:
30
+ - close
31
+ content-length:
32
+ - '385'
33
+ cache-control:
34
+ - no-cache
35
+ access-control-allow-origin:
36
+ - ! '*'
37
+ - ! '*'
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ! "{\r\n \"status\": \"OK\",\r\n \"usage\": \"By accessing AlchemyAPI
41
+ or using information generated by AlchemyAPI, you are agreeing to be bound
42
+ by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
43
+ \ \"url\": \"\",\r\n \"language\": \"english\",\r\n \"keywords\":
44
+ [\r\n {\r\n \"text\": \"lorem ipsum\",\r\n \"relevance\":
45
+ \"0.993164\"\r\n }\r\n ]\r\n}\r\n"
46
+ http_version: '1.1'
47
+ recorded_at: Sun, 17 Jun 2012 02:02:52 GMT
48
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,67 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://access.alchemyapi.com/calls/url/URLGetRankedKeywords
6
+ body:
7
+ encoding: US-ASCII
8
+ string: apikey=cbc80670767f2e9ccecc9a6f4df6f45f207d9cda&url=http://www.google.com&outputMode=json
9
+ headers:
10
+ content-type:
11
+ - application/x-www-form-urlencoded
12
+ accept:
13
+ - ! '*/*'
14
+ user-agent:
15
+ - Ruby
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ server:
24
+ - nginx
25
+ date:
26
+ - Sun, 17 Jun 2012 03:00:53 GMT
27
+ content-type:
28
+ - application/json
29
+ connection:
30
+ - close
31
+ content-length:
32
+ - '1812'
33
+ cache-control:
34
+ - no-cache
35
+ access-control-allow-origin:
36
+ - ! '*'
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ! "{\r\n \"status\": \"OK\",\r\n \"usage\": \"By accessing AlchemyAPI
40
+ or using information generated by AlchemyAPI, you are agreeing to be bound
41
+ by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
42
+ \ \"url\": \"http://www.google.com/\",\r\n \"language\": \"english\",\r\n
43
+ \ \"keywords\": [\r\n {\r\n \"text\": \"Google Screen
44
+ reader\",\r\n \"relevance\": \"0.983288\"\r\n },\r\n {\r\n
45
+ \ \"text\": \"Google Instant\",\r\n \"relevance\": \"0.666017\"\r\n
46
+ \ },\r\n {\r\n \"text\": \"Google Search\",\r\n \"relevance\":
47
+ \"0.543767\"\r\n },\r\n {\r\n \"text\": \"Account
48
+ Options\",\r\n \"relevance\": \"0.463498\"\r\n },\r\n {\r\n
49
+ \ \"text\": \"Wallet\",\r\n \"relevance\": \"0.241191\"\r\n
50
+ \ },\r\n {\r\n \"text\": \"Gmail\",\r\n \"relevance\":
51
+ \"0.236468\"\r\n },\r\n {\r\n \"text\": \"YouTube\",\r\n
52
+ \ \"relevance\": \"0.227689\"\r\n },\r\n {\r\n \"text\":
53
+ \"Blogger\",\r\n \"relevance\": \"0.216863\"\r\n },\r\n
54
+ \ {\r\n \"text\": \"Lucky\",\r\n \"relevance\":
55
+ \"0.198936\"\r\n },\r\n {\r\n \"text\": \"Shopping\",\r\n
56
+ \ \"relevance\": \"0.189198\"\r\n },\r\n {\r\n \"text\":
57
+ \"Finance\",\r\n \"relevance\": \"0.188538\"\r\n },\r\n
58
+ \ {\r\n \"text\": \"Documents\",\r\n \"relevance\":
59
+ \"0.184741\"\r\n },\r\n {\r\n \"text\": \"Images\",\r\n
60
+ \ \"relevance\": \"0.170829\"\r\n },\r\n {\r\n \"text\":
61
+ \"Books\",\r\n \"relevance\": \"0.168893\"\r\n },\r\n {\r\n
62
+ \ \"text\": \"Calendar\",\r\n \"relevance\": \"0.162806\"\r\n
63
+ \ },\r\n {\r\n \"text\": \"Photos\",\r\n \"relevance\":
64
+ \"0.153342\"\r\n }\r\n ]\r\n}\r\n"
65
+ http_version: '1.1'
66
+ recorded_at: Sun, 17 Jun 2012 02:02:52 GMT
67
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://access.alchemyapi.com/calls/html/HTMLGetLanguage
6
+ body:
7
+ encoding: US-ASCII
8
+ string: apikey=cbc80670767f2e9ccecc9a6f4df6f45f207d9cda&html=<html><body>Lorem
9
+ ipsum dolor sit amet.</body></html>&outputMode=json
10
+ headers:
11
+ content-type:
12
+ - application/x-www-form-urlencoded
13
+ accept:
14
+ - ! '*/*'
15
+ user-agent:
16
+ - Ruby
17
+ connection:
18
+ - close
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ server:
25
+ - nginx
26
+ date:
27
+ - Sun, 17 Jun 2012 04:32:15 GMT
28
+ content-type:
29
+ - application/json
30
+ connection:
31
+ - close
32
+ content-length:
33
+ - '574'
34
+ cache-control:
35
+ - no-cache
36
+ access-control-allow-origin:
37
+ - ! '*'
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ! "{\r\n \"status\": \"ERROR\",\r\n \"statusInfo\": \"unsupported-text-language\",\r\n
41
+ \ \"usage\": \"By accessing AlchemyAPI or using information generated by
42
+ AlchemyAPI, you are agreeing to be bound by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
43
+ \ \"url\": \"\",\r\n \"language\": \"latin\",\r\n \"iso-639-1\": \"la\",\r\n
44
+ \ \"iso-639-2\": \"lat\",\r\n \"iso-639-3\": \"lat\",\r\n \"ethnologue\":
45
+ \"http://www.ethnologue.com/show_language.asp?code=lat\",\r\n \"native-speakers\":
46
+ \"second language only\",\r\n \"wikipedia\": \"http://en.wikipedia.org/wiki/Latin_language\"\r\n}\r\n"
47
+ http_version: '1.1'
48
+ recorded_at: Sun, 17 Jun 2012 03:34:14 GMT
49
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://access.alchemyapi.com/calls/text/TextGetLanguage
6
+ body:
7
+ encoding: US-ASCII
8
+ string: apikey=cbc80670767f2e9ccecc9a6f4df6f45f207d9cda&text=Lorem ipsum dolor
9
+ sit amet.&outputMode=json
10
+ headers:
11
+ content-type:
12
+ - application/x-www-form-urlencoded
13
+ accept:
14
+ - ! '*/*'
15
+ user-agent:
16
+ - Ruby
17
+ connection:
18
+ - close
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ server:
25
+ - nginx
26
+ date:
27
+ - Sun, 17 Jun 2012 04:32:15 GMT
28
+ content-type:
29
+ - application/json
30
+ connection:
31
+ - close
32
+ content-length:
33
+ - '523'
34
+ cache-control:
35
+ - no-cache
36
+ access-control-allow-origin:
37
+ - ! '*'
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ! "{\r\n \"status\": \"OK\",\r\n \"usage\": \"By accessing AlchemyAPI
41
+ or using information generated by AlchemyAPI, you are agreeing to be bound
42
+ by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
43
+ \ \"url\": \"\",\r\n \"language\": \"latin\",\r\n \"iso-639-1\": \"la\",\r\n
44
+ \ \"iso-639-2\": \"lat\",\r\n \"iso-639-3\": \"lat\",\r\n \"ethnologue\":
45
+ \"http://www.ethnologue.com/show_language.asp?code=lat\",\r\n \"native-speakers\":
46
+ \"second language only\",\r\n \"wikipedia\": \"http://en.wikipedia.org/wiki/Latin_language\"\r\n}\r\n"
47
+ http_version: '1.1'
48
+ recorded_at: Sun, 17 Jun 2012 03:34:14 GMT
49
+ recorded_with: VCR 2.2.0