readme.md 626 Bytes
Newer Older
1 2
# cl-ipfs
This is an unnoficial IPFS API client written in Common Lisp.
alexm98's avatar
alexm98 committed
3 4 5 6 7

## Dependencies
-cl-drakma
-cl-yason

8 9
As a prerequisite, the IPFS daemon should obviously be running.

alexm98's avatar
alexm98 committed
10 11 12 13 14 15 16 17 18 19 20 21
## Examples
You can use the system through asdf. Start a REPL and do the following:

	(require 'asdf)
	(asdf:load-system "cl-ipfs")

Some examples:

	(cl-ipfs:add "/home/alex/Desktop/emacs.png")
	(cl-ipfs:size "QmaGu6zzshKqhew4HiEv76JM7xdSJj7rLnyLxWszip47Mp")
	(cl-ipfs:ls "QmaGu6zzshKqhew4HiEv76JM7xdSJj7rLnyLxWszip47Mp") ;; would return nil, since the file doesn't have any links.
	(cl-ipfs:pinadd "QmaGu6zzshKqhew4HiEv76JM7xdSJj7rLnyLxWszip47Mp")