Commit 255f87c114451598c46fdd964962cb4d0c794911
Committed by
GitHub
Exists in
master
Merge pull request #3 from mycolorway/seandong/delete-user-api
ADD: delete user api
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
lib/dingtalk/api/user.rb
... | ... | @@ -9,6 +9,10 @@ module Dingtalk |
9 | 9 | http_get("get?access_token=#{access_token}&userid=#{userid}") |
10 | 10 | end |
11 | 11 | |
12 | + def delete(userid) | |
13 | + http_get("delete?access_token=#{access_token}&userid=#{userid}") | |
14 | + end | |
15 | + | |
12 | 16 | def get_by_mobile(mobile) |
13 | 17 | http_get("get_by_mobile?access_token=#{access_token}&mobile=#{mobile}") |
14 | 18 | end | ... | ... |