Commit 547343f2 by lanrion

rename users to followers

parent bc5db355
...@@ -13,7 +13,7 @@ module WeixinAuthorize ...@@ -13,7 +13,7 @@ module WeixinAuthorize
# https://api.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN&next_openid=NEXT_OPENID # https://api.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN&next_openid=NEXT_OPENID
# 获取关注者列表 # 获取关注者列表
def users(next_openid=nil) def followers(next_openid=nil)
users_url = "#{user_base_url}/get?#{access_token_param}&next_openid#{next_openid}" users_url = "#{user_base_url}/get?#{access_token_param}&next_openid#{next_openid}"
JSON.parse(RestClient.get(users_url)) JSON.parse(RestClient.get(users_url))
end end
......
...@@ -7,7 +7,7 @@ describe WeixinAuthorize::Api::User do ...@@ -7,7 +7,7 @@ describe WeixinAuthorize::Api::User do
end end
it "can get followers infos" do it "can get followers infos" do
followers = $client.users followers = $client.followers
puts followers puts followers
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment