Rust · async / Tokio
SDK de Rust para la API de Modiva
Un cliente de Rust tipado y asíncrono (Tokio) para la API unificada de Modiva. Un cliente tipado llega a todas las 38 integraciones y 460+ herramientas en social, ads, CRM y e-commerce, con autenticación, reintentos, paginación e idempotencia gestionados por ti.
Instalación
cargo add modivaRequiere async / Tokio. Define MODIVA_API_KEY en tu entorno: el cliente la lee automáticamente.
Inicio rápido
Conecta una cuenta en el panel, crea una clave de API y luego publica en pocas líneas.
use modiva::{CreatePost, Modiva};
#[tokio::main]
async fn main() -> Result<(), modiva::ModivaError> {
let modiva = Modiva::from_env()?; // reads MODIVA_API_KEY
let connections = modiva.connections().list().await?;
if let Some(conn) = connections.first() {
let post = CreatePost::new(&conn.id)
.text("Hello from the Modiva Rust SDK!");
modiva.social().posts().create(&post).await?;
}
Ok(())
}Lo que obtienes
- Un cliente para todas las 38 integraciones: sin una biblioteca por plataforma.
- Métodos tipados para posts, comentarios, DM y analíticas, más una superficie de herramientas genérica para cada una de las 460+ herramientas.
- Autenticación con clave Bearer desde
MODIVA_API_KEY; el OAuth del proveedor y la renovación de tokens se gestionan en el servidor. - Reintentos automáticos con backoff, creaciones idempotentes y paginación integrada.
- Con licencia MIT y de código abierto en GitHub.
Preguntas frecuentes
How do I install the Modiva Rust SDK?
Run `cargo add modiva`. It requires async / Tokio. Then set MODIVA_API_KEY in your environment (create a key in the dashboard) and instantiate the client.
Is the Rust SDK free and open source?
Yes — it's MIT-licensed and published on GitHub at modiva-dev/modiva-rust. Read the source, file issues and contribute.
Which integrations does the Rust SDK support?
All of them. One client reaches every one of the 38 integrations — Instagram, TikTok, Google Ads, HubSpot, Shopify and more — through the same typed methods and a generic tool surface.
Otros lenguajes
Empieza a construir con Rust
Gratis para empezar · Primeras 3 cuentas conectadas gratis · Clave de API en un clic
Crea una cuenta gratis