all 3 comments

[–][deleted] 4 insightful - 3 fun4 insightful - 2 fun5 insightful - 3 fun -  (0 children)

Easier to use with Python. I suppose you understand JSON. We will get the /s/MeanwhileOnReddit moderators.

import requests

base_url = 'https://saidit.net'
r = requests.get(base_url + '/s/MeanwhileOnReddit/about/moderators/.json').json()
for mod in r['data']['children']:
    print(mod['name'])

That will return:

d3rr
cynical_americano

This is just a small example. You can make post, put, get, and delete requests too.

[–]enefi 3 insightful - 3 fun3 insightful - 2 fun4 insightful - 3 fun -  (1 child)

Here's a blog post about HTTP basics (or this article on MDN, it's a bit more techy though).

I am not familiar with Rust, but from a quick search it looks like there's a lot of libraries you can choose from. I would recommend picking some popular, simpler and alive (updated in last few months) one.

[–]64-bit-programmer[S] 3 insightful - 2 fun3 insightful - 1 fun4 insightful - 2 fun -  (0 children)

Thanks man!!