A kotlin library for use with Jottacloud
- Get user-, device and mountpoint info
- List Jottacloud-content (files and folders)
- Download files
Maven:
<dependency>
<groupId>org.ezand.jottakloud</groupId>
<artifactId>jottakloud</artifactId>
<version>1.0</version>
</dependency>
Gradle:
compile 'org.ezand.jottakloud:jottakloud:1.0'
Ivy:
<dependency org="org.ezand.jottakloud" name="jottakloud" rev="1.0" />
val jottakloud = Jottakloud(JottacloudAuthentication("user", "pass"))
val user = jottakloud.getUser()
val device = jottakloud.getDevice("Jotta")
val mountPoint = jottakloud.getMountPoint("Jotta", "Photos")
val folder = jottakloud.getFolder("Jotta", "Photos", "2017/02/22")
val file = jottakloud.getFile("Jotta", "Photos", "2017/02/22/1481270269066.jpg")
val files = jottakloud.getFiles("Jotta", "Photos", "2017/02/22", recursive = true)
val fileAsStream = jottakloud.downloadFile("Jotta", "Photos", "2017/02/22/1481270269066.jpg")