Commit 6186a6466d275f2269029125622765cf1b20362e
1 parent
bc64cef8
Exists in
master
Add dingtalk user apis
Showing
2 changed files
with
23 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,19 @@ |
1 | +module Dingtalk | |
2 | + module Api | |
3 | + class User < Base | |
4 | + def get_user_info(code) | |
5 | + http_get('getuserinfo', { code: code }) | |
6 | + end | |
7 | + | |
8 | + def get(userid) | |
9 | + http_Get('get', { userid: userid }) | |
10 | + end | |
11 | + | |
12 | + private | |
13 | + def base_url | |
14 | + 'user' | |
15 | + end | |
16 | + end | |
17 | + end | |
18 | +end | |
19 | + | ... | ... |