I am a noob at coding, so forgive me for this rather trivial question.
I am trying to make a program that can access the StackExchangeStack Exchange API. Specifically I want to make a program that gets live question feed (preferably as a question object) from any stackexchangeStack Exchange site of my choice.
I have scoured the StackExchangeStack Exchange API page but I'm not able to understand how to exactly code it. I usually learn by examples. For example, I know that to access discord.js
I write in my JS code as:
const Discord = require('discord.js');
const bot = new Discord.Client();
bot.on('message', (message) => {
//code to deal with message
});
bot.login('BOT-TOKEN-HERE');
Is there any standard template such as the example I gave for API StackExchangeStack Exchange? For certain, I'm sure we would have require('stackexchange-node');
(I believe stackexchange-node
is the official SE npm package) and as well as a constructor.