import Fiatwebservices from 'fiatwebservices';
const client = new Fiatwebservices({
apiKey: process.env['FWS_API_KEY'], // This is the default and can be omitted
});
async function main() {
const response = await client.ping();
console.log(response.message);
}
main();
{
"message": "pong"
}
API Reference
Get ping
GET
/
ping
JavaScript
import Fiatwebservices from 'fiatwebservices';
const client = new Fiatwebservices({
apiKey: process.env['FWS_API_KEY'], // This is the default and can be omitted
});
async function main() {
const response = await client.ping();
console.log(response.message);
}
main();