crash(options = {}) {
      if (options.redirect !== true) {
        self.destroy();
        self.crashed = true;
      }
      self.SDK.invoke("crash", options);
    }
Main API calls provider for the whole application.
`params` are used both for var substitution and query params if var is unknown:
`{ project: 123, order: "desc" }` for method `"tasks": "/project/:pk/tasks"`
will produce `/project/123/tasks?order=desc` url
@param {string} methodName one of the methods in api-config
@param {object} params url vars and query string params
@param {object} body for POST/PATCH requests
@param {{ errorHandler?: fn, headers?: object, allowToCancel?: boolean }} [options] additional options like errorHandler