aeseducation / scorm-cloud

Ruby API Wrapper for Rustici SCORM Cloud
MIT License
22 stars 59 forks source link

Can you import/upload .zip files? #7

Open kibaekr opened 10 years ago

kibaekr commented 10 years ago

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?

passalini commented 10 years ago

@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?

dankleiman commented 10 years ago

Hey guys,

We're working on this too. To use the import_course method in the course service, we had to:

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.

miquella commented 10 years ago

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

miquella commented 10 years ago

This has allowed us to import courses this way:

scorm_cloud.course.import_course(course_id, file_object)
Basarqari commented 8 years ago

At last Files can be uploaded to Github. Thanks Guys for this step but I worried of some things.No issue

Basarqari commented 8 years ago

Go to Your Forked Repository Click on the Button Upload, You could surely upload your Files and then submit also as a Pull Request