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

18 lines
287 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/app"
)
// Resolve an app by id to its raw backend endpoint
func main() {
appService := app.NewAppService(os.Getenv("M3O_API_TOKEN"))
rsp, err := appService.Resolve(&app.ResolveRequest{
Id: "helloworld",
})
fmt.Println(rsp, err)
}