2017-05-03 61 views

回答

0

無論你使用的是什麼http客戶端。 您可以訪問travis v3 API。特拉維斯API V3文檔

請求例如[link]

body='{ 
    "request": { 
    "branch":"master" 
}}' 

curl -s -X POST \ 
    -H "Content-Type: application/json" \ 
    -H "Accept: application/json" \ 
    -H "Travis-API-Version: 3" \ 
    -H "Authorization: token xxxxxx" \ 
    -d "$body" \ 
https://api.travis-ci.org/repo/...