Commit d75e0068 by mingyuan

json body

parent 368913dc
...@@ -27,7 +27,7 @@ module Dingtalk ...@@ -27,7 +27,7 @@ module Dingtalk
code: code, code: code,
grantType: 'authorization_code' grantType: 'authorization_code'
} }
r = HTTPX.post "https://api.dingtalk.com/v1.0/oauth2/userAccessToken", body: h.to_json r = HTTPX.post 'https://api.dingtalk.com/v1.0/oauth2/userAccessToken', json: h
result = JSON.parse(r.body.to_s) result = JSON.parse(r.body.to_s)
logger.debug result logger.debug result
#binding.break #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