Commit b7cc3867b367bcca7d0d33237e568ffa4c763aaa
1 parent
d244d53d
Exists in
master
Add get_by_mobile 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,6 +9,10 @@ module Dingtalk | ||
9 | http_get("get?access_token=#{access_token}&userid=#{userid}") | 9 | http_get("get?access_token=#{access_token}&userid=#{userid}") |
10 | end | 10 | end |
11 | 11 | ||
12 | + def get_by_mobile(mobile) | ||
13 | + http_get("get?access_token=#{access_token}&mobile=#{mobile}") | ||
14 | + end | ||
15 | + | ||
12 | private | 16 | private |
13 | def base_url | 17 | def base_url |
14 | 'user' | 18 | 'user' |