[!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.
import { Client } from 'https://esm.sh/gatewayapi'
npm i gatewayapi
import { Client } from 'gatewayapi'
The SDK is fully typed, so getting started shouldn't be much of a challenge.
const gatewayapi = new Client({
token: '...'
})
const { data, error } = await gatewayapi.getAccountBalance()
const { data, error } = await gatewayapi.getPrices({
format: 'json'
})
const { data, error } = await gatewayapi.sendMessage({
sender: 'You',
message: '123456 is your verification code.',
to: 4566118311 // +45 66118311
})