文件列表

View your uploaded files

McsAPI.get_user_tasks_deals(self, wallet_address)

The following code example lists a user's uploaded files. The list can be searched by file name, and also be filtered or sorted.

def list_files(wallet_info):
    wallet_address = wallet_info['wallet_address']

    api = McsAPI()
    return api.get_user_tasks_deals(wallet_address)

Parameters

  • wallet_address: lists the files uploaded by this account (required)

Other Parameters of the API

Can be used by editing the original get_user_tasks_deals function.

  • file_name: filter by this file name

  • order_by: sort the list by file name, file size, or upload time (default)

  • is_ascend: y for ascending list, otherwise descend (default)

  • status: Pending, Processing, Refundable, Refunded, Success or other

  • is_minted: y, n, all (default)

  • page_number: page number (default 1)

  • page_size: number of results in a page (default 10)

Only the wallet_address parameter is required, the rest are optional.

Return

Returns an array containing some details of the file(s).

Last updated