Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Valence API 为用户获取所有讲师注册的最有效方法是什么。
目前我正在使用这个:
/d2l/api/lp/1.0/enrollments/users/{userid}/orgUnits/?roleid={Instructor}
这是用于此信息的正确调用。?orgUnitTypeId={ouTypeId}如果您只想查看课程设置,您可以使用 进一步将返回的列表过滤到特定的组织单位类型。这可能很有用,例如,从列表中过滤掉也将在您使用的呼叫中返回的所有组和部分,或者用户注册为“讲师”角色的任何自定义组织单位,这不是严格意义上的课程(如部门、学院或其他自定义组织单位)。
?orgUnitTypeId={ouTypeId}
如果您想查看注册角色为“讲师”的用户的所有注册(前提是您传递了“讲师”的角色 ID),那么您的 API 就是您想要的。