8bitology API - Files

File Management API functions.

function: file_delete
parameters: <secretuid>, <secretfid>
response: true or false
description: Delete a selfs file.

function: file_minelist
parameters: <secretuid>, <offset>, <limit>
response: list of <secretfid>, <name>, <status>
description: Get selfs file list.

function: file_setabout
parameters: <secretuid>, <secretfid>, <text>
response: true or false
description: Set the about of a selfs file.

function: file_share
parameters: <secretuid>, <secretfid>
response: true or false
description: Share a selfs file.

function: file_unshare
parameters: <secretuid>, <secretfid>
response: true or false
description: Unshare a selfs file.

function: file_unshareall
parameters: <secretuid>
response: true or false
description: Unshare all selfs files.

function: file_upload
parameters: <secretuid>, <name>, <url>
response: true or false
description: Upload a selfs file (url is a url to cpc for server to fetch the file for now).

General File API functions.

function: file_alllist
parameters: <secretuid>, <offset>, <limit>
response: list of <fid>, <name>, <size>, <votes>
description: List all files.

function: file_download
parameters: <secretuid>, <fid>
response: true or false
description: Download a file.

function: file_getabout
parameters: <secretuid>, <fid>
response: <text>
description: Get a files about.

function: file_userlist
parameters: <secretuid>, <uid>, <offset>, <limit>
response: list of <fid>, <name>, <size>, <votes>
description: List all files for a user.

function: file_votedown
parameters: <secretuid>, <fid>
response: true or false
description: Vote a file down.

function: file_voteup
parameters: <secretuid>, <fid>
response: true or false
description: Vote a file up.