This commit is contained in:
matu6968 2024-11-21 00:55:31 +01:00
parent 7be58a8f12
commit cabe4c1b42

View File

@ -62,10 +62,12 @@ AUTH_TOKEN=bearer-token-here # Put your token generated from the server .env fil
```
// Edit app
metadata.Ver = "7" // only specify what you want to edit
metadata.Name = "Camera" // only specify what you want to edit
metadata.Info = "This is a newer camera app" // only specify what you want to edit
metadata.Pub = "matu6968" // only specify what you want to edit
metadata := client.AppMetadata{ // only specify what you need
Name: "Camera",
Ver: "7",
Info: "This is a new camera app",
Pub: "matu6968",
}
err = c.EditApp(newApp.AppID, metadata, "./index.js") // replace newApp.AppID with the app id you want to delete
if err != nil {
log.Fatal("Failed to edit app:", err)