Class: WeiboOAuth2::Api::V2::Remind

Inherits:
Base
  • Object
show all
Defined in:
lib/weibo_2/api/v2/remind.rb

Instance Method Summary collapse

Methods inherited from Base

#hashie, #initialize

Constructor Details

This class inherits a constructor from WeiboOAuth2::Api::V2::Base

Instance Method Details

#set_countObject

write interfaces



17
18
19
# File 'lib/weibo_2/api/v2/remind.rb', line 17

def set_count()
  hashie RestClient.post "https://rm.api.weibo.com/2/remind/set_count.json", :access_token => access_token.token
end

#unread_countObject

open.weibo.com/wiki/2/remind/unread_count this interface is different, it has a different domain, and frequently changed, it should be usually called from javascript. so I removed all parameters.



12
13
14
# File 'lib/weibo_2/api/v2/remind.rb', line 12

def unread_count()
  hashie RestClient.get "https://rm.api.weibo.com/2/remind/unread_count.json?access_token=#{@access_token.token}"
end