khawk_sheets

Crates.iokhawk_sheets
lib.rskhawk_sheets
version0.2.0
sourcesrc
created_at2024-10-08 02:50:18.320656
updated_at2024-11-20 02:16:57.380898
descriptionAPI to interact with a google sheet
homepage
repository
max_upload_size
id1400720
size13,871
Kevin Hawkinson (khawkinson)

documentation

README

Google Sheets API

Usage

use khawk_sheets::{Buildable, Builder, DateTimeRenderOption, GoogleSheet, MajorDimension};

fn main() {
    let sheet =
        GoogleSheet::builder()
            .with_sheet_id(&sheet_id)
            .with_key(&api_key)
            .with_major_dimension(MajorDimension::Rows)
            .with_date_time_render_option(DateTimeRenderOption::FormattedString)
            .build()
            .await
            .unwrap();

    let my_tab = sheet.fetch_sheet("My Sheet Name").await.unwrap();    
}

Commit count: 0

cargo fmt