尝试使用 curl 获取 AccessToken,但出现“https://accounts.google.com/o/oauth2/token:没有这样的文件或目录”错误有人可以帮助我做错什么吗?
主要是,我想知道我是否正确设置了客户端密码,虽然我很不确定,但我真的很感激一些指导。
(已用*编辑了某些部分)
curl \
—request POST \
--data ”code=4/***********************3Uzp--0jT4uNN******rSWSRkHw8&client_id=***************************.apps.googleusercontent.com&client_secret=**********&redirect_uri=https://localhost&grant_type=authorization_code” \https://accounts.google.com/o/oauth2/token