I need to send an array using an ajax call.
$.ajax({
type: "GET",
crossDomain: true,
dataType: "json",
url: "http://localhost:24234/api/SendPushNotification",
success: {
Function(result) {
Console.log(result);
}
},
data: {
'user_id': '1',
'body_param': 'body',
'title_param': 'title'
},
headers: {
'Token': 'ccTtUKQS32PjzMYQEzH2OUQN8nJpsCUXg7iWRYA7cEpAJLoNEWCKr2NcQyFUbdV4'
}
});
How could it be done?
PS: where the user id goes, there will be an "unlimited number of users according to internal filters.
As a VB server language. It is for a webservice that is responsible for sending notifications. Currently it works by sending identifiers one by one. But it is unfeasible considering what it takes to make the call to the ws etc ...