Returns a temporary download URL for the file. Only available for files in COMPLETED status.
Required scope: files:read
Rate limit category: Read
Get a file download URL
package main
import (
"context"
"fmt"
"github.com/Lightfld/lightfield-go"
"github.com/Lightfld/lightfield-go/option"
)
func main() {
client := githubcomlightfldlightfieldgo.NewClient(
option.WithAPIKey("My API Key"),
)
fileURLResponse, err := client.File.URL(context.TODO(), "id")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", fileURLResponse.ExpiresAt)
}
{
"expiresAt": "expiresAt",
"url": "url"
}Returns Examples
{
"expiresAt": "expiresAt",
"url": "url"
}