Expand description
Rust client library for the Meta Threads API.
§Features
- Full Threads API coverage: posts, replies, insights, user profiles, search, and location tagging
- OAuth 2.0 authentication with short-lived and long-lived token exchange
- Automatic rate limiting and retry with exponential backoff
- Cursor-based pagination helpers
- Strongly typed request/response models
- Pluggable token storage
§Quick start
use threads_rs::client::{Config, Client};
let config = Config::new("client-id", "client-secret", "https://example.com/cb");
let client = Client::with_token(config, "ACCESS_TOKEN").await?;
let me = client.get_me().await?;
println!("Logged in as @{}", me.username);Re-exports§
Modules§
- api
- API endpoint implementations. API endpoint implementations grouped by resource.
- auth
- OAuth 2.0 authentication flows.
- client
- Client configuration and construction.
- constants
- Application constants (API base URL, version, timeouts).
- error
- Error types and helpers.
- http
- HTTP transport with retry and rate-limit integration.
- pagination
- Cursor-based pagination utilities.
- rate_
limit - Rate limiter for API request throttling.
- types
- Request and response model types. Request and response types for the Threads API.
- validation
- Input validation helpers.