Commit 9b033159 by mingyuan

typo

parent 65f09bee
...@@ -29,7 +29,7 @@ module Dingtalk ...@@ -29,7 +29,7 @@ module Dingtalk
} }
r = HTTPX.post 'https://api.dingtalk.com/v1.0/oauth2/userAccessToken', json: h r = HTTPX.post 'https://api.dingtalk.com/v1.0/oauth2/userAccessToken', json: h
token_info = JSON.parse(r.body.to_s) token_info = JSON.parse(r.body.to_s)
logger.debug result logger.debug token_info
info = HTTPX.post 'https://api.dingtalk.com/v1.0/contact/users/me', headers: { 'x-acs-dingtalk-access-token': r['accessToken'] } info = HTTPX.post 'https://api.dingtalk.com/v1.0/contact/users/me', headers: { 'x-acs-dingtalk-access-token': r['accessToken'] }
profile_info = JSON.parse(info.body.to_s) profile_info = JSON.parse(info.body.to_s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment