(idOrSlug, options = {})
| 61 | * @return {Promise<Object>} - Raw Interactive Session object |
| 62 | */ |
| 63 | export 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 |
no outgoing calls
no test coverage detected