Git Product home page Git Product logo

tumblr's Introduction

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 delete a post

        cfp: ~> tumblr delete post-id=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 (0 ~> name) 
  --email=email, -e (0 ~> email) 
  --password=password, -p (0 ~> password) 
  --debug, -d 
  --json, -j 
  --help, -h 

tumblr's People

Contributors

ahoward avatar jordelver avatar

Stargazers

David Blue avatar nightcoregirl avatar Stan Soo avatar JT5D avatar Stina avatar Nazeeruddin Ikram avatar Attila Gulyas avatar Nicole Boudreau avatar mt3 avatar  avatar Veselin Petkov avatar Camille Appert avatar Attila Györffy avatar  avatar  avatar Adam Maddox avatar David Löwenfels avatar Simon Rozet avatar

Watchers

 avatar James Cloos avatar Joseph Rawson avatar  avatar  avatar  avatar

tumblr's Issues

passing options for tumblr.read

Your example in README for tumblr.read won't work as you think it should, because read method takes options hash as second argument, and expects "type" as first argument. So option won't pass and you will always be getting response for first 20 posts.

response = tumblr.read :start => 42, :num => 42

Can't run app: "cannot load such file -- main (LoadError)"

I just installed your gem because I needed a command line interface to Tumblr to do some batch operations. Unfortunately, when I type tumblr at the command line, this is what I see:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- main (LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/tumblr-2.2.0/lib/tumblr.rb:14:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/tumblr-2.2.0/bin/tumblr:3:in `<top (required)>'
    from /usr/bin/tumblr:23:in `load'
    from /usr/bin/tumblr:23:in `<main>'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.