Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Blip api lib for Ruby
Ruby
tree: da979a71d6

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
CHANGELOG
README
Rakefile
rblip.gemspec
test.rb

README

Hi, This is implementation of Blip.pl api for Ruby
===================================================
Author: Jakub Oboza
===================================================
Usage:


How to get client object ;)

client = RBlip.new(:login => "wombat", :password => "password")

How to ready my dashboard

client = RBlip.new(:login => "wombat", :password => "password")

client.dashboard.each do |line|
 puts line["user_path"].gsub(/.+\//,"") + " : " + line["body"]
end

In return of method you have parsed JSON response from server 
* I don't know if we need to implement automerging of "user" currently api returns only user path.
It can be convert to username by ( line["user_path"].gsub(/.+\//,"") )

How to set status

client = RBlip.new(:login => "wombat", :password => "password")
client.set_status("*_*")

Sets status *_*  

response looks like this:

{"created_at"=>"2009-11-17 22:20:37", "body"=>"*_*", "id"=>21050256, "type"=>"Status", "user_path"=>"/users/wombat", "transport"=>{"name"=>"api", "id"=>7}}

You can read message id etc...

===================================================

Something went wrong with that request. Please try again.