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 // Edit app
metadata.Ver = "7" // only specify what you want to edit metadata := client.AppMetadata{ // only specify what you need
metadata.Name = "Camera" // only specify what you want to edit Name: "Camera",
metadata.Info = "This is a newer camera app" // only specify what you want to edit Ver: "7",
metadata.Pub = "matu6968" // only specify what you want to edit 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 err = c.EditApp(newApp.AppID, metadata, "./index.js") // replace newApp.AppID with the app id you want to delete
if err != nil { if err != nil {
log.Fatal("Failed to edit app:", err) log.Fatal("Failed to edit app:", err)