Class: Weibo::Api::V2::Remind
- Defined in:
- lib/weibo_focus/api/v2/remind.rb
Instance Method Summary collapse
-
#set_count ⇒ Object
write interfaces.
-
#unread_count ⇒ Object
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.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Weibo::Api::V2::Base
Instance Method Details
#set_count ⇒ Object
write interfaces
17 18 19 |
# File 'lib/weibo_focus/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_count ⇒ Object
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_focus/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 |