Warning
THIS LIBRARY IS IN A VERY EARLY STAGE, PLEASE BE CAREFUL.
| 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 | ⏳ |
| Description | Status |
|---|---|
| Get subscription | ✅ |
| List subscriptions | ✅ |
| Update subscription | ✅ |
| Revoke subscription | ✅ |
| Description | Status |
|---|---|
| Get product | ✅ |
| List products | ✅ |
| Create product | ✅ |
| Update product | ✅ |
| Update product benefits | ✅ |
| Description | Status |
|---|---|
| Ingest events | ✅ |
| Get event | ✅ |
| List events | ⏳ |
| Description | Status |
|---|---|
| Create meter | ✅ |
| Get meter | ✅ |
| List meters | ✅ |
| Update meter | ✅ |
| Get meter quantities | ✅ |
- Installation
cargo add polar-rs- Example usage
use polar_rs::Polar;
let polar = Polar::new("https://sandbox-api.polar.sh/v1/", "<YOUR ACCESS TOKEN>");