MCPcopy Create free account
hub / github.com/codecombat/codecombat / getSession

Function getSession

ozaria/site/api/interactive.js:63–71  ·  view source on GitHub ↗
(idOrSlug, options = {})

Source from the content-addressed store, hash-verified

61 * @return {Promise<Object>} - Raw Interactive Session object
62 */
63export const getSession = (idOrSlug, options = {}) => {
64 if (!idOrSlug) {
65 throw new Error('No slug/id supplied')
66 }
67 return fetchJson(`/db/interactive/${idOrSlug}/session`, {
68 method: 'GET',
69 data: options
70 })
71}
72
73/**
74 * Puts an interactive session into the database

Callers 1

loadInteractiveSessionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected