Can you help me deciphering what this piece of JS code from the Z.E. site does:
removeTimer: function removeTimer() {
return UserService.getLoggedUser().then(function (user) {
var baseURI = AppConstants.settings.apiUrl + "/vehicle/" + user.vehicle_details.VIN + "/air-conditioning/scheduler";
return $http["delete"](baseURI).then(function (res) {
$log.debug("AC timer removed successfully");
return $q.resolve(res.data);
});
});
},
In what kind of http request do I have to wrap this "delete"? I am no web/JS developer.
Can you help me deciphering what this piece of JS code from the Z.E. site does:
In what kind of http request do I have to wrap this "delete"? I am no web/JS developer.