C#语言
var json = new PushModel
{
head = "测试标题",
body = "测试内容" + DateTime.Now,
};
string temp = JsonConvert.SerializeObject(json);
HttpContent content = new StringContent(temp, Encoding.UTF8, "application/json");
var response = await httpClient.PostAsync("https://www.phprm.com/services/push/send/4d2dac865118761a14d10d7d3afe7c35", content);
string res = await response.Content.ReadAsStringAsync();
Console.WriteLine("推送状态:" + response.StatusCode);
Console.WriteLine(res);
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
Last Updated: 2024/12/12, 21:28:26