mirror of
https://github.com/appwrite/appwrite
synced 2026-05-16 13:38:27 +00:00
457 B
457 B
package main
import ( "fmt" "github.com/appwrite/sdk-for-go/client" "github.com/appwrite/sdk-for-go/sites" )
client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("<YOUR_PROJECT_ID>") client.WithKey("<YOUR_API_KEY>") )
service := sites.New(client)
response, error := service.CreateVariable( "<SITE_ID>", "", "", sites.WithCreateVariableSecret(false), )