mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
535 B
535 B
import (
"fmt"
"github.com/appwrite/sdk-for-go/client"
"github.com/appwrite/sdk-for-go/users"
)
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1")
client.WithProject("<YOUR_PROJECT_ID>")
client.WithKey("<YOUR_API_KEY>")
)
service := users.New(client)
response, error := service.CreateScryptUser(
"<USER_ID>",
"email@example.com",
"password",
"<PASSWORD_SALT>",
0,
0,
0,
0,
users.WithCreateScryptUserName("<NAME>"),
)