Search code examples
tin-can-apiarticulate-storyline

Resume in articulate with tin-can api


I am trying to implement this endpoint activities/state/?method=GET in my LRS - but I can not seem to get the resume functionality working. I have all the data, but not sure what does Articulate expect the LRS to return in order to resume where the user left off. I also tried looking at Articulate support page, but nothing useful so far. Any help would be appreciated.


Solution

  • I managed to get this working. I was using .NET Web API.

    I had to explicitly set the content-type header to octet-stream - It was defaulting to text/html.

    The following code did the trick:

    HttpResponseMessage httpResponseMessage = Request.CreateResponse(HttpStatusCode.OK);
    httpResponseMessage.Content = new StringContent(studentModuleName.SuspendData);
    httpResponseMessage.Content.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");