

ThumbnailWidth int `mapstructure:"thumbnail_width"` ProviderURL string `mapstructure:"provider_url"`ĭescription string `mapstructure:"description"` More * More Gilded int32 `mapstructure:"gilded"`ĭistinguished string `mapstructure:"distinguished"`Ĭomment represents a comment on Reddit (Reddit type t1_). Replies * Comment `mapstructure:"reply_tree"` ParentID string `mapstructure:"parent_id"` SubredditID string `mapstructure:"subreddit_id"`īodyHTML string `mapstructure:"body_html"` Subreddit string `mapstructure:"subreddit"` LinkTitle string `mapstructure:"link_title"` LinkAuthor string `mapstructure:"link_author"`


Requests made by this API are rate limited with no bursting. Your registered app info from following:īot.SendMessage("roxven", "Thanks for making this Reddit API!", "It's ok.") Logged in users can claim a Bot handle with a superset of the former'sĪgent: "graw:doc_demo_bot:0.3.1 by /u/yourusername" Post, _ := script.Thread("r/programming/comments/5du93939")įmt.Printf("%s posted \"%s\"!", post.Author, post.Title) Script, _ := NewScript("graw:doc_script:0.3.1 by /u/yourusername", rate) It provides two handles for the Reddit API. Package reddit is a small wrapper around the Reddit API.
