2016-02-17 24 views
1

我嘗試執行下一個CURL。在POSTMAN中添加param curl -d

如何添加帕拉姆-d在郵差

curl https://core.spreedly.com/v1/gateways.json \ 
    -u 'Ll6fAtoVSTyVMlJEmtpoJV8S:RKOCG5D8D3fZxDSg504D0IxU2XD4Io5VXmyzdCtTivHFTTSy' \ 
    -H 'Content-Type: application/json' \ 
    -d '{ 
     "gateway": { 
      "gateway_type": "test" 
     } 
     }' 

PostmanExample

回答

2

-d是POST數據。

您需要將您的JSON數據添加到請求的正文部分,並將請求方法設置爲POST

E.g.

Postman screenshot with JSON body