Add support for getProfile to TextSecureServer

// FREEBIE
pull/749/head
lilia 8 years ago committed by Scott Nonnenberg
parent 9f4a657e8a
commit 0c5a69cce4

@ -37628,7 +37628,8 @@ var TextSecureServer = (function() {
keys : "v2/keys", keys : "v2/keys",
signed : "v2/keys/signed", signed : "v2/keys/signed",
messages : "v1/messages", messages : "v1/messages",
attachment : "v1/attachments" attachment : "v1/attachments",
profile : "v1/profile"
}; };
function TextSecureServer(url, ports, username, password) { function TextSecureServer(url, ports, username, password) {
@ -37696,6 +37697,13 @@ var TextSecureServer = (function() {
throw e; throw e;
}); });
}, },
getProfile: function(number) {
return this.ajax({
call : 'profile',
httpType : 'GET',
urlParameters : '/' + number,
});
},
requestVerificationSMS: function(number) { requestVerificationSMS: function(number) {
return this.ajax({ return this.ajax({
call : 'accounts', call : 'accounts',

@ -136,7 +136,8 @@ var TextSecureServer = (function() {
keys : "v2/keys", keys : "v2/keys",
signed : "v2/keys/signed", signed : "v2/keys/signed",
messages : "v1/messages", messages : "v1/messages",
attachment : "v1/attachments" attachment : "v1/attachments",
profile : "v1/profile"
}; };
function TextSecureServer(url, ports, username, password) { function TextSecureServer(url, ports, username, password) {
@ -204,6 +205,13 @@ var TextSecureServer = (function() {
throw e; throw e;
}); });
}, },
getProfile: function(number) {
return this.ajax({
call : 'profile',
httpType : 'GET',
urlParameters : '/' + number,
});
},
requestVerificationSMS: function(number) { requestVerificationSMS: function(number) {
return this.ajax({ return this.ajax({
call : 'accounts', call : 'accounts',

Loading…
Cancel
Save