gatewayapi
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

gatewayapi(.js)

Setup

[!IMPORTANT]
You need to open a gatewayapi account first to use this module. After you have signed up, you can create a new API token here.

Deno

import { Client } from 'https://esm.sh/gatewayapi'

Node.js

npm i gatewayapi
import { Client } from 'gatewayapi'

Usage

The SDK is fully typed, so getting started shouldn't be much of a challenge.

const gatewayapi = new Client({
  token: '...'
})

getAccountBalance()

const { data, error } = await gatewayapi.getAccountBalance()

getPrices()

const { data, error } = await gatewayapi.getPrices({
  format: 'json'
})

sendMessage()

const { data, error } = await gatewayapi.sendMessage({
  sender: 'You',
  message: '123456 is your verification code.',
  to: 4566118311 // +45 66118311
})

Package Sidebar

Install

npm i gatewayapi

Weekly Downloads

1

Version

2.0.0

License

Apache-2.0

Unpacked Size

20.8 kB

Total Files

7

Last publish

Collaborators

  • sakuta96