GithubHelp home page GithubHelp logo

rumblr's Introduction

Rumblr

Rumblr is a Ruby client for www.tumblr.com XML API. It currently only provides read functionality; you can read User, Tumblelog and Post data.

Overview

Rumblr maps the Tumblr API ‘authenticate’ and ‘read’ calls. User, Tumblelog and Post models have the attributes provided by the API, as well as some convenience methods for common tasks.

Please read Tumblr’s official documentation (tumblr.com/api/) to learn more about the API.

Dependencies

  • Ruby >= 1.8.6 (not tested with previous versions)

  • libxml-ruby >= 0.8.3

Download and Installation

RubyGems is the preferred install method. To get the latest version, simply type the following instruction into your command prompt:

$ sudo gem install jamescallmebrent-rumblr -s http://gems.github.com

Getting Started

In order to use this library you need a valid Tumblr account. Go to tumblr.com and register for a new account if you don’t already have one.

Sample usage:

require 'rumblr'
include Rumblr

user = User.login({:email => '[email protected]', :password => 'pass'})

user.tumblelogs.each do |log|
  puts log.name  # 'the tumblelogger'
  puts log.type  # 'public'
  puts log.url   # 'http://tumblelogger.tumblr.com/'
  puts
end

tumblelog = user.primary_tumblelog

tumblelog.posts.each do |post|
  puts post.type  # 'quote'
  puts post.url   # 'http://tumblelogger.tumblr.com/post/12345/my-first-tumblr-post'
end

post = RegularPost.new(:title => "Post Title", :body => "Just a regular post!")
Client.instance.write(post, {:email => '[email protected]', :password => 'pass'})

License

Copyright © 2009 Brent Hargrave. Rumblr is released under the MIT license.

rumblr's People

Contributors

brenthargrave avatar tfwright avatar bdotdub avatar

Stargazers

Angus H. avatar Gun.io Robot avatar yohei sugigami avatar Rob Eastham avatar Bernd Jünger avatar  avatar Ivan Nemytchenko avatar  avatar Josh Robinson avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

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.