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 acountRedditJsonMessage
RedditException
public RedditAccount meJson() throws RedditException
RedditException
public List<RedditSubreddit> subreddits(String byGrouping) throws RedditException
RedditException
public List<RedditLink> listingFor(String subreddit, String listingType) throws RedditException
RedditException
public List<RedditComment> moreChildrenFor(RedditComments theComments, String desiredSort) throws RedditException
RedditException
public RedditComments commentsFor(String subreddit, String linkId) throws RedditException
RedditException
public List<RedditLink> infoForId(String id) throws RedditException
RedditException
public RedditJsonMessage comment(String rawMarkdown, String parentId) throws RedditException
RedditException
public RedditJsonMessage delete(String fullname) throws RedditException
RedditException
public List<RedditMessage> messages(String inboxType) throws RedditException
RedditException
Copyright © 2013. All rights reserved.