3

当我在此示例中请求令牌时,响应是错误请求,但我可以获得设备代码并且连接正常。获取令牌的网址是

请求:https ://accounts.google.com/o/oauth2/token?client_id=xxxxxxxxxx.apps.googleusercontent.com&client_secret=xxxxxxxxxxxxx&code=4/ELY3wywbZX8SQBRdqqYNIVAV3dCF&grant_type=http://oauth.net/grant_type/device/1.0

方法是post

我使用 HttpsConnection

有任何想法吗

4

0 回答 0