Skip to content
IPFS API for kotlin to access a IPFS node via http
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.ci Add kontinuum config May 9, 2017
gradle/wrapper Use gradle 4.10.2 Sep 22, 2018
src Add Infura configuration - remove java support - cleanup Sep 22, 2018
.gitignore Add for directories Jan 10, 2017
Jenkinsfile Add Jenkinsfile Jun 21, 2016
README.md Adapt to LocalIPFS and mention InfuraIPFS Sep 22, 2018
build.gradle Use Kotlin 1.2.70 Sep 22, 2018
gradlew Use gradle 4.1 Sep 7, 2017
settings.gradle Add for directories Jan 10, 2017

README.md

IPFS API for kotlin to access a IPFS node via http

Release

Get it

You can get the artifact via jitpack - here you see how to use with gradle - for other build systems have a look here

repositories {
  maven { url "https://jitpack.io" }
}
dependencies {
  compile 'com.github.ligi:ipfs-api-kotlin:$current_version'
}

Use it with kotlin

add a string

val multihash = LocalIPFS().add.string("test-string").Hash

get a string

val content = LocalIPFS().get.cat(multihash)

get commit from version

val commit = LocalIPFS().info.version().Commit

Note: when you are not running a local IPFS daemon you can also use infura just replace LocalIPFS() with InfuraIPFS() or write your own configuration.

Apps that use this library

Please send a message or even PR if you write/find an app that also uses this library.

Dependencies

We depend on okhttp and moshi which play well together with okio

License

MIT

You can’t perform that action at this time.