README.rdoc in openamplify-0.1.1 vs README.rdoc in openamplify-0.2.0
- old
+ new
@@ -34,10 +34,16 @@
# 'response' works like a Hash
puts response['Topics']
+ # or use the shortcuts
+ response.top_topics
+ response.proper_nouns
+ response.locations
+ response.domains
+
=== Output Format
In case you need a different format, OpenAmplify supports XML, JSON, RDF, CSV.
It can also return the result as a fancy HTML page.
@@ -66,9 +72,18 @@
response = client.analyze_text(text)
response['Topics'] # => should be another big Hash of key-value pairs
response['Demographics'] # => nil
+=== POST method
+
+By default, GET is used. If you need to analyze lots of text, use POST
+
+ client = OpenAmplify::Client.new(:api_key => API_KEY, :method => :post)
+
+ # or
+ client.method = :post
+
=== Request URL
In case you are wondering what the request URL looks like:
response.request_url