Commit 547343f2 by lanrion

rename users to followers

parent bc5db355
......@@ -13,7 +13,7 @@ module WeixinAuthorize
# 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}"
JSON.parse(RestClient.get(users_url))
end
......
......@@ -7,7 +7,7 @@ describe WeixinAuthorize::Api::User do
end
it "can get followers infos" do
followers = $client.users
followers = $client.followers
puts followers
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