-
Notifications
You must be signed in to change notification settings - Fork 30
Link
Casts a vote on the link. 1 for an upvote, -1 for a downvote, 0 to remove a vote. Requires a valid login.
Posts a comment in reply to the link. Requires a valid login.
Saves the link. Requires a valid login.
Unsaves the link (requires login).
Hides the link (requires login).
Unhides the link (requires login).
Returns an array of the comments posted in reply to the link Only direct replies to the link itself are in the array. Replies to those comments are stored in the comments themselves.
If the link was fetched without comments, comments are fetched from the API. Avoid this scenario where possible, the API documentation specifically asks for users to pull in information in bulk rather than in lots of different requests.
Returns the link's unique 't3_*' ID
Returns the link's ID
Returns the number of upvotes given to the link
Returns the number of downvotes given to the link
Returns the link's score Score is a function of upvotes, downvotes, and time since creation
Returns the number of replies to the link
Returns the username of the user who submitted the link
Returns the title of the link
Returns the URL that the post is a link
Returns the permalink to the link on Reddit. If $absolute is true, returns the full absolute URL. If not, returns just the path.
If the link is a self-post, this method returns the self text
Indicates whether the post is a self-post or a link
Indicates whether the post is restricted to those 18-years-old or over
Indicates whether the logged-in user has clicked on the link.
Indicates whether the logged-in user has hidden the link.
Indicates whether the logged-in user has saved the link.