Skip to content
Get started

Download document summary as PDF

client.DocumentSummaries.Download(ctx, id, query) (*Response, error)
get/document-summaries/{id}/download

Download the document summary content in the specified format

ParametersExpand Collapse
id string
query DocumentSummaryDownloadParams
Format param.Field[DocumentSummaryDownloadParamsFormat]optional

Output format for the download

const DocumentSummaryDownloadParamsFormatPdf DocumentSummaryDownloadParamsFormat = "pdf"
ReturnsExpand Collapse
type DocumentSummaryDownloadResponse interface{…}
Download document summary as PDF
package main

import (
  "context"
  "fmt"

  "github.com/withluminary/go-sdk"
  "github.com/withluminary/go-sdk/option"
)

func main() {
  client := withluminary.NewClient(
    option.WithClientID("My Client ID"),
    option.WithClientSecret("My Client Secret"),
  )
  response, err := client.DocumentSummaries.Download(
    context.TODO(),
    "id",
    withluminary.DocumentSummaryDownloadParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response)
}
Returns Examples