luckypoem / tumblr Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ahoward/tumblr
a command line utility and library for the excellent tumblr blogging platform
This project forked from ahoward/tumblr
a command line utility and library for the excellent tumblr blogging platform
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.