You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have to do a post to an api, in my controller I have the following:
var param = {
twitter : "dasd",
nickname : "a",
yob : '1876',
description : "I am a test object"
};
matches.create(param, {
success : function() {
Ti.API.info("api response:"+JSON.stringify(matches));
},
error : function() {
// something is wrong..
}
});
The api responds with the original object and the object fetched by the server.
api response:[{"twitter":"dasd","nickname":"a","yob":"1876","description":"I am a test object","status":"OK","user":{"id":5188146770730811000,"auth_token":"WayXwJYEMVJaYfv2","facebook_id":"100005169690711","name":"John Smith","email":"[email protected]","description":"this is me"},"Id":"533fd3c2-24e3-b946-222a-e6d2e7235d04"}]
I have written a helper class without using your api (which works), but is based on creating apiRequest object via scratch and I never got the original object back - only the one the api fetches to me.
Is this a bug with your adapter? Thanks
The text was updated successfully, but these errors were encountered:
I have to do a post to an api, in my controller I have the following:
The api responds with the original object and the object fetched by the server.
api response:[{"twitter":"dasd","nickname":"a","yob":"1876","description":"I am a test object","status":"OK","user":{"id":5188146770730811000,"auth_token":"WayXwJYEMVJaYfv2","facebook_id":"100005169690711","name":"John Smith","email":"[email protected]","description":"this is me"},"Id":"533fd3c2-24e3-b946-222a-e6d2e7235d04"}]
I have written a helper class without using your api (which works), but is based on creating apiRequest object via scratch and I never got the original object back - only the one the api fetches to me.
Is this a bug with your adapter? Thanks
The text was updated successfully, but these errors were encountered: