Last active
August 29, 2015 13:56
-
-
Save samsymons/9176188 to your computer and use it in GitHub Desktop.
Commenting with RedditKit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'redditkit' | |
client = RedditKit::Client.new 'username', 'password' | |
item_to_comment_on = 't3_1o72gp' # You can use a RedditKit::Link or RedditKit::Comment in place of the full name here. | |
client.submit_comment item_to_comment_on, 'Hello world!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Still confused. What does the string in
item_to_comment_on
correspond to?Say I want to comment on
http://www.reddit.com/r/funny/comments/1yrm26/this_seems_fitting_for_today_hahah/
. There is an ID in the URL1yrm26
. Is that what I use to Item?I also don't see a way to create a
RedditKit::Link
as it has noinitialize
.Thanks,
Austin