我有需要在POST類型中傳遞的參數。如何創建在ios中的字典中包含mutablearray的參數(mutabledictionary)
的PARAMATERS是
{
"couponamt": 0,
"pincode": 110093,
"proinfo":
[
{ "prodPrice": 2289,
"prodSize": "",
"proid": 41211,
"promapid": 68804,
"proname": "Spigen SGP10905 Gunmetal iPhone 6 (5.5inch) Case ",
"qty": 1,
"vendorId": 1050
},
{ "prodPrice": 6422,
"prodSize": "3X8 Feet",
"proid": 61554,
"promapid": 110886,
"proname": "Kaka Carpet K00108 Camel Tibbati Gabbeh Carpet",
"qty": 1,
"vendorId": 1066
},
{ "prodPrice": 3996,
"prodSize": "XL",
"proid": 99003,
"promapid": 162976,
"proname": "AbsurdABWS15-625GreyWomenSweatshirt",
"qty": 4,"vendorId": 885
}
],
"shipcharge": 75,
"totalAmount": 1599,
"usedwalletamount": 0
}
我想通過這種放慢參數與我的網址創建request.And它是在array.Kindly的形式儘快恢復。 感謝
你能提供一些更多的細節嗎? –
上面列出的是參數,我只是想通過創建這個作爲parmater的請求 –
得到JSONStringFromDictionary並將其設置爲值或任何參數鍵您的服務器預計 –