Saturday 30 March 2019

Need some help grabbing and outputting data from API

Hello. I just started coding Node.js and I am stuck on this problem I can't seem to figure out. I want to implement this API to grab the price of BTC when I type say !btc in discord. The API instructions says: But I can't figure out how to display the grabbed data from Step 3. I already installed the API program with npm install coingecko-api. Thanks in advance!//1. Import coingecko-api const CoinGecko = require('coingecko-api');//2. Initiate the CoinGecko API Client const CoinGeckoClient = new CoinGecko();//3. Make calls var func = async() => { let data = await CoinGeckoClient.ping(); };

Submitted March 31, 2019 at 06:31AM by rotaryfurball

No comments:

Post a Comment