I'd like to see a callback menu item with Token protection that I could use to securely set grades directly from Flash. That way I can have Flash grade performance in a simulation and send the grade directly to the gradebook. I have a custom module that I'm currently using to store simulation scores, but I would much rather send anything grade-like directly to the Gradebook. I actually tossed in a couple of lines that sends a copy of the grade to Gradebook if it finds it installed, but I haven't really tested it very thoroughly, and ultimately, having two copies of the same grade seems like a bad idea. Posting directly to Gradebook would be a much better solution, if only there were a reliable and secure way to do it.
Flash can post to a callback address like gradebookapi/set/grade/%/%/% with arguments nid/earned/token or with no arguments and just some $_POST data. But, it needs the token for security, whether it is in $_POST or in the path. I can send you sample code from my custom module if you are interested.
Comments
Comment #1
MGN commentedYes, please post the code so I can better understand what you are doing. Sounds great!