天天看點

gitlab api傳遞private_token參數的兩種方式

  • header

    添加header

    ​​

    ​PRIVATE-TOKEN: XXX​

    ​ 如:
curl --header "PRIVATE-TOKEN: xxx"  https://xxx      
  • ​?private_token=xxx​

https://git.zxl.com/api/v4/namespaces?private_token=xxx      
git