Sha256: bbc491c53b5d0f3d8879637b6b2355d71857322c833d7600deabf4b4ad5c7b7a

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

module Ubiquitously
  module Posterous
    class Account < Ubiquitously::Service::Account
    end
    
    class Post < Ubiquitously::Service::Post
      include HTTParty
      base_uri 'http://posterous.com/api'
      
      def create
        self.class.post("/newpost", {
          :query => {
            :title => token[:title],
            :body => token[:description],
            :tags => token[:tags]
          },
          :basic_auth => @auth
        })
        
        true
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ubiquitously-0.1.0 lib/ubiquitously/services/posterous.rb