alchemy-api-rb 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alchemy-api/version.rb +1 -1
- data/lib/alchemy_api.rb +1 -1
- data/spec/alchemy_api_spec.rb +2 -2
- data/spec/vcr_cassettes/author_basic_html_json_search.yml +1 -1
- data/spec/vcr_cassettes/author_basic_url_json_search.yml +1 -1
- data/spec/vcr_cassettes/category_basic_text_json_search.yml +1 -1
- data/spec/vcr_cassettes/category_basic_url_json_search.yml +1 -1
- data/spec/vcr_cassettes/concept_basic_html_json_search.yml +1 -1
- data/spec/vcr_cassettes/concept_basic_text_json_search.yml +1 -1
- data/spec/vcr_cassettes/concept_basic_url_json_search.yml +1 -1
- data/spec/vcr_cassettes/entity_basic_html_json_search.yml +1 -1
- data/spec/vcr_cassettes/entity_basic_text_json_search.yml +1 -1
- data/spec/vcr_cassettes/entity_basic_url_json_search.yml +1 -1
- data/spec/vcr_cassettes/image_tagging_basic_url_json_search.yml +1 -1
- data/spec/vcr_cassettes/keyword_basic_html_json_search.yml +1 -1
- data/spec/vcr_cassettes/keyword_basic_text_json_search.yml +1 -1
- data/spec/vcr_cassettes/keyword_basic_url_json_search.yml +1 -1
- data/spec/vcr_cassettes/language_basic_html_json_search.yml +1 -1
- data/spec/vcr_cassettes/language_basic_text_json_search.yml +1 -1
- data/spec/vcr_cassettes/language_basic_url_json_search.yml +1 -1
- data/spec/vcr_cassettes/relation_basic_html_json_search.yml +1 -1
- data/spec/vcr_cassettes/relation_basic_text_json_search.yml +1 -1
- data/spec/vcr_cassettes/relation_basic_url_json_search.yml +1 -1
- data/spec/vcr_cassettes/sentiment_basic_html_json_search.yml +1 -1
- data/spec/vcr_cassettes/sentiment_basic_text_json_search.yml +1 -1
- data/spec/vcr_cassettes/sentiment_basic_url_json_search.yml +1 -1
- data/spec/vcr_cassettes/sentiment_targeted_html_json_search.yml +1 -1
- data/spec/vcr_cassettes/sentiment_targeted_text_json_search.yml +1 -1
- data/spec/vcr_cassettes/sentiment_targeted_url_json_search.yml +1 -1
- data/spec/vcr_cassettes/text_basic_html_json_search.yml +1 -1
- data/spec/vcr_cassettes/text_basic_url_json_search.yml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5947e1c39193afb380390949a140d77ad47b2560
|
4
|
+
data.tar.gz: 7d507ef3ae947730dedf9c7969adf2bbec5c701b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c96aed8ce6d1770a399d722438742ab0268e0fbb41469f422edc0d34952699ce7c876c0e95c98f28351a98a641abae7489ae75de519d10b81a16ccfff28f76dc
|
7
|
+
data.tar.gz: 213975afa00c3d1f68579c82bbcea016060e4e3c2d306f5169d6cda2de0d8360fcf96465f64d3926ccc9da62743626d6f5a837de33379f0a858e629e0d6b51c7
|
data/lib/alchemy-api/version.rb
CHANGED
data/lib/alchemy_api.rb
CHANGED
data/spec/alchemy_api_spec.rb
CHANGED
@@ -3,8 +3,8 @@ require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper'))
|
|
3
3
|
describe AlchemyAPI do
|
4
4
|
subject { AlchemyAPI }
|
5
5
|
|
6
|
-
it 'knows the alchemy api url' do
|
7
|
-
AlchemyAPI::BASE_URL.must_be :==, '
|
6
|
+
it 'knows the secure alchemy api url' do
|
7
|
+
AlchemyAPI::BASE_URL.must_be :==, 'https://access.alchemyapi.com/calls/'
|
8
8
|
end
|
9
9
|
|
10
10
|
it 'allows you to set the key directly' do
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/html/HTMLGetAuthor
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&html=<html><body>Google is a large, by Joe Smith</body></html>&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/url/URLGetAuthor
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&url=http://blog.alchemyapi.com/&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/url/URLGetCategory
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&url=http://www.alchemyapi.com/&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/html/HTMLGetRankedConcepts
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&html=<html><body>Google is a large company</body></html>&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/text/TextGetRankedConcepts
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&text=Google is a large company&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/url/URLGetRankedConcepts
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&url=http://www.alchemy.com&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/html/HTMLGetRankedNamedEntities
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&html=<html><body>Google is a large company</body></html>&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/text/TextGetRankedNamedEntities
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&text=Google is a large company&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/url/URLGetRankedNamedEntities
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&url=http://www.google.com&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/url/URLGetRankedImageKeywords
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&url=http://demo1.alchemyapi.com/images/vision/emaxfpo.jpg&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/html/HTMLGetRankedKeywords
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&html=<html><body>foo bar</body></html>&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/text/TextGetRankedKeywords
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&text=lorem ipsum&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/url/URLGetRankedKeywords
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&url=http://www.google.com&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/html/HTMLGetLanguage
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&html=<html><body>Lorem ipsum dolor sit amet.</body></html>&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/text/TextGetLanguage
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&text=Lorem ipsum dolor sit amet.&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/url/URLGetLanguage
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&url=http://www.alchemyapi.com/&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/html/HTMLGetRelations
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&html=<html><body>Google is a large company</body></html>&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/text/TextGetRelations
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&text=Google is a large company&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/url/URLGetRelations
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&url=http://www.alchemy.com&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/html/HTMLGetTextSentiment
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&html=<html><body>Alchemy is cool</body></html>&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/text/TextGetTextSentiment
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&text=Alchemy is cool&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/url/URLGetTextSentiment
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&url=http://www.alchemyapi.com&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/html/HTMLGetTargetedSentiment
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&html=<html><body>AlchemyAPI is cool</body></html>&target=alchemyapi&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/text/TextGetTargetedSentiment
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&text=AlchemyAPI is cool&target=alchemyapi&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/url/URLGetTargetedSentiment
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&url=http://www.alchemyapi.com&target=alchemyapi&outputMode=json
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://access.alchemyapi.com/calls/html/HTMLGetText
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: apikey=ALCHEMY_KEY&html=<html><body>foo bar</body></html>&outputMode=json
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alchemy-api-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Allen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|