Send-to-self works =D

This commit is contained in:
Matt Corallo 2014-03-26 15:05:09 -04:00
parent 136a8941c1
commit 2ae5628122
5 changed files with 43 additions and 33 deletions

View file

@ -1,8 +1,12 @@
/************************************************
*** Utilities to communicate with the server ***
************************************************/
// WARNING: THIS SERVER LOGS KEY MATERIAL FOR TESTING
var URL_BASE = "http://sushiforeveryone.bluematt.me";
// This is the real server
//var URL_BASE = "https://textsecure-service.whispersystems.org";
var URL_CALLS = {};
URL_CALLS['accounts'] = "/v1/accounts";
URL_CALLS['devices'] = "/v1/devices";
@ -153,13 +157,4 @@ var API = new function() {
error_callback : error_callback
});
};
this.pushMessage = function(messageId) {
this.doAjax({
call : 'push',
httpType : 'PUT',
urlParameters : '/' + message.id,
do_auth : true
});
};
}(); // API