NAME
tumblr
SYNOPSIS
tumblr (setup|write|read|authenticate|check-vimeo|check-audio)
[options]+
DESCRIPTION
tumblr.rb is a command line utility and library which interfaces
to the
excellent tumblr blogging platform @ http://www.tumblr.com
tumblr.rb implements the complete restful api in both library and
command line utility, doccumented in full @ http://www.tumblr.com/api
=== install ==
gem install tumblr
=== cli ==
the cli exactly mirrors the library api. arguments are passed
to each
method as ''key=val'' pairs, values may be read from files
using the
syntax ''key=file=val'' or ''key==val''
you should first cache your login info to avoid having to pass
it everytime
cfp: ~> tumblr setup --email=my_email --password=my_password --
name=drawohara
/Users/ahoward/.tumblr.yml
you can post
cfp: ~> tumblr write regular title=testing body=rock_on
you can post from files
cfp: ~> tumblr write regular title=slurp body==./post.html
you can read
cfp: ~> tumblr read start=42 num=42
you can test the auth
cfp: ~> tumblr authenticate
etc.
=== api ==
it''s pretty simple. here''s a start, use the web docs to
figure
out the
rest
config = {
:email => my_email,
:password => my_password,
:name => ''drawohara''
}
tumblr = Tumblr.for config
abort unless tumblr.uri ==
''http://drawohara.tumblr.com''
response = tumblr.write :regular, :title = title, :body => body
video = open ''video.mpg''
response = tumblr.write :video, :data => video, :title =>
video.path
response = tumblr.read :start => 42, :num => 42
xml = response.content
response = tumblr.read :start => 42, :num => 42, :json => true
json = response.content
PARAMETERS
--name=name, -n (1 ~> name)
--email=email, -e (1 ~> email)
--password=password, -p (1 ~> password)
--debug, -d
--json, -j
--help, -h
a @ http://codeforpeople.com/
--
it is not enough to be compassionate. you must act.
h.h. the 14th dalai lama
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---
On 11/2/07, ara.t.howard <ara.t.howard@gmail.com> wrote:> > > NAME > tumblr > > SYNOPSIS > tumblr (setup|write|read|authenticate|check-vimeo|check-audio) > [options]+ > > DESCRIPTION > tumblr.rb is a command line utility and library which interfaces > to the > excellent tumblr blogging platform @ http://www.tumblr.comI *so* beat you on this one by 6 months http://blog.caboo.se/articles/2007/5/1/tumblr-posting-irc-gateway-bot :P Courtenay --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
On 03/11/2007, at 10:52 AM, Courtenay wrote:> > On 11/2/07, ara.t.howard <ara.t.howard@gmail.com> wrote: >> >> >> NAME >> tumblr >> >> SYNOPSIS >> tumblr (setup|write|read|authenticate|check-vimeo|check-audio) >> [options]+ >> >> DESCRIPTION >> tumblr.rb is a command line utility and library which interfaces >> to the >> excellent tumblr blogging platform @ http://www.tumblr.com > > I *so* beat you on this one by 6 months > > http://blog.caboo.se/articles/2007/5/1/tumblr-posting-irc-gateway-botbut why all this announcingness on rubyonrails-core? -- timbo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
> >http://blog.caboo.se/articles/2007/5/1/tumblr-posting-irc-gateway-bot > > but why all this announcingness on rubyonrails-core? > > -- timbobecause i fat fingered the address - supposed to go to rails list - sincerest apologies! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---