pull down to refresh
9076 sats \ 2 replies \ @felipe 8 Nov 2023 \ on: Feasibility for SN to have a HN-like API? meta
Hello, @elvismercury!
If you want just a simple api reference on how to do things on SN from a third-party client, take a look at this file I've written for the unofficial SN app:
https://github.com/felipebueno/stacker_news/blob/master/lib/data/api.dart
The code is a little bit messy because I just hacked something together and kept adding more and more code to it because I just needed something quick and dirty to build a prototype. It's written in Dart but it's easy to understand and it'd be simple to convert it to JavaScript.
This will be a great reference to learn from, @felipe -- thanks very much. I love your hacker energy :)
reply
Hey, @elvismercury!
I just fixed a few bugs on that api.dart file (along with a few others). The app is hopefully working now, so it should be a better reference
reply