jsl-placemaker 0.0.1.5 → 0.0.1.6
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.
- data/README.rdoc +10 -1
- data/placemaker.gemspec +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
|
@@ -24,7 +24,16 @@ already done so.
|
|
|
24
24
|
p.fetch!
|
|
25
25
|
|
|
26
26
|
This will make a call to the Placemaker service and populate the Placemaker::Client object with data about the places in the content that you
|
|
27
|
-
sent to Yahoo. The information that you'll be interested in may be divided into "documents" and "meta-data"
|
|
27
|
+
sent to Yahoo. The information that you'll be interested in may be divided into "documents" and "meta-data."
|
|
28
|
+
|
|
29
|
+
You can also use placemaker with a document that you upload. Use +document_content+ in the configuration options instead of +document_url+, and
|
|
30
|
+
make sure to set the appropriate value for +document_type+. Acceptable mime types are text/plain, text/html, text/xml, text/rss, application/xml,
|
|
31
|
+
and application/rss+xml. The following is an example of using jsl-placemaker to encode content that you upload:
|
|
32
|
+
|
|
33
|
+
p = Placemaker::Client.new(:appid => YOUR_APP_ID, :document_content => 'railsconf was in las vegas this year', :document_type => 'text/plain')
|
|
34
|
+
p.fetch!
|
|
35
|
+
|
|
36
|
+
Afterwards, you have access to the same Placemaker::Client methods as if you had pointed placemaker to a +document_url+.
|
|
28
37
|
|
|
29
38
|
== Documents
|
|
30
39
|
|
data/placemaker.gemspec
CHANGED