mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-07 16:06:15 +00:00
32 lines
765 B
JavaScript
32 lines
765 B
JavaScript
/**
|
|
* ownCloud - ocsms
|
|
*
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
* later. See the COPYING file.
|
|
*
|
|
* @author Loic Blot <loic.blot@unix-experience.fr>
|
|
* @copyright Loic Blot 2014
|
|
*/
|
|
|
|
(function ($, OC) {
|
|
|
|
$(document).ready(function () {
|
|
$('#echo').click(function () {
|
|
var url = OC.generateUrl('/apps/ocsms/push');
|
|
var data = {
|
|
sms_count: 1
|
|
sms_datas: {
|
|
{"read": 1, "date": 1410524385, "seen": 0, "address": "+33612121212", "body": "testSMS", "_id": 10},
|
|
{"read": 0, "date": 1400524385, "seen": 1, "address": "+33614121212", "body": "test SMS 2", "_id": 14},
|
|
}
|
|
};
|
|
|
|
$.post(url, data).success(function (response) {
|
|
$('#push-result').text(response);
|
|
});
|
|
|
|
});
|
|
});
|
|
|
|
})(jQuery, OC);
|