changes made swift GETTING_STARTED.md
This commit is contained in:
parent
5138d4c0f9
commit
569d54bee3
1 changed files with 10 additions and 2 deletions
|
@ -25,7 +25,11 @@ let users = Users(client)
|
||||||
|
|
||||||
do {
|
do {
|
||||||
let user = try await users.create(
|
let user = try await users.create(
|
||||||
userId = ID.unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien"
|
userId: ID.unique(),
|
||||||
|
email: 'email@example.com',
|
||||||
|
phone: '+123456789',
|
||||||
|
password: 'password',
|
||||||
|
name: "Walter O'Brien"
|
||||||
)
|
)
|
||||||
print(String(describing: user.toMap()))
|
print(String(describing: user.toMap()))
|
||||||
} catch {
|
} catch {
|
||||||
|
@ -49,7 +53,11 @@ func main() {
|
||||||
|
|
||||||
do {
|
do {
|
||||||
let user = try await users.create(
|
let user = try await users.create(
|
||||||
userId = ID.unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien"
|
userId: ID.unique(),
|
||||||
|
email: 'email@example.com',
|
||||||
|
phone: '+123456789',
|
||||||
|
password: 'password',
|
||||||
|
name: "Walter O'Brien"
|
||||||
)
|
)
|
||||||
print(String(describing: user.toMap()))
|
print(String(describing: user.toMap()))
|
||||||
} catch {
|
} catch {
|
||||||
|
|
Loading…
Reference in a new issue