diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 512d2ae86..0cbce5492 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -37628,7 +37628,8 @@ var TextSecureServer = (function() { keys : "v2/keys", signed : "v2/keys/signed", messages : "v1/messages", - attachment : "v1/attachments" + attachment : "v1/attachments", + profile : "v1/profile" }; function TextSecureServer(url, ports, username, password) { @@ -37696,6 +37697,13 @@ var TextSecureServer = (function() { throw e; }); }, + getProfile: function(number) { + return this.ajax({ + call : 'profile', + httpType : 'GET', + urlParameters : '/' + number, + }); + }, requestVerificationSMS: function(number) { return this.ajax({ call : 'accounts', diff --git a/libtextsecure/api.js b/libtextsecure/api.js index 046492445..1803bb30a 100644 --- a/libtextsecure/api.js +++ b/libtextsecure/api.js @@ -136,7 +136,8 @@ var TextSecureServer = (function() { keys : "v2/keys", signed : "v2/keys/signed", messages : "v1/messages", - attachment : "v1/attachments" + attachment : "v1/attachments", + profile : "v1/profile" }; function TextSecureServer(url, ports, username, password) { @@ -204,6 +205,13 @@ var TextSecureServer = (function() { throw e; }); }, + getProfile: function(number) { + return this.ajax({ + call : 'profile', + httpType : 'GET', + urlParameters : '/' + number, + }); + }, requestVerificationSMS: function(number) { return this.ajax({ call : 'accounts',