OneLoveDTube IPFS Video Uploader 0.8.2: Say hello to APIs.

Words
272
Reading
2 min
Listen
Play
8y

Repository

https://github.com/techcoderx/ipfsVideoUploader

New features

Disk usage logging

When running the uploader publicly (offering as a free or paid service to the public), server admins would like to know how much storage is being used by each user in order to identify potential abusers who take advantage of the zero file size limit. Now if UsageLogs is set to true in config.json, every time when files are uploaded and added to IPFS node, disk use for the upload gets logged into usage.json file, according to logged in Steem username when uploading.

The total disk usage for a particular Steem user can be obtained through the GET API, as follows:

/usage?user=STEEM_USERNAME

(where STEEM_USERNAME is the Steem user account to lookup disk usage for)

API for getting hashes of uploaded files

In addition to disk usage data (if logging usage data is enabled), every time a video gets uploaded will have its hashes recorded so that anyone can make an API call to obtain hashes of uploaded files by a specific Steem user (or all users) categorized by videos, thumbnails and sprites. This is particularly useful for syncing up other IPFS nodes to ensure that all hashes obtained via this API is pinned to their IPFS nodes for decentralization.

Usage: /hashes?user=STEEM_USERNAME&hashtype=videos,thumbnails,sprites

Example 1: To obtain only video and thumbnail hashes of videos uploaded by techcoderx@techcoderx, make this API call:
/hashes?user=techcoderx&hashtype=videos,thumbnails

Example 2: To obtain all video hashes only regardless of users, make this API call:
/hashes?hashtype=videos

All updates above are LIVE on https://uploader.oneloved.tube.

Feel free to start making some API calls from onelovedtube@onelovedtube's uploader and see what you get! If you need something to start off: https://uploader.oneloved.tube/hashes?user=vladivostok&hashtype=videos,sprites

Github account

https://github.com/techcoderx

OneLoveDTube IPFS Video Uploader 0.8.2: Say hello to APIs. | Ecency