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