Skip to content

storinka/client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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");
    }
});

About

Storinka JavaScript Client

Resources

Stars

Watchers

Forks

Packages

No packages published