BaiduWp icon

BaiduWp

调用百度网盘接口

Overview

This node integrates with Baidu Netdisk (Baidu Cloud Storage) API to retrieve file information, manage files, share services, and user data. Specifically, the "获取文件信息" (Get File Information) resource with the "获取文档列表" (Get Document List) operation allows users to query lists of documents stored in their Baidu Netdisk account.

Common scenarios include:

  • Listing documents within a specified directory on Baidu Netdisk.
  • Retrieving metadata about files such as names, paths, sizes, and modification dates.
  • Filtering or sorting files based on criteria like recursion into subdirectories or sorting order.

Practical example:

  • A user wants to automate backup verification by listing all Word documents in a specific folder and checking their last modified dates.
  • Another use case is integrating Baidu Netdisk document lists into a workflow that processes or archives these files elsewhere.

Properties

Name Meaning
目录名称 (parent_path) The directory path to list files from. Default is root directory "/".
查询数目 (num) Number of items to query/list. Range: 0 to 1000. Default is 100.
是否递归 (recursion) Whether to recursively list files in subdirectories. Boolean true/false. Default false.
文件排序 (desc) Whether to sort files in descending order. Boolean true/false. Default false (ascending).

Note: These properties are shown when the Resource is "fileinformation" and Operation is "wordList" (and some other related operations).

Output

The output is an array of JSON objects representing files/documents retrieved from Baidu Netdisk. Each object typically contains file metadata fields such as:

  • File name
  • File path
  • File size
  • Modification time
  • File type/category

The exact structure depends on the API response but is normalized/formatted by the node before output.

No binary data output is indicated for this operation; the output is purely JSON metadata about files.

Dependencies

  • Requires an API key credential for Baidu Netdisk API authentication.
  • Uses internal helper functions to make HTTP GET requests to Baidu's API endpoints.
  • The node relies on n8n's credential management to securely store and use the Baidu API credentials.
  • No additional external dependencies beyond the Baidu API and standard n8n environment.

Troubleshooting

  • Empty or incomplete file lists: Ensure the parent_path is correct and accessible. Check if recursion is needed to list nested files.
  • API errors or rate limits: The node calls Baidu API and may encounter quota or permission issues. Verify API credentials and permissions.
  • Invalid parameter values: For example, num must be between 0 and 1000. Setting out-of-range values may cause errors.
  • Network or connectivity issues: Ensure the n8n instance can reach Baidu API endpoints.
  • Error messages from Baidu API: The node checks for error codes in responses and surfaces them. Common errors relate to invalid tokens, expired sessions, or insufficient permissions.

Links and References


This summary is based solely on static analysis of the provided source code and property definitions.

Discussion