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

18 lines
253 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/app"
)
// Update the app
func main() {
appService := app.NewAppService(os.Getenv("M3O_API_TOKEN"))
rsp, err := appService.Update(&app.UpdateRequest{
Name: "helloworld",
})
fmt.Println(rsp, err)
}