Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleCourse Enrollment (course_enrollment)
collapsetrue
var course_enrollment = {
  "nid" : 10,
  "uid" : 1,
  "enrollmenttype" : "webservice_call", // Can be any value. Used to flag where an enrollment came from.
  "type" : "webservicecourse_callenrollment", // The field bundle to use. Can be omitted.
  "status" : 1,
};


Code Block
languagejs
titleCourse Object Fulfillment (course_object_fulfillment)
collapsetrue
var course_object_fulfillment = {
  "coid" : 30, // The course object id. This is different from the course nid.
  "uid" : 1,
  "grade_result" : 100,
  "date_started" : date('Y-m-d\TH:i:s', 1471452801), // In ISO format
  "date_completed" : date('Y-m-d\TH:i:s', 1471452801), // In ISO format
  "complete" : 1,
};

...