This module encapsulates the API for tagal.us, a site which helps users define tags on twitter or other websites. The basic elements are tags, definitions, and comments - and these 3 objects can be written and read to/from tagal.us using this gem.
There's just 6 useful methods - 3 that read, and 3 that write.
This module uses the Carboni.ca XML base, which means you can set which XML parser it will use - simply use
Tagalus.parser = :nokogiri # can be :nokogiri, :hpricot, # :rexml, or :libxml
to change the parser.
Exmaple usage:
acc = Tagalus::Account.new("1290185015890") acc.define("apisandbox") #=> <Definition> acc.comments("apisandbox").each do |comm| puts comm.text+"\n" end acc.post_comment "apisandbox", "Testing, 1,2,3!" #=> <Comment>
gem install tagalus