Created
May 3, 2011 12:34
-
-
Save mfojtik/953251 to your computer and use it in GitHub Desktop.
Posting status update to Identi.ca
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rest-client' | |
class Identica | |
attr_reader :client | |
def initialize(username, password) | |
@client = RestClient::Resource.new("http://identi.ca/api", username, password) | |
end | |
def update(text) | |
self.client['statuses/update.xml'].post(:status => text) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment