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/get-sessions.md
2021-10-18 08:47:46 +02:00

454 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.getSessions() { result in
    switch result {
    case .failure(let error):
        print(error.message)
    case .success(let sessionList):
        print(String(describing: sessionList)
    }
}

}