Skip to main content
edited tags
Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64
added 5 characters in body; edited title
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64

How do I actually begin to code, in Node, using the StackExchangeStack Exchange API?

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.

How do I actually begin to code using the StackExchange API?

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 StackExchange API. Specifically I want to make a program that gets live question feed (preferably as a question object) from any stackexchange site of my choice.

I have scoured the StackExchange 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 StackExchange? 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.

How do I actually begin to code, in Node, using the Stack Exchange API?

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 Stack Exchange API. Specifically I want to make a program that gets live question feed (preferably as a question object) from any Stack Exchange site of my choice.

I have scoured the Stack 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 Stack 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.

Source Link

How do I actually begin to code using the StackExchange API?

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 StackExchange API. Specifically I want to make a program that gets live question feed (preferably as a question object) from any stackexchange site of my choice.

I have scoured the StackExchange 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 StackExchange? 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.