How to parse the state content in tin can api?
Jan 24, 2017
Is there some sort of pattern on how data are formatted and what kind of data are stored in the content string when the course do a PUT request to /activities/state?
take this one for example:
209ea0407060509080~2B2~2x21001411~2m201211013110121101611015110161101511014110131101211011110101101111012110151101611014110111101011012110151101611015110131101111010110141101611015110141100~226~2o1a9101001a1a3pe1G8Qg00l1_$6Ai0000pTi3000G0_$00H0118_defaultpn02erfe720118_default00000010~2N1a9101001a1a3ie1~201jDi300000118_default8Qg00l1_$lTg3000G0_$118_defaultcQi0002_$0012pn02Phfe720118_default00000010m103Ce187kz0d1_$2000010F1039e1r6A245i16A245g06A245k21414142000010q103me1cb608472365102000010m103fe187kz0H1_$2000010Y103xe1M7k00V0_$14141414147k00s0_$1414141414141414141414000100
3 Replies
I'd suggest you search the internet for "Tin Can API" as the data exchange is documented quite well. Several open source tools and libraries exist to help work SCORM data as well
Hi Brian!
Thanks for the reply, I'm actually trying to parse this suspend data generated by Articulate Storyline which is published for TIN CAN.
I want to retrieve some data from it, specially the current slide number.
Hi Julian,
Our suspend data is compressed and therefore becomes not human-readable, so there won't be a way for you to parse that out (at least that I'm aware of). I wouldn't be surprised if there is something else the community has come up with for this type of behavior. But are you looking to capture the slide number the user leaves on? If you've enabled the "resume" behavior in the course and it's supported by the LMS that should allow the user to return to the slide that they left off on.
This discussion is closed. You can start a new discussion or contact Articulate Support.