examples/post.rb in preposterous-0.0.2 vs examples/post.rb in preposterous-0.0.3

- old
+ new

@@ -50,5 +50,31 @@ :body => "I love these pics." } # perform the actual post posterous.newpost(fields, *files) + +# +# update post w/files +# + +# initialize array of files +files = [ + File.open("examples/three.png"), + File.open("examples/four.png") +] + +# initialize fields +fields = { + :post_id => 12345678, + :title => "Autogenerated post from Preposterous Gem [#{Time.now}]", + :body => "This is some new text for my autogenerated post." +} + +# perform the update +posterous.updatepost(fields, *files) + +# +# fetch the tags from your site +# + +puts posterous.gettags