Skip to main content
modiva.ai
Accedi
Rust logo

Rust · async / Tokio

SDK Rust per l'API Modiva

Un client Rust tipizzato e asincrono (Tokio) per l'API unificata di Modiva. Un client tipizzato raggiunge tutte le 38 integrazioni e i 460+ strumenti su social, ads, CRM ed e-commerce — autenticazione, retry, paginazione e idempotenza gestiti per te.

Ottieni la tua chiave APIVedi su GitHubLeggi la documentazione

Installazione

cargo add modiva

Richiede async / Tokio. Imposta MODIVA_API_KEY nel tuo ambiente — il client la legge automaticamente.

Avvio rapido

Collega un account nella dashboard, crea una chiave API, poi pubblica in poche righe.

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(())
}

Cosa ottieni

  • Un client per tutte le 38 integrazioni — nessuna libreria per piattaforma.
  • Metodi tipizzati per post, commenti, DM e analitiche, più una superficie di strumenti generica per ognuno dei 460+ strumenti.
  • Autenticazione con Bearer key da MODIVA_API_KEY; OAuth del provider e refresh dei token gestiti lato server.
  • Retry automatici con backoff, creazioni idempotenti e paginazione integrata.
  • Con licenza MIT e open source su GitHub.

Domande frequenti

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.

Altri linguaggi

Node.js / TypeScriptPythonGoRubyJavaPHP.NET / C#

← Tutti gli SDK Modiva

Inizia a costruire con Rust
Gratis per iniziare · Primi 3 account collegati gratuiti · Chiave API con un clic
Crea un account gratuito
Rust SDK — Modiva