@datafire/zappiti

6.0.0 • Public • Published

@datafire/zappiti

Client library for Zappiti Player API

Installation and Usage

npm install --save @datafire/zappiti
let zappiti = require('@datafire/zappiti').create();

.then(data => {
  console.log(data);
});

Description

Move your app forward with the Zappiti Player API. Use http://your-player-ip:8990/ as base URL for your requests.

Actions

CheckZappitiService.post

ErrorCode.NotInstalled ErrorCode.NotRunning ErrorCode.Running

zappiti.CheckZappitiService.post({
  "body": {}
}, context)

Input

Output

ConnectionDetails.post

Get user's login details

zappiti.ConnectionDetails.post({
  "body": {}
}, context)

Input

Output

InstallZappitiService.post

Open a popup that allow the user to install Zappiti Service, if not already installed

zappiti.InstallZappitiService.post({
  "body": {}
}, context)

Input

Output

IsAlive.post

Get server status

zappiti.IsAlive.post({
  "body": {}
}, context)

Input

Output

LastMedia.post

Get informations about last media playback

zappiti.LastMedia.post({
  "body": {}
}, context)

Input

Output

StartVideo.post

Start the playback of the speficied video.

zappiti.StartVideo.post({
  "body": {}
}, context)

Input

Output

StartZappitiService.post

Start Zappiti Service if not started yet

zappiti.StartZappitiService.post({
  "body": {}
}, context)

Input

Output

Definitions

CheckZappitiServiceRequest

  • CheckZappitiServiceRequest object
    • ApiKey string: Client API Key

CheckZappitiServiceResult

  • CheckZappitiServiceResult object

ConnectionDetailsRequest

  • ConnectionDetailsRequest object
    • ApiKey string: Client API Key

ConnectionDetailsResult

  • ConnectionDetailsResult object
    • AuthKey string: User's Authentification key
    • Collection string: User's collection id
    • Email string: User's email used for the collection
    • ErrorCode ErrorCode
    • ServerIp string: Server's IP
    • ServerPort integer: Port used by the server

ErrorCode

  • ErrorCode string (values: None, Failed, Exist, NotInstalled, NotRunning, Running, FailToStart, BadApiKey)

InstallZappitiServiceRequest

  • InstallZappitiServiceRequest object
    • ApiKey string: Client API Key

InstallZappitiServiceResult

  • InstallZappitiServiceResult object

IsAliveRequest

  • IsAliveRequest object
    • ApiKey string: Client API Key

IsAliveResult

LastMediaRequest

  • LastMediaRequest object
    • ApiKey string: Client API Key

LastMediaResult

  • LastMediaResult object
    • Actors array
      • items string
    • BackgroundUrl string
    • Directors array
      • items string
    • Episode integer
    • ErrorCode ErrorCode
    • PosterUrl string
    • Runtime integer
    • Season integer
    • Synopsis string
    • Title string
    • TvShowName string

StartVideoRequest

  • StartVideoRequest object
    • ApiKey string: Client API Key
    • AuthKey string: User auth key
    • Collection string: Collection id
    • Ip string: Server Ip
    • MediaId string: Id of the video to start
    • Port integer: Server Port

StartVideoResult

  • StartVideoResult object

StartZappitiServiceRequest

  • StartZappitiServiceRequest object
    • ApiKey string: Client API Key

StartZappitiServiceResult

  • StartZappitiServiceResult object

Readme

Keywords

none

Package Sidebar

Install

npm i @datafire/zappiti

Weekly Downloads

0

Version

6.0.0

License

MIT

Unpacked Size

17.5 kB

Total Files

4

Last publish

Collaborators

  • datafire