如何在Windows Phone中使用数据模式params将json数据发送到api

时间:2015-06-24 18:41:54

标签: c# json windows-phone-8 httprequest webclient

如何使用windows phone

中的数据模式params将json数据发送到api
"url":"
http://rawafedtech.info/tafsir/stable-api/current/web/app_dev.php/dummy/home
","method":"POST","headers":"",
"data":[{"key":"token","value":"1m1","type":"text"},{"key":"pageNo","value":"1","type":"text"},{"key":"pagesize","value":"20","type":"text"}]
,"dataMode":"params"

1 个答案:

答案 0 :(得分:0)

尝试添加dataType:'json' 例如 $http({ url: "your url", method: 'POST', data: "your json object", dataType: 'json', })