Files
m3o-go/examples/app/reserve/reserveAppName/main.go
2021-12-15 11:22:20 +00:00

18 lines
292 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/app"
)
// Reserve apps beyond the free quota. Call Run after.
func main() {
appService := app.NewAppService(os.Getenv("M3O_API_TOKEN"))
rsp, err := appService.Reserve(&app.ReserveRequest{
Name: "helloworld",
})
fmt.Println(rsp, err)
}