36 releases

0.1.36 Jun 3, 2022
0.1.35 Mar 3, 2022
0.1.34 Sep 12, 2021
0.1.32 Jun 21, 2021
0.1.2 Jul 10, 2020

#1060 in Web programming

Download history 130/week @ 2023-02-14 224/week @ 2023-02-21 47/week @ 2023-02-28 70/week @ 2023-03-07 20/week @ 2023-03-14 40/week @ 2023-03-21 120/week @ 2023-03-28 53/week @ 2023-04-04 73/week @ 2023-04-11 39/week @ 2023-04-18 36/week @ 2023-04-25 75/week @ 2023-05-02 100/week @ 2023-05-09 8/week @ 2023-05-16 14/week @ 2023-05-23 84/week @ 2023-05-30

248 downloads per month
Used in 2 crates

Apache-2.0

45KB
974 lines

  • 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,
    
  • }
  • 
    

Dependencies

~8–41MB
~731K SLoC