Skip to content

Instantly share code, notes, and snippets.

@fel-cesar
Created August 9, 2016 12:18
Show Gist options
  • Save fel-cesar/07999cb0d5d8ffd31f0cc03d674fa8f2 to your computer and use it in GitHub Desktop.
Save fel-cesar/07999cb0d5d8ffd31f0cc03d674fa8f2 to your computer and use it in GitHub Desktop.
Example for cloudrail website
//let cloudStorage : CloudStorageProtocol = Box.init(clientId: "ClientID", clientSecret: "ClientSecret")
//let cloudStorage : CloudStorageProtocol = GoogleDrive.init(clientId: "ClientID", clientSecret: "ClientSecret")
//let cloudStorage : CloudStorageProtocol = OneDrive.init(clientId: "ClientID", clientSecret: "ClientSecret")
let cloudStorage : CloudStorageProtocol = Dropbox.init(clientId: "ClientID", clientSecret: "ClientSecret")
do{
let inputStream = try cloudStorage.createFolderWithPath("/My folder path")
} catch let error{
print("An error: \(error)")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment