0.1.1 • Published 4 months ago

v2connect v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

v2connect

Javascript wrapper for SMM with V2 API.

Installation

npm i v2connect

Usage

import { Provider } from 'v2connect'

// create new instance
const smm = new Provider(process.env.PROVIDER_URL, process.env.PROVIDER_KEY);

(async () => {
  try {
    // check your balance on the provider
    const balance = await smm.balance()
    // get all services from the provider
    const services = await smm.services()
    console.log({ balance, services })
  }
  catch (error) {
    console.error(error)
  }
})()

API

MethodsDescription
.services()Get all services from the provider
.balance()Check balance
.add()Create new order
.status()Get order status
.refill()Create refill
.refill_status()Get refill status
.cancel()Cancel order

License

MIT

0.1.1

4 months ago

0.1.0

4 months ago