-
Notifications
You must be signed in to change notification settings - Fork 0
Module: backend
eviratec.software edited this page May 12, 2017
·
2 revisions
Fetch a single ListItem identified by the ID property in attrs
, from the backend.
backendService
.getListItemById(137)
.then(function (res) => {
let listItem = res.data;
})
.catch(function (err) => {
*
});
Attempt to authenticate via backend using credentials provided in attrs
argument.
let credentials = {
EmailAddress: 'tester@localhost',
Password: 'mypassword1'
};
backendService
.login(credentials)
.then(function (res) => {
let session = res.data;
})
.catch(function (err) => {
});