【发布时间】:2020-09-10 02:36:23
【问题描述】:
尝试使用 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
【问题讨论】:
标签: curl google-api google-oauth omniauth-google-oauth2