mindbody-sdk-forked
Version:
A Node.js client for the MINDBODY API
38 lines (34 loc) • 1.03 kB
JavaScript
var MBO = require('../mindbody-sdk');
var mbo = new MBO({
ApiKey: 'api-key',
SiteId: 12345
});
let printResponse = (err,data) => {
if (err) {
console.log(err);
} else {
console.log(data);
}
}
// https://api.mindbodyonline.com/public/v6/enrollment/enrollments
mbo.enrollment.enrollments(printResponse);
mbo.enrollment.enrollments({
'ClassScheduleIds': 'list of numbers',
'EndDate': DateTime,
'LocationIds': 'list of numbers',
'ProgramIds': 'list of numbers',
'SessionTypeIds': 'list of numbers',
'StaffIds': 'list of numbers',
'StartDate': DateTime
},printResponse);
// https://api.mindbodyonline.com/public/v6/enrollment/addclienttoenrollment
mbo.enrollment.addClientToEnrollment({
'ClientId': 'string',
'ClassScheduleId': Number,
'EnrollDateForward': DateTime,
'EnrollOpen': 'DateTime list',
'Test': 'nullable boolean',
'SendEmail': 'nullable boolean',
'Waitlist': 'nullable boolean',
'WaitlistEntryId': Number
},printResponse);