Module reddit::types

source ·

Structs§

  • Implements votable | created kind == “t1” See https://github.com/reddit-archive/reddit/wiki/JSON#comment-implements-votable–created
  • Implementation See https://github.com/reddit-archive/reddit/wiki/JSON#created-implementation
  • Implements votable | created kind == “t3” See https://github.com/reddit-archive/reddit/wiki/JSON#link-implements-votable–created
  • Used to paginate content that is too long to display in one go. Add the query argument before or after with the value given to get the previous or next page. This is usually used in conjunction with a count argument. Exception: Unlike the other classes documented on this page, Listing is not a thing subclass, as it inherits directly from the Python base class, Object. Although it does have data and kind as parameters, it does not have id and name. A listing’s kind will always be Listing and its data will be a List of things. kind == “Listing” See https://github.com/reddit-archive/reddit/wiki/JSON#listing
  • kind == “more” See https://github.com/reddit-archive/reddit/wiki/JSON#more
  • Reddit base class. Listing things have neither name nor id because they are indefinite objects. That is, they are system generated, not user submitted, and are subject to change quickly and expire. See https://github.com/reddit-archive/reddit/wiki/JSON#thing-reddit-base-class
  • Implementation See: https://github.com/reddit-archive/reddit/wiki/JSON#votable-implementation

Enums§

  • Info on what the post may contain
  • kind: All things have a kind. The kind is a String identifier that denotes the object’s type. Some examples: Listing, more, t1, t2 data: A custom data structure used to hold valuable information. This object’s format will follow the data structure respective of its kind. See below for specific structures. See https://www.reddit.com/dev/api#fullnames