2.0.0 • Published 1 month ago

gatewayapi v2.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 month ago

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
})
2.0.0

1 month ago

1.0.0

3 months ago