const axios = require('axios'); axios.get('https://api.github.com/users/oktat') .then(response => { console.log(response.data); }) .catch(error => { console.log(error); });