2015-12-21 36 views

回答

2

哦,嘿,事實證明,你可以只使用http(s)身份驗證。

curl --user <username>:<password> https://bitbucket.org/<username>/<repo>/raw/<file> 

這有點具有比令牌(您可以限制權限)的腳本用戶名和密碼,一個更大的安全漏洞,但它能夠在這種情況下所做的工作。

1

根據OAuth on Bitbucket Cloud,您需要編寫https://x-token-auth:{access_token}@bitbucket.org,以便您將令牌用作密碼而不是用戶名。

0

使用OAuth tokenBitbucket api與PARAM的access_token:

https://api.bitbucket.org/2.0/repositories/{username}/{repo_slug}/src/master/{file}?access_token={access_token}