Download document summary as PDF
client.DocumentSummaries.Download(ctx, id, query) (*Response, error)
/document-summaries/{id}/download
Download the document summary content in the specified format
Parameters
id string
Returns
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)
}