@storinka/client
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

Storinka JavaScript Client

Documentation: api.storinka.menu/docs

Installation

NPM:

npm install @storinka/client

Yarn:

yarn add @storinka/client

Example

import StorinkaClient, { ApiError } from "@storinka/client";

const storinka = new StorinkaClient({
    clientId: "your-client-id-here",
});

storinka.invoke("getFullCafe", {
    id: "kava-gallery",
}).then(cafe => {
    console.log(cafe);
}).catch(error => {
    if (error instanceof ApiError) {
        console.log("request failed", error);
    } else {
        console.log("network error");
    }
});

Readme

Keywords

Package Sidebar

Install

npm i @storinka/client

Weekly Downloads

13

Version

1.6.0

License

MIT

Unpacked Size

4.15 kB

Total Files

4

Last publish

Collaborators

  • kohutd