Commit e156af4c by mingyuan

api is get methods

parent 3930c245
......@@ -31,7 +31,7 @@ module Dingtalk
token_info = JSON.parse(r.body.to_s)
logger.debug token_info
info = HTTPX.post 'https://api.dingtalk.com/v1.0/contact/users/me', headers: { 'x-acs-dingtalk-access-token': token_info['accessToken'] }
info = HTTPX.get 'https://api.dingtalk.com/v1.0/contact/users/me', headers: { 'x-acs-dingtalk-access-token': token_info['accessToken'] }
profile_info = JSON.parse(info.body.to_s)
logger.debug profile_info
#binding.break
......
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