How to call an external api within express.js

Viewed 25

Trying to use this api that also includes the package npm i unofficial-valorant-api.

const API = require("unofficial-valorant-api");
console.log(API.getAccount({username, tag})

When I input a username and tag it will not work. I don't believe I'm calling the api correctly.

0 Answers
Related