JSFiddle - React, Tailwind, and code Playground
JavaScript
$.ajax({
url: 'http://localhost/apollo/thirdparty/api/createsession/',
method: 'POST',
dataType: 'json',
data: {
UserName: 'steveapollo',
Password: 'password'
}
}).success(function() {
console.log('SUCCESS', arguments);
}).error(function() {
console.log('ERRORS', arguments);
});