Commit 55b4368cd85e7c6eb0f59c6ea6d3da5817721a4c

Authored by Jeff Lai
1 parent fcae65f7
Exists in master

Fix user apis

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
lib/dingtalk/api/user.rb
@@ -2,11 +2,11 @@ module Dingtalk @@ -2,11 +2,11 @@ module Dingtalk
2 module Api 2 module Api
3 class User < Base 3 class User < Base
4 def get_user_info(code) 4 def get_user_info(code)
5 - http_get('getuserinfo', { code: code }) 5 + http_get("getuserinfo?access_token=#{access_token}&code=#{code}")
6 end 6 end
7 7
8 def get(userid) 8 def get(userid)
9 - http_get('get', { userid: userid }) 9 + http_get("get?access_token=#{access_token}&userid=#{userid}")
10 end 10 end
11 11
12 private 12 private