Expand description
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, Record};
use serde::{Deserialize, Serialize};
async fn get_records() {
// Initialize the Airtable client.
let airtable = Airtable::new_from_env();
// Get the current records from a table.
let mut records: Vec<Record<SomeFormat>> = 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);
}
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SomeFormat {
pub x: bool,
}
Modules§
- attachment_
format_ as_ array_ of_ strings - attachment_
format_ as_ string - barcode_
format_ as_ string - deserialize_
missing_ timezone - deserialize_
null_ string - user_
format_ as_ array_ of_ strings - user_
format_ as_ string
Structs§
- Airtable
- Entrypoint for interacting with the Airtable API.
- Attachment
- Attachment
Short - Barcode
- An airtable barcode.
- Base
Collaborator - Base
Invite Link - Collaboration
- Collaborations
- Collaborator
- Delete
User Response - The response returned from deleting a user. FROM: https://airtable.com/api/enterprise#enterpriseAccountUserDeleteUserByEmail
- Enterprise
User - Enterprise
Users Response - Error
Response - Full
- Invite
Links - NewCollaborator
- Record
- An Airtable record.
- Thumbnails
- User
- An airtable user.
- Users
Response - The response returned from listing users.
- Workspace
- Workspace
Collaborator - Workspace
Collaborators - Workspace
Invite Link
Enums§
- Workspace
Includes - Optional include flags that can be passed to [get_enterprise_workspace] to control fields are returned
Functions§
- api_
key_ from_ env - Get the API key from the AIRTABLE_API_KEY env variable.