|reddit login json||1.24||1||9384||44|
Hi, like lots of organizations, we're use JSON to hook lots of applications together. What are people using a JSON spoke-and-hub model? is there a list of them somewhere with comparisons? So I should preface this by saying I only dabbled in HTML in highschool back in 2015.Why does Reddit use API_type=JSON instead of jQuery?
By passing api_type=json you get meaningful json output rather than reddit-specific jquery based output. Note that reddit also properly uses the set-cookie header so that a proper http client / library will take advantage of the session for subsequent requests.What is modhash in Reddit API?
A modhash is a token that the reddit API requires to help prevent CSRF. Modhashes can be obtained via the /api/me.json call or in response data of listing endpoints. The preferred way to send a modhash is to include an X-Modhash custom HTTP header with your requests.How do I get push notifications from a thread in Reddit?
In addition to the standard reddit API, WebSockets play a huge role in reddit live. Receiving push notification of changes to the thread via websockets is much better than polling the thread repeatedly. To connect to the websocket server, fetch /live/thread/about.json and get the websocket_url field.