-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Description
抓包如下:
{
"name": "task1",
"enabled": true,
"push": {
"platform": "all",
"audience": "all",
"notification": {
"alert": "Hello JPush AtTime"
},
"message": {
"msg_content": "message content AtTime",
"title": "message title AtTime",
"content_type": "text",
"extras": {}
},
"options": {
"sendno": 0,
"time_to_live": 0,
"override_msg_id": 0,
"apns_production": false,
"big_push_duration": 0
}
},
"trigger": {
"single": {
"time": "2017-10-20 14:22:26"
}
}
}我的代码
PushPayload pushPayload = new PushPayload();
pushPayload.Platform = "all";
pushPayload.Notification = new Notification()
{
Alert = "Hello JPush AtTime"
};
pushPayload.Message = new Message()
{
Title = "message title AtTime",
Content = "message content AtTime",
ContentType = "text",
Extras = new Dictionary<string, string>()
};
//pushPayload.Options = new Options() { };
var response = client.Schedule.CreateSingleScheduleTask("task1", pushPayload, DateTime.Now.AddSeconds(5).ToString("yyyy-MM-dd HH:mm:ss"));Metadata
Metadata
Assignees
Labels
No labels