Skip to content

Control the FreeShow software from anywhere with its API

Notifications You must be signed in to change notification settings

vassbo/freeshow-api

Repository files navigation

FreeShow API Helper

This makes integrating the FreeShow API very easy.

Example REST:

const API = api("http://localhost:5506")
API.sendREST("next_slide") // POST body: { action: ACTION_ID, ...data }
API.sendHTTP("index_select_slide", { index: 2 }) // HTTP query: ?action=ACTION_ID?data={...}

Example WebSocket:

const API = api("http://localhost:5505")
API.webSocket("name_select_slide", { value: "verse" }) // Socket emit: { action: ACTION_ID, ...data }