Sha256: 13969bf3329ea6487180663c3c11ce00a56a67a44958295d5c603a6ad9b525d1
Contents?: true
Size: 737 Bytes
Versions: 1
Compression:
Stored size: 737 Bytes
Contents
module Ubiquitously module Tumblr class Account < Ubiquitously::Service::Account end class Post < Ubiquitously::Service::Post include HTTParty base_uri 'http://www.tumblr.com/api' def create # type == regular, link, quote, photo, conversation, video, audio, answer response = self.class.post("/write", { :body => { :email => user.username_for(self), :password => user.password_for(self), :type => "link", :name => token[:title], :url => token[:url], :description => token[:description], :tags => token[:tags], } }) true end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ubiquitously-0.1.0 | lib/ubiquitously/services/tumblr.rb |