{"repo":"thecsw/mira","free":true,"listed":false,"github":"https://github.com/thecsw/mira","clone":"git clone https://github.com/thecsw/mira.git","description":"The fantastic Golang Reddit API wrapper for gophers","language":"Go","stars":68,"topics":["golang","go","reddit","api","wrapper","hacktoberfest"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"For full documentation, please see the Godoc page mira is a Reddit Api Wrapper written in beautiful Go. Featured in issue 306 of Golang Weekly 🚀 It is super simple to use the bot as we also provide you with simple but fully extensive interfaces. Currently, mira is a project that is considered more or less complete. All main functionality, such as streaming, data manipulation, data request, submissions, links, etc. are fully implemented. mira can be extended to use any Reddit API endpoint. More details at the bottom of this page. Demo Two quick notes: all actions should be done via Reddit struct, I thought it would make it simpler to work with. Secondly, all actions require the objects full thing id , so you have to use GetId() to get that id. Every struct has that method implemented and it will return a string in the form of t[1-6] [a-z0-9]{5} . Refer to the following table for the classifications of the structs. Type Prefixes Prefix Type -------- ---------------------------------- t1 Comment t2 Redditor t3 Submission, PostListing contents t4 Message (NOT IMPLEMENTED) t5 Subreddit t6 Award (NOT IMPLEMENTED) Config file The config file structure is very simple: Environment setup Mira also works with environmental variables, here is an example from docker-compose And the login will look like this: Or you can always just fill in the values directly. Examples Note: Error checking is omitted for brevity. Streaming Streaming new submissions is very simple! mira supports streaming ","default_branch":null,"files":null,"tree":[],"storefront":"/r/thecsw","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/thecsw/mira/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}