Commit cf6ec332076d2671632890192a6c1b365678b428

Authored by Tao Huang
1 parent 7528821f
Exists in master

fix: sns get_user_info_by_code API

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/dingtalk/api/sns.rb
@@ -38,7 +38,7 @@ module Dingtalk @@ -38,7 +38,7 @@ module Dingtalk
38 end 38 end
39 39
40 def get_user_info_by_code(code) 40 def get_user_info_by_code(code)
41 - http_post("getuserinfo_bycode", {tmp_auth_code: code}) 41 + http_post("getuserinfo_bycode?access_token=#{access_token}", {tmp_auth_code: code})
42 end 42 end
43 43
44 private 44 private