init
This commit is contained in:
parent
7be58a8f12
commit
cabe4c1b42
10
README.md
10
README.md
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user