Sha256: 07bc0d5e48ad0517119266552b73c822af5309a2ad43c3d69174c81ace3542f4

Contents?: true

Size: 906 Bytes

Versions: 11

Compression:

Stored size: 906 Bytes

Contents

module Tumblr
  module User

    def info
      get('v2/user/info')
    end

    def dashboard(options = {})
      valid_opts = [:limit, :offset, :type, :since_id, :reblog_info, :notes_info]
      validate_options(valid_opts, options)
      get('v2/user/dashboard', options)
    end

    def likes(options = {})
      validate_options([:limit, :offset], options)
      get('v2/user/likes', options)
    end

    def following(options = {})
      validate_options([:limit, :offset], options)
      get('v2/user/following', options)
    end

    def follow(url)
      post('v2/user/follow', :url => url)
    end

    def unfollow(url)
      post('v2/user/unfollow', :url => url)
    end

    def like(id, reblog_key)
      post('v2/user/like', :id => id, :reblog_key => reblog_key)
    end

    def unlike(id, reblog_key)
      post('v2/user/unlike', :id => id, :reblog_key => reblog_key)
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
tumblr_client-0.8.5 lib/tumblr/user.rb
tumblr_client-0.8.4 lib/tumblr/user.rb
tumblr_client-0.8.3 lib/tumblr/user.rb
tumblr_client-0.8.2 lib/tumblr/user.rb
tumblr_client-0.8.1 lib/tumblr/user.rb
tumblr_client-0.7.5 lib/tumblr/user.rb
tumblr_client-0.7.4 lib/tumblr/user.rb
tumblr_client-0.7.3 lib/tumblr/user.rb
tumblr_client-0.7.2 lib/tumblr/user.rb
tumblr_client-0.7.1 lib/tumblr/user.rb
tumblr_client-0.7.0 lib/tumblr/user.rb