[][src]Crate airtable_api

A rust library for interacting with the Airtable API.

For more information, the Airtable API is documented at airtable.com/api.

Example:

use airtable_api::Airtable;

async fn get_records() {
    // Initialize the Airtable client.
    let airtable = Airtable::new_from_env();

    // Get the current records from a table.
    let mut records = airtable
        .list_records(
            "Table Name",
            "Grid view",
            vec!["the", "fields", "you", "want", "to", "return"],
        )
        .await
        .unwrap();

    // Iterate over the records.
    for (i, record) in records.clone().iter().enumerate() {
        println!("{} - {:?}", i, record);
    }
}

Structs

APIError

Error type returned by our library.

Airtable

Entrypoint for interacting with the Airtable API.

Record

An Airtable record.

User

An airtable user.