mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
592 B
592 B
package main
import ( "fmt" "github.com/appwrite/sdk-for-go/client" "github.com/appwrite/sdk-for-go/account" )
func main() { client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint client.WithProject("<YOUR_PROJECT_ID>") // Your project ID )
service := account.New(client)
response, error := service.Create(
"<USER_ID>",
"email@example.com",
"",
account.WithCreateName("<NAME>"),
)
if error != nil {
panic(error)
}
fmt.Println(response)
}