OneLoveDTube IPFS Video Uploader 0.8.2: Say hello to APIs.

in #onelovedtube7 years ago

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, 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'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

Sort:  

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you for your review, @helo! Keep up the good work!

Check your twitter DM'S please eheheh

Great work techcoderx :D

Hi @techcoderx!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Congratulations @techcoderx! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 11000 upvotes. Your next target is to reach 12000 upvotes.
You got more than 300 replies. Your next target is to reach 400 replies.

Click here to view your Board
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

Christmas Challenge - The party continues

Support SteemitBoard's project! Vote for its witness and get one more award!