Retrieve a file
Files can be retrieved using the item_hash returned after creating the file in the api server or with a request to the following endpoint:
Usage
Required parameters
Parameter | Description |
---|---|
item_hash - string |
|
Optional parameters
In addition to the required parameters above, an object of optional parameters can be passed following the item_hash like so:
store.submit(item_hash,
{api_server: "https://api2.aleph.im"}
)
api_server - string
Default: "https://api1.aleph.im"
API server accepting files. Examples: "https://api1.aleph.im", "https://api2.aleph.im"
Example: Retrieve from endpoint
REQUEST
RESPONSE
Example: Retrieve from an API server
If stored on aleph storage:
If stored on ipfs compatible server, the file is also available on:
Last updated