mirror of
https://github.com/appwrite/appwrite
synced 2026-05-16 21:48:45 +00:00
608 B
608 B
package main
import ( "fmt" "github.com/appwrite/sdk-for-go/client" "github.com/appwrite/sdk-for-go/functions" )
func main() { client := client.NewClient()
client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := functions.NewFunctions(client)
response, error := service.GetExecution(
"<FUNCTION_ID>",
"<EXECUTION_ID>",
)
if error != nil {
panic(error)
}
fmt.Println(response)
}