Releases: vartanbeno/go-reddit
Releases · vartanbeno/go-reddit
v2.0.0
- The underlying
*http.Clientis now passed as an option when initializing a client. - Use value type instead of pointer for credentials when initializing a client.
- Add
DefaultClient()method which returns a valid, read-only client with limited access to the Reddit API. To create a custom one,NewReadonlyClient()can be used. - Remove the
beforeanchor from responses. - The decoding process for a listing response has been revamped, and the
afteranchor is now included in the*Responseobject. For example, when fetching a user's comments, instead of getting a struct containing the list of comments, and theaftervalue, you now get the list of comments directly, and theaftercan be obtained from the*Response. - Create
WikiService,LiveThreadService, andWidgetService. - Add more methods to
SubredditService,ModerationService, andFlairService. - Add error handling for rate limit errors (
*RateLimitError).
v1.0.0
Most endpoints outlined in the official Reddit API documentation have been implemented!