6.20.4 • Published 27 days ago

@eflyn/esuite-client v6.20.4

Weekly downloads
-
License
ISC
Repository
-
Last release
27 days ago

Eflyn API

This repository provides type definitions, an OpenAPI specification as well as a working client library (fully typed) for use with your MyEflyn Admin panel. You can find more details for authenticating with this API in your MyEflyn account.

ResourceDescription
api.jsonOpenAPI specification for the MyEflyn Admin API.
dist/Generated type definitions and client library.

Examples

// import the client helper
import { createEsuiteClient } from './esuite-client';

// instantiate the client
const myeflynAdmin = createEsuiteClient(/** here you can pass in auth params if applicable **/);

/**
 * Fetch a list of your kiosks
 */
myeflynAdmin.kiosk.list()
  .then(kiosks => {
    console.log('Kiosk was last offline at: ', kiosk.offline);	
  });

/**
 * Update a kiosk's RGB light color
 */
myeflynAdmin.kiosk.update(23, { rgbColor: ['green'] })
  .then(() => {
    console.log('Kiosk color changed successfully.');
  });

/**
 * Change the price of an item
 */
myeflynAdmin.catalogItemVariant.update(1213, { price: 23.87 })
  .then((updatedItem) => {
    console.log('Updated item status', updatedItem);
  });
6.20.3

27 days ago

6.20.4

27 days ago

6.17.0

2 months ago

6.12.2

2 months ago

6.11.13

2 months ago

6.11.12

2 months ago

6.11.10

2 months ago

6.11.9

2 months ago

6.11.6

2 months ago

6.11.5

2 months ago

6.2.240312

2 months ago

6.1.240312

2 months ago

6.0.240312

2 months ago