weibo_focus 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/weibo_focus.rb CHANGED
@@ -17,6 +17,10 @@ require "weibo_focus/api/v2/search"
17
17
  require "weibo_focus/api/v2/short_url"
18
18
  require "weibo_focus/api/v2/suggestions"
19
19
  require "weibo_focus/api/v2/remind"
20
+ require "weibo_focus/api/v2/common"
21
+ require "weibo_focus/api/v2/location"
22
+ require "weibo_focus/api/v2/notification"
23
+ require "weibo_focus/api/v2/place"
20
24
  require "weibo_focus/strategy/auth_code"
21
25
 
22
26
  if File.exists?('config/weibo.yml')
data/lib/weibo_focus.rb~ CHANGED
@@ -17,6 +17,11 @@ require "weibo_focus/api/v2/search"
17
17
  require "weibo_focus/api/v2/short_url"
18
18
  require "weibo_focus/api/v2/suggestions"
19
19
  require "weibo_focus/api/v2/remind"
20
+ require "weibo_focus/api/v2/common"
21
+ require "weibo_focus/api/v2/location"
22
+ require "weibo_focus/api/v2/notification"
23
+ require "weibo_focus/api/v2/place"
24
+ require "weibo_focus/api/v2/place"
20
25
  require "weibo_focus/strategy/auth_code"
21
26
 
22
27
  if File.exists?('config/weibo.yml')
@@ -0,0 +1,51 @@
1
+ module Weibo
2
+ module Api
3
+ module V2
4
+ class Comments < Base
5
+
6
+ #read interfaces
7
+ def show(id, opt={})
8
+ hashie get("comments/show.json", :params => {:id => id}.merge(opt))
9
+ end
10
+
11
+ def by_me(opt={})
12
+ hashie get("comments/by_me.json", :params => opt)
13
+ end
14
+
15
+ def to_me(opt={})
16
+ hashie get("comments/to_me.json", :params => opt)
17
+ end
18
+
19
+ def timeline(opt={})
20
+ hashie get("comments/timeline.json", :params => opt)
21
+ end
22
+
23
+ def mentions(opt={})
24
+ hashie get("comments/mentions.json", :params => opt)
25
+ end
26
+
27
+ def show_batch(cids, opt={})
28
+ hashie get("comments/show_batch.json", :params => {:cids => cids}.merge(opt))
29
+ end
30
+
31
+ #write interfaces
32
+ def create(comment, id, opt={})
33
+ hashie post("comments/create.json", :params => {:comment => comment, :id => id}.merge(opt))
34
+ end
35
+
36
+ def destroy(cid, opt={})
37
+ hashie post("comments/destroy.json", :params => {:cid => cid}.merge(opt))
38
+ end
39
+
40
+ def destroy_batch(cids, opt={})
41
+ hashie post("comments/destroy_batch.json", :params => {:cids => cids}.merge(opt))
42
+ end
43
+
44
+ def reply(cid, id, comment, opt={})
45
+ hashie post("comments/reply.json", :params => {:cid => cid, :id => id, :comment => comment}.merge(opt))
46
+ end
47
+
48
+ end
49
+ end
50
+ end
51
+ end
@@ -1,3 +1,3 @@
1
1
  module Weibo
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Weibo
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weibo_focus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -123,6 +123,7 @@ files:
123
123
  - lib/weibo_focus/api/v2/account.rb
124
124
  - lib/weibo_focus/api/v2/base.rb
125
125
  - lib/weibo_focus/api/v2/comments.rb
126
+ - lib/weibo_focus/api/v2/comments.rb~
126
127
  - lib/weibo_focus/api/v2/common.rb
127
128
  - lib/weibo_focus/api/v2/favorites.rb
128
129
  - lib/weibo_focus/api/v2/friendships.rb