Hi, I am trying to figure out how to grab the email from a users account. I am currently able to log into dropbox properly, but cant seem to find information on this.
I am also using flutter.
dropBoxChannel.setMethodCallHandler({
[weak self] (call: FlutterMethodCall, result: FlutterResult) -> Void in
guard call.method == "retrieveAccount" else {
result(FlutterMethodNotImplemented)
return
}
//result(DropboxClient.users.getCurrentAccount());
})
I noticed someone mention DropboxClient.users.getCurrentAccount() was one way, but I am new to Swift and don't really understand how this could work. Also, where can I find more information about this?