crystal-libraries-needed
crystal-libraries-needed copied to clipboard
Reddit API Wrapper
Python famously has PRAW. Ruby has Redd.
I'd love to see a Crystal Reddit API wrapper (CRAW?)
I actually started work on this, but the process of gaining access to Reddits API is terrible. Like filling out a Google doc terrible.
I guess @edwardloveall's reddit.cr (a file in the pixelfeed repo) would be a good start if someone would extract it into a separate shard.
I'm currently building a class that authenticates and allows sending GET requests. It shouldn't be too hard expanding to an API wrapper with proper PUT/POST/DELETE request methods.
I'm currently building a class that authenticates and allows sending GET requests. It shouldn't be too hard expanding to an API wrapper with proper PUT/POST/DELETE request methods.
This would be great! :raised_hands: By the way, the official API doesn't only has the typical REST actions but also WebSocket subscriptions (see here).
Coming from Python, I simply write the library in Python first and then convert everything to Crystal. I guess websockets is how PRAW implements the submission/comment streams? I've never used websockets so I'll have to figure out how it works, but I can 100% implement support for reddit's live endpoints.