2020-05-11 08:13:51 +12:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"github.com/appwrite/sdk-for-go"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
var client := appwrite.Client{}
|
|
|
|
|
|
|
|
client.SetProject("5df5acd0d48c2") // Your project ID
|
|
|
|
client.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
|
|
|
|
|
|
|
var service := appwrite.Functions{
|
|
|
|
client: &client
|
|
|
|
}
|
|
|
|
|
2020-05-13 08:14:46 +12:00
|
|
|
var response, error := service.Update("[FUNCTION_ID]", "[NAME]", , [], "", 0)
|
2020-05-11 08:13:51 +12:00
|
|
|
|
|
|
|
if error != nil {
|
|
|
|
panic(error)
|
|
|
|
}
|
|
|
|
|
|
|
|
fmt.Println(response)
|
|
|
|
}
|