We want to access a file in a course directly, generating a link using webservices to receive the required information.
I have found that, no matter how the file is attached to a content, the link meets the pattern:
where 3419 is the content_id and 65817_1 is the resource_id. The rest of the url is static, even if the content is inside another content or in a folder.
The content id and resource id can be found using the webservices, and we can access the file using basic auth.
Is this a good approach or there are a better way to achieve this?.
I am figuring now how to get info of the files inside SCORM packages too. Ideas are welcome