Sha256: 7fbbf6592a000ff65a767216c9de2d9f852955a092c85570b9560758900971d3

Contents?: true

Size: 700 Bytes

Versions: 2

Compression:

Stored size: 700 Bytes

Contents

require 'httparty'

module Integrity
  class Notifier
    class TumblrClient
      def self.post(email, password, title, body)
        HTTParty.post 'http://www.tumblr.com/api/write', :body => { :email => email, 
                                                                    :password => password,
                                                                    :type => 'regular',
                                                                    :title => title,
                                                                    :body => body,
                                                                    :generator => 'integrity-tumblr notifier' }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
matflores-integrity-tumblr-0.1.1 lib/integrity/notifier/tumblr_client.rb
integrity-tumblr-0.1.1 lib/integrity/notifier/tumblr_client.rb