Google api 来自命令行的Google API验证(适用于Google Predict)
我正试图按照这本指南,从命令行中使用Google Predict: 很遗憾,我无法使用以下命令通过身份验证: 1) 将返回SID、LSID、Auth令牌-最后一个令牌将用于2)Google api 来自命令行的Google API验证(适用于Google Predict),google-api,google-prediction,Google Api,Google Prediction,我正试图按照这本指南,从命令行中使用Google Predict: 很遗憾,我无法使用以下命令通过身份验证: 1) 将返回SID、LSID、Auth令牌-最后一个令牌将用于2) curl-X POST\ -d accountType=托管的或谷歌的\ -d电子邮件=\ --数据urlencode Passwd=\ -d服务=xapi\ -d来源=账户\ -H“内容类型:应用程序/x-www-form-urlencoded”\ https://www.google.com/accounts/Cli
curl-X POST\
-d accountType=托管的或谷歌的\
-d电子邮件=\
--数据urlencode Passwd=\
-d服务=xapi\
-d来源=账户\
-H“内容类型:应用程序/x-www-form-urlencoded”\
https://www.google.com/accounts/ClientLogin
2) 试图触发训练,我会得到401的回应
curl -X POST \
-H "Content-Type:application/json" \
-H "Authorization: GoogleLogin auth=<auth-token>" \
-d "{\"data\":{}}" \
https://www.googleapis.com/prediction/v1.5/training?data=<bucket>%2F<file>
curl-X POST\
-H“内容类型:应用程序/json”\
-H“授权:谷歌登录验证=”\
-d“{\”数据\“:{}”\
https://www.googleapis.com/prediction/v1.5/training?data=%2F
有什么建议吗
干杯。事实证明更容易使用,这里也有一些记录 干杯
curl -X POST \
-H "Content-Type:application/json" \
-H "Authorization: GoogleLogin auth=<auth-token>" \
-d "{\"data\":{}}" \
https://www.googleapis.com/prediction/v1.5/training?data=<bucket>%2F<file>