[ARCHIVED] How to send scores back to Canvas with ims-lti gem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2020
09:44 PM
I'm trying to figure out how to send scores back to Canvas with the Ruby on Rails ims-lti (2.3.0). Our current code is using an older version (example below). I'm unable to find any documentation that could help with this.
toolProvider = IMS::LTI::ToolProvider.new(consumer_key, consumer_secret, {
"lis_outcome_service_url" => lis_outcome_service_url,
"lis_result_sourcedid" => lis_result_sourcedid,
})
toolProvider.extend IMS::LTI::Extensions::OutcomeData::ToolProvider
res = toolProvider.post_extended_replace_result!(score: score)
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.