@sulusolutions/sparkwall-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Sparkwall API TypeScript SDK

This library helps using the sparkwall-api component of Sparkwall programmatically, enabling you to create and manage your plans, wallets and other things without using the dashboard.

Usage

To use the library, simple import it from your code, and specify your API key, for example:

import { Sparkwall } from '@sulusolutions/sparkwall-sdk-ts';

const apiKey = '[YOUR API KEY]';

const sparkwallApiClient = new Sparkwall({
  BASE: 'https://sparkwall-api.sulu.sh/api',
  TOKEN: apiKey,
});

const getRequests = async () => await sparkwallApiClient.requests.getRequests({
  page: 0,
  pageSize: 10,
});

This package uses axios under the hood to send requests.

Build and Publish

To build a new version of the library, follow these steps:

  • npm run generate to re-generate the client code
  • bump the version number
  • publish to npm the new version

Readme

Keywords

none

Package Sidebar

Install

npm i @sulusolutions/sparkwall-sdk

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

76.1 kB

Total Files

49

Last publish

Collaborators

  • tolnai
  • samalarco