Hello,
I'm using v.3.3.5 and want to add the External Resources activity by API function to a course which been created via core_course_create_courses
.
But I faced with 2 issues:
_________________________________________________________________________________________________________________________________________________________
1st: I didn't find suitable API function listed in /admin/webservice/documentation.php to link External Resources activity tool with existing course.
most of mod_lti_
functions are about creating/updating tool ( which I've already created ) or getting info about already defined LTI. (mod_lti_get_ltis_by_courses
)
but nothing to set up (link) tool to course.
_________________________________________________________________________________________________________________________________________________________
2nd : After the course been successfully created via core_course_create_courses
service with user's token ( retrieved from /login/token.php ),
and unavailability to add External Tool Activity to the course via UI.
course created via API
course created via UI
In comparison with another course all parameters returned from
core_course_get_courses
are pretty the same.BTW : I already passed through some of the circles of hell:
- Enable web services
- Enable rest protocol
- Add a service
- Add functions to service
- Put all required capabilities to user
Thanks in advance,
Aleksandr Vorobev