Built-In Namespace _global_
Field Attributes | Field Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
_defineService(serviceClass, username, password, siteIds)
Sets up the Service.
|
|
_defineServiceAsync(serviceClass, username, password, siteIds)
Sets up the Service using Bluebird Promises.
|
|
mbo_Logger(type)
Used to log requests to the MINDBODY server.
|
Field Detail
EventEmitter
fs
Promise
Method Detail
{mbo_Service}
_defineService(serviceClass, username, password, siteIds)
Sets up the Service.
Defined in: mbo_ServiceFactory.js.
Defined in: mbo_ServiceFactory.js.
- Parameters:
- {mbo_Service} serviceClass
- The service to be initialized.
- {string} username
- The Username of the MINDBODY client to be used with all requests.
- {string} password
- The Password of the MINDBODY client to be used with all requests.
- {number|Array} siteIds
- The Site ID, or an Array of Site IDs to be used with all requests.
- Returns:
- {mbo_Service} Returns an instantiated instance of the passed in Service class.
{Promise}
_defineServiceAsync(serviceClass, username, password, siteIds)
Sets up the Service using Bluebird Promises.
Defined in: mbo_ServiceFactory.js.
Defined in: mbo_ServiceFactory.js.
- Parameters:
- {mbo_Service} serviceClass
- The service to be initialized.
- {string} username
- The Username of the MINDBODY client to be used with all requests.
- {string} password
- The Password of the MINDBODY client to be used with all requests.
- {number|Array} siteIds
- The Site ID, or an Array of Site IDs to be used with all requests.
- Returns:
- {Promise} Returns an A+ Promise passed an instantiated instance of the passed in Service class.
mbo_Logger(type)
Used to log requests to the MINDBODY server.
Defined in: mbo_Logger.js.
Defined in: mbo_Logger.js.
- Parameters:
- {string} type
- The type of logger to be used. Either 'local' to log to a local file, or 'remote' to log to a remote server.
- Throws:
- {Error}
- Throws error if an invalid type parameter is passed.