62,041
社区成员
发帖
与我相关
我的任务
分享
public class UpdatePhoto
{
public int type;
public string image;
}
string images = Newtonsoft.Json.JsonConvert.SerializeObject(new List<UpdatePhoto>
{
new UpdatePhoto{
type =3,image="http://t.360.com/upload/8.jpg"
},
new UpdatePhoto{
type =3,image="http://t.360.com/upload/9.jpg"
},
});
var api = String.Format("https://t.360.com/api/images");
//使用FormUrlEncodedContent做HttpContent
var content = new FormUrlEncodedContent(new Dictionary<string, string>()
{
{"id", "bj40"},
{"images", images }
});
var response = Put<ActionResponse>(api, content);