Hi guys,
I want to create a simple html form from where i can send push notifications to Android and IOS devices. I know the two steps: login to ACS and send the notification. In the html form i make a ajax request for the acs login, but i don't get any response van de ACS api.
$.ajax({
type: 'POST',
url: "https://api.cloud.appcelerator.com/v1/users/login.json",
dataType: 'jsonp', //use jsonp data type in order to perform cross domain ajax
crossDomain: true,
data: {key:'xxxAPPKEYxxx', login : "xxxLOGINEMAILxxx", password: 'xxxLOGINPASSWORDxxx'},
success: function (responseData) {
console.log(responseData);
},
error: function (responseData) {
console.log(responseData);
}
});
}