Skip to content

How to cancel preconditioning timer? #19

@g-mocken

Description

@g-mocken

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions