开发者

Translating curl to python urllib2

开发者 https://www.devze.com 2023-01-12 17:09 出处:网络
Can someone please show me how to convert this curl call into call using python ur开发者_运维技巧llib2

Can someone please show me how to convert this curl call into call using python ur开发者_运维技巧llib2

curl -X POST
-H "Content-Type:application/json"
-d "{\"data\":{}}"
-H "Authorization: GoogleLogin
auth=0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789...XYZ"
https://www.googleapis.com/prediction/v1/training?data=${mybucket}%2F${mydata}


Found it here:

http://blog.notdot.net/2010/06/Trying-out-the-new-Prediction-API

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号