Polar client library for Rust

[!WARNING]
THIS LIBRARY IS IN A VERY EARLY STAGE, PLEASE BE CAREFUL.
Features
Checkouts
| Description |
Status |
| Create checkout session |
✅ |
| Get checkout session |
✅ |
| List checkout sessions |
✅ |
| Update checkout session |
⏳ |
| Get checkout session from client |
⏳ |
| Update checkout session from client |
⏳ |
| Confirm checkout session from client |
⏳ |
Subscriptions
| Description |
Status |
| Get subscription |
✅ |
| List subscriptions |
✅ |
| Update subscription |
✅ |
| Revoke subscription |
✅ |
Products
| Description |
Status |
| Get product |
✅ |
| List products |
✅ |
| Create product |
✅ |
| Update product |
✅ |
| Update product benefits |
✅ |
Events
| Description |
Status |
| Ingest events |
✅ |
| Get event |
⏳ |
| List events |
⏳ |
Meters
| Description |
Status |
| Create meter |
✅ |
| Get meter |
✅ |
| List meters |
✅ |
| Update meter |
✅ |
| Get meter quantities |
✅ |
Getting started
cargo add polar-rs
use polar_rs::Polar;
let polar = Polar::new("https://sandbox-api.polar.sh/v1/", "<YOUR ACCESS TOKEN>");