crystal-libraries-needed icon indicating copy to clipboard operation
crystal-libraries-needed copied to clipboard

Reddit API Wrapper

Open notcraig opened this issue 7 years ago • 5 comments
trafficstars

Python famously has PRAW. Ruby has Redd.
I'd love to see a Crystal Reddit API wrapper (CRAW?)

notcraig avatar Jan 26 '18 23:01 notcraig

I actually started work on this, but the process of gaining access to Reddits API is terrible. Like filling out a Google doc terrible.

watzon avatar Feb 15 '18 08:02 watzon

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.

alexanderadam avatar Oct 03 '21 19:10 alexanderadam

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.

gxfr avatar Jan 08 '22 02:01 gxfr

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).

alexanderadam avatar Jan 08 '22 09:01 alexanderadam

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.

gxfr avatar Jan 08 '22 23:01 gxfr