Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.28 KB

File metadata and controls

39 lines (30 loc) · 1.28 KB

RedditPost

Properties

Name Type Description Notes
id str Reddit post id (`t3_*` fullname).
title str
url str Permalink (or the linked URL for link posts).
text str Markdown body for self/text posts; empty otherwise.
domain str
created_at str Source ISO timestamp.
is_nsfw bool
is_spoiler bool
is_locked bool
is_stickied bool
subreddit RedditPostSubreddit

Example

from unifapi.models.reddit_post import RedditPost

# TODO update the JSON string below
json = "{}"
# create an instance of RedditPost from a JSON string
reddit_post_instance = RedditPost.from_json(json)
# print the JSON string representation of the object
print(RedditPost.to_json())

# convert the object into a dict
reddit_post_dict = reddit_post_instance.to_dict()
# create an instance of RedditPost from a dict
reddit_post_from_dict = RedditPost.from_dict(reddit_post_dict)

[Back to Model list] [Back to API list] [Back to README]