> ## Documentation Index
> Fetch the complete documentation index at: https://germeytechnology-docs-remove-4o-image-nav.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Publisher Configs

> Publisher Cross-Platform Automatic Publishing 集成指南 - Ace Data Cloud

## 介绍

Publisher Configs API 用于管理各平台的登录凭证配置。在发布内容前，需要先为目标平台配置有效的登录凭证（如 Cookies 或 Token）。

## 基本用法

### 创建配置

```bash theme={null}
curl -X POST 'https://api.acedata.cloud/publisher/configs' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "channel": "zhihu",
    "credential": {
      "cookies": "z_c0=2|1:0|10:1705312200..."
    }
  }'
```

### 响应示例

```json theme={null}
{
  "success": true,
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "channel": "zhihu",
    "valid": true,
    "updated_at": "2025-01-15T10:30:00Z"
  }
}
```

### 获取配置列表

```bash theme={null}
curl -X GET 'https://api.acedata.cloud/publisher/configs' \
  -H 'Authorization: Bearer YOUR_TOKEN'
```

### 刷新配置

在凭证过期后，可以通过刷新操作自动续期：

```bash theme={null}
curl -X POST 'https://api.acedata.cloud/publisher/configs/refresh' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }'
```

## 凭证获取方式

不同平台的凭证获取方式不同，通常需要：

1. 在浏览器中登录目标平台
2. 打开开发者工具（F12）
3. 在 Application/存储 标签中找到 Cookies
4. 复制相关的 Cookie 值

## 注意事项

* 配置管理操作为免费操作，不消耗积分
* 每个平台只能配置一个凭证，重复配置会覆盖之前的凭证
* 凭证可能会过期，建议定期检查或使用刷新功能
