1
我試圖按照本指南從命令行中使用Google Predict:http://thoughts.inphina.com/2010/10/17/getting-started-with-google-prediction-api-machine-learning-on-cloud/ 不幸的是,我無法通過以下命令通過認證:Google API認證命令行(適用於Google Predict)
1)將返回SID,LSID,驗證令牌 - 最後一個將在2使用)
curl -X POST \
-d accountType=HOSTED_OR_GOOGLE \
-d Email=<mail> \
--data-urlencode Passwd=<password> \
-d service=xapi \
-d source=account \
-H "Content-Type:application/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>
有什麼建議嗎?
乾杯。