I'm trying to download a regular .txt file from my dropbox account which i have linked with a token, but i dont know how to get the content. The only thing ive been able to find is this:
// Download a file
client.filesDownload(path: "/hello.txt").response { response, error in
if let (metadata, data) = response {
println("Dowloaded file name: \(metadata.name)")
println("Downloaded file data: \(data)")
} else {
println(error!)
}
Which gives me nothing but a bunch of information about the file, but not its content.