| 386 | } |
| 387 | |
| 388 | fetchForCourseInstance (courseInstanceID, options) { |
| 389 | if (options == null) { options = {} } |
| 390 | if (!courseInstanceID) { return } |
| 391 | const CourseInstance = require('models/CourseInstance') |
| 392 | const courseInstance = _.isString(courseInstanceID) ? new CourseInstance({ _id: courseInstanceID }) : courseInstanceID |
| 393 | options = _.extend(options, { |
| 394 | url: _.result(courseInstance, 'url') + '/classroom' |
| 395 | }) |
| 396 | return this.fetch(options) |
| 397 | } |
| 398 | |
| 399 | inviteMembers (emails, recaptchaResponseToken, options) { |
| 400 | if (options == null) { options = {} } |