I have a reddit post link here:
I wish to access the data of this post throught the redditkit API.
I have tried countless times and the docs don't make too much sense to me. Can someone help show how to do this through the ruby console? Or even an implementation of this in rails would be really helpful!
Looking at the #comment method on the gem, it takes a
comment_full_name
and performs aGET
toapi/info.json
with that parameter as anid
(seen by viewing the source for that method). If we look at the reddit api for api/info theid
parameter is afull name
for the object with a link to what afull name
is.Following that link, a full name for a comment is
and
So now we know the
comment_full_name
should bet1_#{comment's unique id}
which appears to be6m5k0o
. Here, I'm unsure if that's already base36 or if they want you to convert that into base36 before passing it. Without seeing what all you've tried, I would sayand if that doesn't work
For questions like this, it would be nice to see some of your code and what you tried/results they gave. For all I know, you've already tried this and have a reason it didn't work for you.
I would test this out for you, but I don't have a reddit account for the gem to sign in with, this is just my guess glancing at the documentation.