Socket
Socket
Sign inDemoInstall

@snapp-store/snapp-box-sdk

Package Overview
Dependencies
8
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @snapp-store/snapp-box-sdk

A javascript sdk for snapp box api


Version published
Weekly downloads
17
decreased by-19.05%
Maintainers
2
Install size
1.10 MB
Created
Weekly downloads
 

Readme

Source

snapp-box-sdk

snapp-box SDK is a Typescript library for dealing with app.snpb.ir 3rd party api 🛵.

Installation

Use the package manager npm to install snapp-box-sdk.

npm install @snapp-store/snapp-box-sdk

Usage

Pass your API key and environment between "staging" or "production" to snapp-box class and create an instance of it.

import SnappBox from '@snapp-store/snapp-box-sdk';

const snappBox = new SnappBox('<YOUR_snapp-box_API_KEY>', 'staging');

const someFancyFunction = async () => {
  // some loginc here

  const accountBalance = await snappBox.methods.getAccountBalance();

  return accountBalance;
};

Available Methods

  • getAccountBalance()
  • createOrder(CreateOrderRequest)
  • cancelOrder(CancelOrderRequest)
  • getOrderList(GetOrderListRequest)
  • getPrice(GetPriceRequest)
  • getOrderDetailsV2(id)
  • getCities()
  • updateOrder(UpdateOrderRequest)
  • verification(Verification)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Keywords

FAQs

Last updated on 11 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc