Skip to content

ezand/jottakloud

Repository files navigation

jottakloud

License: MIT Build Status Dependency Status Maven Central

A kotlin library for use with Jottacloud

Features:

  • Get user-, device and mountpoint info
  • List Jottacloud-content (files and folders)
  • Download files

Download:

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" />

Usage

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")

About

A Kotlin library for Jottacloud features

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages