GeezerVison is showing github.com — unifapi-sdk-python/docs/RedditSubreddit.md at main · unifapi-agent/unifapi-sdk-python
/
RedditSubreddit.md
Copy path 37 lines (28 loc) · 1.25 KB
/
RedditSubreddit.md
Copy pathFile metadata and controls
37 lines (28 loc) · 1.25 KB
Copy raw file
Download raw file
OutlineEdit and raw actions
| Name |
Type |
Description |
Notes |
| id |
str |
Subreddit slug (URL form without `r/`). |
|
| subreddit_t5_id |
str |
Reddit internal subreddit id (`t5_*` fullname). |
|
| name |
str |
|
|
| prefixed_name |
str |
Display form like `r/pics`. |
|
| title |
str |
|
|
| description |
str |
|
|
| subscribers_count |
float |
|
|
| active_count |
float |
|
|
| is_nsfw |
bool |
|
|
from unifapi.models.reddit_subreddit import RedditSubreddit
# TODO update the JSON string below
json = "{}"
# create an instance of RedditSubreddit from a JSON string
reddit_subreddit_instance = RedditSubreddit.from_json(json)
# print the JSON string representation of the object
print(RedditSubreddit.to_json())
# convert the object into a dict
reddit_subreddit_dict = reddit_subreddit_instance.to_dict()
# create an instance of RedditSubreddit from a dict
reddit_subreddit_from_dict = RedditSubreddit.from_dict(reddit_subreddit_dict)
[Back to Model list] [Back to API list] [Back to README]