Skip to main content

fetch_google_doc_as_markdown

Function fetch_google_doc_as_markdown 

Source
pub async fn fetch_google_doc_as_markdown(
    url: &str,
    api_token: Option<&str>,
) -> Result<GDocsResult>
Expand description

Fetch a Google Docs document and convert to Markdown.

Fetches the document as HTML, then converts to Markdown using the existing HTML-to-Markdown pipeline.

§Arguments

  • url - Google Docs URL
  • api_token - Optional API token for private documents

§Errors

Returns an error if the fetch or conversion fails.