$.ajax(
{
url: "https://104.131.103.113:8890/rastreamento/valida",
type: "POST",
data: { token: "das123412dasda23dfasdf",
imei: '123456778'
}
},
success: function(response){
console.log(response);
}
});
$.ajax(
{
url: "https://104.131.103.113:8890/add_bem",
type: "POST",
data: { token: "das123412dasda23dfasdf",
imei: '123456778',
nome: 'veiculo',
placa: 'AAA-123',
id_rastreador: '1',
chip: '92945067122',
identificacao: 'Veiculo do marcos',
id_operadora: '1',
id_tipo: '4',
id: '212'
}
},
success: function(response){
console.log(response);
}
});
$.ajax(
{
url: "https://104.131.103.113:8890/rastreamento/att",
type: "POST",
data: {
imei: '123456778',
latitude: '-654.546435',
longitude: '12.3542341'
}
},
success: function(response){
console.log(response);
}
});