mirror of
https://github.com/Hommy-master/capcut-mate.git
synced 2026-08-28 23:27:50 +08:00
86c305aa52
2. 删除多余文档。 3. 添加中英文切换开关。
2.6 KiB
2.6 KiB
STR_TO_LIST API Documentation
🌐 Language Switch
Interface Information
POST /openapi/capcut-mate/v1/str_to_list
Function Description
Convert string to list. This interface is used to convert input string to list format.
More Documentation
📖 For more detailed documentation and tutorials, please visit: https://docs.jcaigc.cn
Request Parameters
{
"obj": "{ \"infos\": [ \"https://assets.jcaigc.cn/min.mp4\", \"https://assets.jcaigc.cn/max.mp4\" ] }"
}
Parameter Description
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| obj | string | ✅ | - | Object content |
Parameter Details
obj
- Type: string
- Description: String content to convert
- Example:
"{ \"infos\": [ \"https://assets.jcaigc.cn/min.mp4\", \"https://assets.jcaigc.cn/max.mp4\" ] }"
Response Format
Success Response (200)
{
"infos": [
"{ \"infos\": [ \"https://assets.jcaigc.cn/min.mp4\", \"https://assets.jcaigc.cn/max.mp4\" ] }"
]
}
Response Field Description
| Field | Type | Description |
|---|---|---|
| infos | array[string] | String list |
Error Response (4xx/5xx)
{
"detail": "Error message description"
}
Usage Examples
cURL Examples
1. Basic Usage
curl -X POST https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/str_to_list \
-H "Content-Type: application/json" \
-d '{
"obj": "{ \"infos\": [ \"https://assets.jcaigc.cn/min.mp4\", \"https://assets.jcaigc.cn/max.mp4\" ] }"
}'
Error Code Description
| Error Code | Error Message | Description | Solution |
|---|---|---|---|
| 400 | obj is required | Missing obj parameter | Provide a valid obj parameter |
| 500 | String to list conversion failed | Internal processing error | Contact technical support |
Notes
- Parameter Requirements: obj parameter is required
- Return Value: Put input string as single element in list and return
Workflow
- Validate required parameter (obj)
- Call service layer to handle business logic
- Return converted string list
Related Interfaces
📚 Project Resources
GitHub: https://github.com/Hommy-master/capcut-mate
Gitee: https://gitee.com/taohongmin-gitee/capcut-mate