Welcome to KXG App Web API!
$("#list .do").click(function () {
var key = $("#list .key").val();
$.ajax({
url: "../api/tools/list?key=" + key,
type: "get",
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
key:
$("#info .do").click(function () {
var key = $("#info .key").val();
$.ajax({
url: "../api/tools/info?key=" + key,
type: "get",
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
key:
$("#homeimages .do").click(function () {
var key = $("#homeimages .key").val();
var resolution = $("#homeimages .resolution").val();
$.ajax({
url: "../api/tools/homeimages?resolution=" + resolution + "&key=" + key,
type: "get",
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
resolution: key:
$("#telephone .do").click(function () {
var key = $("#telephone .key").val();
$.ajax({
url: "../api/tools/telephone?key=" + key,
type: "get",
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
key:
$("#pushnotification .do").click(function () {
var key = $("#pushnotification .key").val();
$.ajax({
url: "../api/tools/pushnotification?key=" + key,
type: "post",
data: {
alias: $("#pushnotification .alias").val(),
type: $("#pushnotification .type").val(),
content: $("#pushnotification .content").val()
},
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
alias: type: content: internalkey:
$("#queuepush .do").click(function () {
var key = $("#queuepush .key").val();
$.ajax({
url: "../api/tools/queuepush?key=" + key,
type: "post",
data: {
examid: $("#queuepush .examid").val(),
department: $("#queuepush .department").val()
},
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
examid: department: internalkey:
$("#androidver .do").click(function () {
var key = $("#androidver .key").val();
$.ajax({
url: "../api/tools/androidver?key=" + key,
type: "get",
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
key:
$("#about .do").click(function () {
var key = $("#about .key").val();
$.ajax({
url: "../api/tools/about?key=" + key,
type: "get",
success: function (data) {
console.log(data);
alert(JSON.stringify(data));
}
});
});
key: