Module: Tumblr::Client::User

Included in:
Tumblr::Client
Defined in:
lib/tumblr/client/user.rb

Instance Method Summary collapse

Instance Method Details

#dashboard(params = {}) ⇒ Object



8
9
10
# File 'lib/tumblr/client/user.rb', line 8

def dashboard(params={})
  get "/#{API_VERSION}/user/dashboard", params 
end

#follow(url) ⇒ Object



20
21
22
# File 'lib/tumblr/client/user.rb', line 20

def follow(url)
  post "/#{API_VERSION}/user/follow", {"url" => url}
end

#following(params = {}) ⇒ Object



16
17
18
# File 'lib/tumblr/client/user.rb', line 16

def following(params={})
  get "/#{API_VERSION}/user/following", params 
end

#like(id, reblog_key) ⇒ Object



28
29
30
# File 'lib/tumblr/client/user.rb', line 28

def like(id, reblog_key)
  post "/#{API_VERSION}/user/like", {"id" => id, "reblog_key" => reblog_key}
end

#likes(params = {}) ⇒ Object



12
13
14
# File 'lib/tumblr/client/user.rb', line 12

def likes(params={})
  get "/#{API_VERSION}/user/likes", params 
end

#unfollow(url) ⇒ Object



24
25
26
# File 'lib/tumblr/client/user.rb', line 24

def unfollow(url)
  post "/#{API_VERSION}/user/unfollow", {"url" => url}
end

#unlike(id, reblog_key) ⇒ Object



32
33
34
# File 'lib/tumblr/client/user.rb', line 32

def unlike(id, reblog_key)
  post "/#{API_VERSION}/user/unlike", {"id" => id, "reblog_key" => reblog_key}
end

#user_infoObject



4
5
6
# File 'lib/tumblr/client/user.rb', line 4

def 
  get "/#{API_VERSION}/user/info" 
end