scorm-cloud
scorm-cloud copied to clipboard
Can you import/upload .zip files?
The readme only goes over retrieving courses hosted in scorm cloud, but how would I actually import courses into the scorm cloud storage space in our lms interface?
Is there a more thorough ruby api documentation?
@kibaekr i'm looking for it too... I figure out how to upload files, but the course importation is not working here =/
@miquella did a fork, can you help us?
Hey guys,
We're working on this too. To use the import_course method in the course service, we had to:
- get an upload token
- call the upload_file method with the token and the file path
- THEN, the return value for upload_file is the path you should use in import_course
In other words:
path = scorm_cloud.upload.upload_file(scorm_cloud.upload.get_upload_token, /your/file/path) scorm_cloud.course.import_course(course_id, path)
Or something like that.
Sorry about the delay, it's been a very busy month... we had to update our fork of the gem (https://github.com/instructure/scorm-cloud) to properly support uploads & imports
See: instructure/scorm-cloud#2
This has allowed us to import courses this way:
scorm_cloud.course.import_course(course_id, file_object)
At last Files can be uploaded to Github. Thanks Guys for this step but I worried of some things.No issue
Go to Your Forked Repository Click on the Button Upload, You could surely upload your Files and then submit also as a Pull Request