2014-10-05 75 views

回答

1

記住:

  • 一個POST將需要一個適當的認證,如本GitHub POST tutorial
    沒有認證意味着404

    curl --user "caspyin" --request POST --data {...} 
    
  • 則需要在 「Create a comment

    { 
        "body": "Nice change", 
        "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", 
        "path": "file1.txt", 
        "position": 4 
    } 
    
提到正確的數據