Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-12-10 09:22:42 +00:00
parent 71c5bb6e03
commit 6a2dd1866b
18 changed files with 666 additions and 588 deletions

View File

@@ -0,0 +1,17 @@
package main
import (
"fmt"
"os"
"go.m3o.com/space"
)
// Download an object via a presigned url
func main() {
spaceService := space.NewSpaceService(os.Getenv("M3O_API_TOKEN"))
rsp, err := spaceService.Download(&space.DownloadRequest{
Name: "images/file.jpg",
})
fmt.Println(rsp, err)
}