Message from @Undead Mockingbird

Discord ID: 508460918884270082


2018-11-04 01:52:58 UTC  

the VS update is 2 gigs

2018-11-04 01:52:59 UTC  

yeah

2018-11-04 01:53:11 UTC  

https://cdn.discordapp.com/attachments/463054787336732683/508458659160784897/unknown.png

2018-11-04 01:53:29 UTC  

Maybe you can avoid the update.

2018-11-04 01:53:42 UTC  

i could have but i clicked update

2018-11-04 01:53:56 UTC  

I'd also be interested if I can use that same library under Mac OS in VS Code.

2018-11-04 01:54:18 UTC  

what do people use to develop on Linux?

2018-11-04 01:58:20 UTC  

omg

2018-11-04 01:58:28 UTC  

Discord API memes are amazing

2018-11-04 01:58:29 UTC  
2018-11-04 01:58:53 UTC  

lmfao

2018-11-04 01:59:57 UTC  

lol

2018-11-04 02:00:13 UTC  

You can install a package from NPM if you want to use JS.

2018-11-04 02:00:21 UTC  

Funny meme, though.

2018-11-04 02:00:44 UTC  

The entire API is in REST, so you can use whatever you like, even just CURL.

2018-11-04 02:00:56 UTC  

idk what those mean

2018-11-04 02:00:59 UTC  

Dang, that VS update is huge.

2018-11-04 02:01:26 UTC  

REST means that you communicate with the server through basic HTTP messages.

2018-11-04 02:02:07 UTC  

:0

2018-11-04 02:02:09 UTC  

For example, to post a message to a Discord channel, you can just send a bunch of plain text through HTTP to the endpoint/URL and that's it.

2018-11-04 02:02:16 UTC  

o

2018-11-04 02:02:26 UTC  

All your credentials are passed as URL parameters, etc.

2018-11-04 02:02:34 UTC  

ohhh

2018-11-04 02:03:15 UTC  

kinda like how on some sites you can fill in say for example a text box with content at the same time youre loading the page by passing it through the URL?

2018-11-04 02:03:20 UTC  

So, if I had an REST endpoint, a fictional one, you could browser the URL https://api.mockingbird.com/latestupdate

2018-11-04 02:03:49 UTC  

Your browser would send an HTTP GET request, which is the same it does to retrieve the website of a regular web server.

2018-11-04 02:04:24 UTC  

But, instead of sending back HTML that your browser would display, it send you back the latest update of some news site, for example, or a MotD.

2018-11-04 02:04:44 UTC  

what do you mean an endpoint

2018-11-04 02:05:00 UTC  

An endpoint is like an URL for an API.

2018-11-04 02:05:17 UTC  

For example, the fictional URL above would be the endpoint for my fictional REST API.

2018-11-04 02:05:47 UTC  

Or, to take the example of Gab, or Minds, they have an endpoint for their API, too.

2018-11-04 02:06:23 UTC  

heh pewdiepie got shapiro to do bonus meme

2018-11-04 02:06:45 UTC  

For example, when I make a post to Minds, what my browser actually does is this:

2018-11-04 02:06:50 UTC  

i feel like i get the vague implications of what youre saying but it's all just a blur

2018-11-04 02:06:55 UTC  

https://cdn.discordapp.com/attachments/463054787336732683/508462119050543104/Screen_Shot_2018-11-04_at_3.06.29_AM.png

2018-11-04 02:07:32 UTC  

It will send the server www.minds.com an HTTP POST to the URL https://www.minds.com/api/v1/newsfeed.

2018-11-04 02:08:04 UTC  

https://cdn.discordapp.com/attachments/463054787336732683/508462407375650826/Screen_Shot_2018-11-04_at_3.07.46_AM.png

2018-11-04 02:08:22 UTC  

And this is the payload of the request, in a format called JSON, but it could be anything.

2018-11-04 02:09:09 UTC  

oooh i know JSON, that's what Minecraft uses lol

2018-11-04 02:09:16 UTC  

Then, the server sends me back a reply indicating the status of my request, like this.

https://cdn.discordapp.com/attachments/463054787336732683/508462708631404556/Screen_Shot_2018-11-04_at_3.08.40_AM.png