Api Object


request(route, method, params = {}, options = {}) Makes a cross domain ajax request to the chat server

  • route String: Chat API route
  • method String: Request method
  • params Object: Request parameters object
  • options Object: Options to be added to the request

return Promise{Object}: Response for the ajax request

getApiVersion() Retrieves the used REST API version

return String: API version

getFullPath(route) Retrieves the full route path

  • route String: Full route URL

return String: Full route path