Get Result Region
client.Beta.Sheets.GetResultTable(ctx, regionType, params) (*PresignedURL, error)
GET/api/v1/beta/sheets/jobs/{spreadsheet_job_id}/regions/{region_id}/result/{region_type}
Generate a presigned URL to download a specific extracted region. Experimental: This endpoint is not yet ready for production use and is subject to change at any time.
Get Result Region
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/llamacloud-prod-go"
"github.com/stainless-sdks/llamacloud-prod-go/option"
)
func main() {
client := llamacloudprod.NewClient(
option.WithAPIKey("My API Key"),
)
presignedURL, err := client.Beta.Sheets.GetResultTable(
context.TODO(),
llamacloudprod.BetaSheetGetResultTableParamsRegionTypeTable,
llamacloudprod.BetaSheetGetResultTableParams{
SpreadsheetJobID: "spreadsheet_job_id",
RegionID: "region_id",
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", presignedURL.ExpiresAt)
}
{
"expires_at": "2019-12-27T18:11:19.117Z",
"url": "https://example.com",
"form_fields": {
"foo": "string"
}
}Returns Examples
{
"expires_at": "2019-12-27T18:11:19.117Z",
"url": "https://example.com",
"form_fields": {
"foo": "string"
}
}