Sending a push using the push API
Parameter Name
Input Example
Explanation
var apiUserId = "[email protected]";
var apiKey = "test_api_key";
var appId = "test_app_id";
var messageJson = '{ "messageTitle" : "Title" , "messageContent" : "Content" ,
"messageLinkUrl" : "http://m.naver.com" , messageImageUrl : "http://swing2app.com/abc.png" }';
var sendTargetList = '-1';
var sendTargetTypeList = "ALL_TARGET";
$.ajax({
url: "https://api.swing2app.com/swapi/push_send",
type: "post",
dataType: "json",
data : {
app_id : appId,
send_target_list : sendTargetList,
send_target_type_list : sendTargetTypeList,
send_type : 'push' ,
message_json : messageJson,
api_user : apiUserId,
api_key : apiKey
},
success: function (model) {
console.log("Push sending success");
}
});Last updated