public class Reddit extends Object
| Constructor and Description |
|---|
Reddit(String userAgent) |
Reddit(String userAgent,
String session) |
| Modifier and Type | Method and Description |
|---|---|
RedditJsonMessage |
comment(String rawMarkdown,
String parentId) |
RedditComments |
commentsFor(String subreddit,
String linkId) |
RedditJsonMessage |
delete(String fullname) |
List<RedditLink> |
infoForId(String id) |
List<RedditLink> |
listingFor(String subreddit,
String listingType) |
RedditJsonMessage |
login(String userName,
String password)
Once this method is called the cookie returned is set as the session and will be added to all future calls
|
RedditAccount |
meJson() |
List<RedditMessage> |
messages(String inboxType) |
List<RedditComment> |
moreChildrenFor(RedditComments theComments,
String desiredSort) |
List<RedditSubreddit> |
subreddits(String byGrouping) |
public Reddit(String userAgent)
userAgent - The user agent to setpublic RedditJsonMessage login(String userName, String password) throws RedditException
userName - Username of the reddit accountpassword - Password of the reddit acountRedditJsonMessageRedditExceptionpublic RedditAccount meJson() throws RedditException
RedditExceptionpublic List<RedditSubreddit> subreddits(String byGrouping) throws RedditException
RedditExceptionpublic List<RedditLink> listingFor(String subreddit, String listingType) throws RedditException
RedditExceptionpublic List<RedditComment> moreChildrenFor(RedditComments theComments, String desiredSort) throws RedditException
RedditExceptionpublic RedditComments commentsFor(String subreddit, String linkId) throws RedditException
RedditExceptionpublic List<RedditLink> infoForId(String id) throws RedditException
RedditExceptionpublic RedditJsonMessage comment(String rawMarkdown, String parentId) throws RedditException
RedditExceptionpublic RedditJsonMessage delete(String fullname) throws RedditException
RedditExceptionpublic List<RedditMessage> messages(String inboxType) throws RedditException
RedditExceptionCopyright © 2013. All rights reserved.