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();{
"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();{
"message": "pong"
}Response
200 - application/json
A successful ping response.
A ping response.
Example:
"pong"