Update swift GETTING_STARTED.md
This commit is contained in:
parent
acc408f5ab
commit
303212fba8
|
@ -25,9 +25,7 @@ let users = Users(client)
|
||||||
|
|
||||||
do {
|
do {
|
||||||
let user = try await users.create(
|
let user = try await users.create(
|
||||||
userId: ID.unique(),
|
userId = ID.unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien"
|
||||||
email: "email@example.com",
|
|
||||||
password: "password"
|
|
||||||
)
|
)
|
||||||
print(String(describing: user.toMap()))
|
print(String(describing: user.toMap()))
|
||||||
} catch {
|
} catch {
|
||||||
|
@ -51,9 +49,7 @@ func main() {
|
||||||
|
|
||||||
do {
|
do {
|
||||||
let user = try await users.create(
|
let user = try await users.create(
|
||||||
userId: ID.unique(),
|
userId = ID.unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien"
|
||||||
email: "email@example.com",
|
|
||||||
password: "password"
|
|
||||||
)
|
)
|
||||||
print(String(describing: user.toMap()))
|
print(String(describing: user.toMap()))
|
||||||
} catch {
|
} catch {
|
||||||
|
|
Loading…
Reference in a new issue