Returns a static rendering of an item. Image returned is in PNG format.
Especially with TEI items, it is difficult to render a text-based representation of an item for quick viewing in a platform. For items that need to be viewed very quickly, for example, while a user is browsing items to include in a test, we provide a static rendering of all items to avoid having to load all of the JS necessary to render an interactive version of an item.
|GET /item/<item_id>/screenshot HTTP/1.1|
Tip: Don't forget to add your API token to the query string.
Choosing Screenshot Size
By default, you will be served an image that is 550 pixels wide. You may request either 400, 550, or 1100 pixel-wide screenshots.
|GET /item/<item_id>/screenshot/550 HTTP/1.1|
Choosing a Keyed Response
We can also provide a screenshot of a keyed item, or an item that has been correctly completed. Simply add /keyed to the url.
|GET /item/<item_id>/screenshot/550/keyed HTTP/1.1|
If there are more than one ways to correctly answer the item, this screenshot will only show the first way as known to ItemLogic.
When specifying size and keyed, size must be first in the URL.