Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Closing parenthesis is missing for print prompts #8289

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Closing parenthesis is missing for print prompts
  • Loading branch information
hbjORbj committed Jun 19, 2024
commit fedddf0e0749be34095d2df1dc77eaf8bbad2044
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import Appwrite

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

let account = Account(client)
account.createAnonymousSession() { result in
switch result {
case .failure(let error):
print(error.message)
case .success(let session):
print(String(describing: session)
print(String(describing: session))
}
}

}
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import Appwrite

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

let account = Account(client)
account.createJWT() { result in
switch result {
case .failure(let error):
print(error.message)
case .success(let jwt):
print(String(describing: jwt)
print(String(describing: jwt))
}
}

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Appwrite

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

let account = Account(client)
account.createMagicURLSession(
Expand All @@ -13,7 +13,8 @@ func main() {
case .failure(let error):
print(error.message)
case .success(let token):
print(String(describing: token)
print(String(describing: token))
}
}

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Appwrite

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

let account = Account(client)
account.createOAuth2Session(
Expand All @@ -13,7 +13,8 @@ func main() {
case .failure(let error):
print(error.message)
case .success(let success):
print(String(describing: success)
print(String(describing: success))
}
}

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Appwrite

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

let account = Account(client)
account.createRecovery(
Expand All @@ -14,7 +14,8 @@ func main() {
case .failure(let error):
print(error.message)
case .success(let token):
print(String(describing: token)
print(String(describing: token))
}
}

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Appwrite

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

let account = Account(client)
account.createSession(
Expand All @@ -14,7 +14,8 @@ func main() {
case .failure(let error):
print(error.message)
case .success(let session):
print(String(describing: session)
print(String(describing: session))
}
}

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Appwrite

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

let account = Account(client)
account.createVerification(
Expand All @@ -13,7 +13,8 @@ func main() {
case .failure(let error):
print(error.message)
case .success(let token):
print(String(describing: token)
print(String(describing: token))
}
}

}
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import Appwrite

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

let account = Account(client)
account.getPrefs() { result in
switch result {
case .failure(let error):
print(error.message)
case .success(let preferences):
print(String(describing: preferences)
print(String(describing: preferences))
}
}

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Appwrite

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

let account = Account(client)
account.getSession(
Expand All @@ -13,7 +13,8 @@ func main() {
case .failure(let error):
print(error.message)
case .success(let session):
print(String(describing: session)
print(String(describing: session))
}
}

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Appwrite

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

let account = Account(client)
account.updateMagicURLSession(
Expand All @@ -14,7 +14,8 @@ func main() {
case .failure(let error):
print(error.message)
case .success(let session):
print(String(describing: session)
print(String(describing: session))
}
}

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Appwrite

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

let account = Account(client)
account.updateRecovery(
Expand All @@ -16,7 +16,8 @@ func main() {
case .failure(let error):
print(error.message)
case .success(let token):
print(String(describing: token)
print(String(describing: token))
}
}

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Appwrite

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

let account = Account(client)
account.updateVerification(
Expand All @@ -14,7 +14,8 @@ func main() {
case .failure(let error):
print(error.message)
case .success(let token):
print(String(describing: token)
print(String(describing: token))
}
}

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Appwrite

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

let teams = Teams(client)
teams.createMembership(
Expand All @@ -16,7 +16,8 @@ func main() {
case .failure(let error):
print(error.message)
case .success(let membership):
print(String(describing: membership)
print(String(describing: membership))
}
}

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Appwrite

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

let teams = Teams(client)
teams.updateMembershipRoles(
Expand All @@ -15,7 +15,8 @@ func main() {
case .failure(let error):
print(error.message)
case .success(let membership):
print(String(describing: membership)
print(String(describing: membership))
}
}

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Appwrite

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

let teams = Teams(client)
teams.updateMembershipStatus(
Expand All @@ -16,7 +16,8 @@ func main() {
case .failure(let error):
print(error.message)
case .success(let membership):
print(String(describing: membership)
print(String(describing: membership))
}
}

}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Appwrite

func main() {
let client = Client()
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
let client = Client()
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token

let account = Account(client)
account.createRecovery(
Expand All @@ -15,7 +15,8 @@ func main() {
case .failure(let error):
print(error.message)
case .success(let token):
print(String(describing: token)
print(String(describing: token))
}
}

}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Appwrite

func main() {
let client = Client()
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
let client = Client()
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token

let account = Account(client)
account.createVerification(
Expand All @@ -14,7 +14,8 @@ func main() {
case .failure(let error):
print(error.message)
case .success(let token):
print(String(describing: token)
print(String(describing: token))
}
}

}
Loading