Add support for getProfile to TextSecureServer
// FREEBIE
This commit is contained in:
parent
9f4a657e8a
commit
0c5a69cce4
2 changed files with 18 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue