Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weixin_authorize
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
weixin_authorize
Commits
547343f2
Commit
547343f2
authored
Mar 16, 2014
by
lanrion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename users to followers
parent
bc5db355
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/weixin_authorize/api/user.rb
+1
-1
spec/api/user_spec.rb
+1
-1
No files found.
lib/weixin_authorize/api/user.rb
View file @
547343f2
...
@@ -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
us
ers
(
next_openid
=
nil
)
def
follow
ers
(
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
...
...
spec/api/user_spec.rb
View file @
547343f2
...
@@ -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
.
us
ers
followers
=
$client
.
follow
ers
puts
followers
puts
followers
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment