Hi everyone,
I am trying to GET request to /api/v3/time with nodejs here is my code:
const express = require(‘express’);
const app = express();
const port = 1200;
const https = require(‘https’);
const binance = require(’./binanceConfig.js’);
const url = ‘https://api.binance.com/api/v3/time’;
app.get(’/’, (req, res) => {
res.send(“ok”);
https.get(url, function(cevap){
console.log(gelen);
});
});
app.listen(port, () =>{
console.log(“listenin on” + port);
});
and this is console.log:
https://codeshare.io/9O4d4B
What i am doing wrong?