gatewayapi
v2.0.0
Published
JavaScript SDK for 📬 gatewayapi
Downloads
2
Maintainers
Readme
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
})