1
0
Fork 0
mirror of synced 2024-10-04 20:23:51 +13:00
appwrite/docs/examples/0.11.x/client-apple/examples/account/update-verification.md
2021-10-18 08:47:46 +02:00

510 B

import Appwrite

func main() { let client = Client() .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID

let account = Account(client)
account.updateVerification(
    userId: "[USER_ID]",
    secret: "[SECRET]"
) { result in
    switch result {
    case .failure(let error):
        print(error.message)
    case .success(let token):
        print(String(describing: token)
    }
}

}