Commit b7cc3867b367bcca7d0d33237e568ffa4c763aaa

Authored by Jeff Lai
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 9 http_get("get?access_token=#{access_token}&userid=#{userid}")
10 10 end
11 11  
  12 + def get_by_mobile(mobile)
  13 + http_get("get?access_token=#{access_token}&mobile=#{mobile}")
  14 + end
  15 +
12 16 private
13 17 def base_url
14 18 'user'
... ...