我試圖連接ti api web服務,box-api,並且按照教程我必須鍵入以下命令來獲取用戶內容中的文件夾:curl -h或curl -header不工作
curl https://api.box.com/2.0/folders/FOLDER_ID/items?limit=2&offset=0 -H "Authorization: Bearer ACCESS_TOKEN"
我tryied通過命令行連接到測試命令,但它不斷抱怨-H
或--header
命令說,它不存在:
-bash: -H: command not found
-bash: --header: command not found
但是當我鍵入捲曲的--help命令在手冊中:
-H, --header LINE Custom header to pass to server (H)
我很困惑,我該怎麼做才能連接到這個網站並獲得JSON內容?由於