View Source MyspaceIPFS.Api (Myspace IPFS v0.1.0)

IPFS (the InterPlanetary File Syste new hypermedia distribution protocol, addressed by content and identities. IPFS enables the creation of completely distributed applications. It aims to make the web faster, safer, and more open.

IPFS is a distributed file system that seeks to connect all computing devices with the same system of files. In some ways, this is similar to the original aims of the Web, but IPFS is actually more similar to a single bittorrent swarm exchanging git objects.

Forked from https://github.com/tensor-programming/Elixir-Ipfs-Api

Based on https://github.com/tableturn/ipfs/blob/master/lib/ipfs.ex

Link to this section Summary

Functions

High level function allowing to send data to the node. A path has to be specified along with the data to be sent. Also, a list of opts can be optionally sent.

High level function allowing to send file contents to the node. A path has to be specified along with the fspath to be sent. Also, a list of opts can be optionally sent.

High level function allowing to perform POST requests to the node. A path has to be provided, along with an optional list of opts that are dependent on the endpoint that will get hit. NB! This is not a GET request, but a POST request. IPFS uses POST requests.

Link to this section Functions

Link to this function

post_data(path, data, opts \\ [])

View Source
@spec post_data(path(), any(), opts()) :: result()

High level function allowing to send data to the node. A path has to be specified along with the data to be sent. Also, a list of opts can be optionally sent.

Link to this function

post_file(path, fspath, opts \\ [])

View Source
@spec post_file(path(), fspath(), opts()) :: result()

High level function allowing to send file contents to the node. A path has to be specified along with the fspath to be sent. Also, a list of opts can be optionally sent.

Link to this function

post_query(path, opts \\ [])

View Source
@spec post_query(path(), opts()) :: result()

High level function allowing to perform POST requests to the node. A path has to be provided, along with an optional list of opts that are dependent on the endpoint that will get hit. NB! This is not a GET request, but a POST request. IPFS uses POST requests.