Commit 2d6be54d7ef02bf981ebfe48e29de2e30b65c233
1 parent
e5e41009
Exists in
master
ADD: user#list api
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
lib/dingtalk/api/user.rb
... | ... | @@ -5,6 +5,10 @@ module Dingtalk |
5 | 5 | http_get("getuserinfo?access_token=#{access_token}&code=#{code}") |
6 | 6 | end |
7 | 7 | |
8 | + def list(department=1) | |
9 | + http_get("list?access_token=#{access_token}&department_id=#{department}") | |
10 | + end | |
11 | + | |
8 | 12 | def get(userid) |
9 | 13 | http_get("get?access_token=#{access_token}&userid=#{URI.escape userid}") |
10 | 14 | end | ... | ... |