Skip to content
Get started

Download file

client.Files.Download(ctx, fileID) (*Response, error)
GET/v1/files/{file_id}/content

Download the original uploaded file content.

ParametersExpand Collapse
fileID string

The unique identifier of the file.

ReturnsExpand Collapse
type FileDownloadResponse interface{…}

Download file

package main

import (
  "context"
  "fmt"

  "github.com/deeptable-com/deeptable-go"
  "github.com/deeptable-com/deeptable-go/option"
)

func main() {
  client := deeptable.NewClient(
    option.WithAPIKey("My API Key"),
  )
  response, err := client.Files.Download(context.TODO(), "file_01kfxgjd94fn9stqm414vjb0s8")
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response)
}
Returns Examples