Using the API
With JumpSeat loaded, the JumpSeat object is available
Methods
JumpSeat.app();
Returns the connected application’s ID
JumpSeat.guide.getAll(force);
Returns a promise, with a payload of all guides available in an application. Use force to clear the cache and query the server.
JumpSeat.guide.current();
Returns the currently running guide ID.
JumpSeat.guide.currentStep();
Returns the index of the current guide’s step.
JumpSeat.guide.fromPathway(pathwayid);
Retuns a promise, with a payload of all guides in the given pathway.
JumpSeat.guide.start(id);
Starts a guide with the given ID.
JumpSeat.isAdmin();
Returns boolean of the currently logged in user’s admin status.
JumpSeat.locale();
Returns the current user’s locale.
JumpSeat.pathway.current();
Returns current pathway ID.
JumpSeat.pathway.getAll()
Returns a promise, with a payload of available pathways.
JumpSeat.user();
Returns the current user’s Email/ID.