Add get_by_mobile api

This commit is contained in:
Jeff Lai
2016-04-25 14:11:09 +08:00
parent d244d53d87
commit b7cc3867b3
+4
View File
@@ -9,6 +9,10 @@ module Dingtalk
http_get("get?access_token=#{access_token}&userid=#{userid}")
end
def get_by_mobile(mobile)
http_get("get?access_token=#{access_token}&mobile=#{mobile}")
end
private
def base_url
'user'