用于 cURL 的 GroupDocs.Metadata Cloud 允许跨所有常见业务文档格式进行元数据属性管理和操作。它与 GroupDocs.Metadata Cloud REST API 通信以处理 HTTP 请求和响应,以便您从 PDF、Word、Excel、音频、视频、Visio、元文件、图像和许多其他文件格式中添加、编辑、搜索和删除元数据属性。
//Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
curl -v "https://api.groupdocs.cloud/connect/token" \
-X POST \
-d "grant_type=client_credentials&client_id=xxxx&client_secret=xxxx" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"
// cURL example to join several documents into one
curl -v "https://api.groupdocs.cloud/v1.0/metadata" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer " \
-d "{
"FileInfo": {
"FilePath": "documents\\input.docx",
"StorageName": ""
},
"SearchCriteria": {
"ValueOptions": {
"Value": "Microsoft Office Word",
"Type": "String"
}
}
}"