Skip to content

Other Tools

Get File Information

Get the download link of the corresponding result file according to the filekey of each file.

Java
// Create a client
CPDFClient client = new CPDFClient(<publicKey>,<secretKey>);

// Get File Information
CPDFFileInfo fileInfo = client.getFileInfo(<fileKey>);
PHP
// Create a client
$client = new CPDFClient('public_key', 'secret_key');

// Get File Information
$fileInfo = $client->getFileInfoByKey('fileKey')
C#
// Create a client
CPDFClient client = new CPDFClient(<publicKey>,<secretKey>);

// Get File Information
CPDFFileInfo fileInfo = client.GetFileInfo(<fileKey>);
Python
# Create a client
client = CPDFClient(public_key, secret_key)

# Get File Information
file_info = client.get_file_info(file_key)
Swift
// Create a client
let client: CPDFClient = CPDFClient(publicKey: public_key, secretKey: secret_key)
Task { @MainActor in
    // Get File Information
    let fileInfo = await client.getFileInfoByKey(fileKey: "fileKey")
}

Parameters:

When querying the information of a file, you can choose the language to display the error messages that are related to querying the file information. The parameter language is optional. If not set, error messages will default to English.

  • language: 1: English, 2: Chinese.

Get Asset Details

Get the remaining assets of the current user.

Java
// Create a client
CPDFClient client = new CPDFClient(<publicKey>,<secretKey>);

// Get asset details
CPDFTenantAssetResult assetInfo = client.getAssetInfo();
PHP
// Create a client
$client = new CPDFClient('public_key', 'secret_key');

// Get asset details
$assetInfo = $client->getAssetInfo()
C#
// Create a client
CPDFClient client = new CPDFClient(<publicKey>,<secretKey>);

// Get asset details
CPDFTenantAssetResult assetInfo = client.GetAssetInfo();
Python
# Create a client
client = CPDFClient(public_key, secret_key)

# Get asset details
asset_info = client.get_asset_info()
Swift
// Create a client
let client: CPDFClient = CPDFClient(publicKey: public_key, secretKey: secret_key)
Task { @MainActor in
    // Get asset details
    let assetInfo = await client.getAssetInfo()
}

Get Task List

Request the current user file transfer task list.

Java
// Create a client
CPDFClient client = new CPDFClient(<publicKey>,<secretKey>);

// Get task list
CPDFTaskRecordsResult taskRecordsResult = client.getTaskList(<page>,<size>);
PHP
// Create a client
$client = new CPDFClient('public_key', 'secret_key');

// Get task list
$taskList = $client->getTaskList('page','size');
C#
// Create a client
CPDFClient client = new CPDFClient(<publicKey>,<secretKey>);

// Get task list
CPDFTaskRecordsResult taskRecordsResult = client.GetTaskList(<page>,<size>);
Python
# Create a client
client = CPDFClient(public_key, secret_key)

# Get task list
task_list = client.get_task_list(page, size)
Swift
// Create a client
let client: CPDFClient = CPDFClient(publicKey: public_key, secretKey: secret_key)
Task { @MainActor in
    // Get task list
    let task_list = await client.getTaskList(page: 1, size: 10)
}