Crates.io | rsreddit |
lib.rs | rsreddit |
version | 0.1.3 |
source | src |
created_at | 2020-07-20 20:59:59.043704 |
updated_at | 2020-07-24 10:30:42.88377 |
description | Lightweight Reddit API wrapper |
homepage | |
repository | https://github.com/Hyde46/reddit_api_rs |
max_upload_size | |
id | 267392 |
size | 106,258 |
RsReddit is lightweight wrapper for the Reddit Web API. The goal is to cover most common and useful endpoints like browsing subreddits, creating posts, commenting on posts. For a complete reference, see the official documentation
Implemented endpoints:
OAuth2 specific implementations:
Add to your Cargo.toml
:
[dependencies]
rsreddit = "0.1.2"
Or get it from GitHub.
Currently only Installed Apps are supported.
A script using this library has to register an installed app, or authorize an existing one.
To use an existing App, or set your own app, set the environment variable CLIENT_ID as the app's ID, and CLIENT_SECRET as base64 encoded CLIENT_ID.
You can also set these values in a .env
file, for example as shown here.
If you want to use your own installed app, create one over here. It is important to choose installed app. See the official documentation
See changelog for release history
Pull requetss, code reviews, general feedback are welcome!