Skip to content
Browse files

updated for new version of sdk

  • Loading branch information...
1 parent 39b16d5 commit 1144a1a4a37ecb22d74b70d2e105c74e517af4be @rodsimpson rodsimpson committed
Showing with 6 additions and 6 deletions.
  1. +5 −5 js/apigee.appSDK.js
  2. +1 −1 js/app.js
View
10 js/apigee.appSDK.js
@@ -670,7 +670,7 @@ apigee.ApiClient = (function () {
Query.callSuccessCallback(response);
}
};
- var timeout = setTimeout(function() { xhr.abort(); }, 10000);
+ var timeout = setTimeout(function() { xhr.abort(); }, 15000);
xhr.send(jsonObj);
}
@@ -1551,11 +1551,11 @@ apigee.validation = (function () {
if (path == 'users') {
var data = this.getData();
var pwdata = {};
- if (data.oldpassword) { pwdata.oldpassword = data.oldpassword; }
- if (data.newpassword) { pwdata.newpassword = data.newpassword; }
//Note: we have a ticket in to change PUT calls to /users to accept the password change
// once that is done, we will remove this call and merge it all into one
- if (oldpassword && newpassword) {
+ if (data.oldpassword && data.newpassword) {
+ pwdata.oldpassword = data.oldpassword;
+ pwdata.newpassword = data.newpassword;
this.runAppQuery(new apigee.Query('PUT', 'users/'+uuid+'/password', pwdata, null,
function (response) {
//not calling any callbacks - this section will be merged as soon as API supports
@@ -1771,7 +1771,7 @@ apigee.validation = (function () {
* @param {uuid} uuid - (optional), the UUID of the user if it is known
*/
apigee.User = function(username, uuid) {
- this._collectionType = 'user';
+ this._collectionType = 'users';
this._data = {};
this.setUsername(username);
this._uuid = uuid;
View
2 js/app.js
@@ -474,7 +474,7 @@ $(document).ready(function () {
//reset the full feed object so when we view it again, we will get the latest feed
fullActivityFeed.clearQuery();
userFeed.clearQuery();
- apigee.ApiClient.runAppQuery(new apigee.QueryObj('POST', 'users/' + apigee.ApiClient.getAppUserUsername() + '/following/users/' + username, null, null,
+ apigee.ApiClient.runAppQuery(new apigee.Query('POST', 'users/' + apigee.ApiClient.getAppUserUsername() + '/following/users/' + username, null, null,
function() {
$('#now-following-text').html('Congratulations! You are now following <strong>' + username + '</strong>');
showMyFeed();

0 comments on commit 1144a1a

Please sign in to comment.
Something went wrong with that request. Please try again.