输入作品ID,获取该作品的分享链接。
| 参数名 | 类型 | 必选 | 描述 |
|---|---|---|---|
| apiKey | string | 是 | 用户 API Key |
| id | string | 是 | 作品ID |
| 参数名 | 类型 | 描述 |
|---|---|---|
| code | number | 状态码 (0 表示成功) |
| success | boolean | 请求是否成功 |
| msg | string | 状态描述信息 |
| data | object | 数据对象 |
| data.status | string | 操作状态 |
| data.target | string | 目标长链接 |
| data.short_url | string | 短链接 |
| usage | object | 用量信息 |
| usage.cost | number | 本次消耗用量 |
| 错误码 | 描述 | 解决方案 |
|---|---|---|
| 401 | Unauthorized | API Key 无效或过期,请检查 Key 是否正确 |
| 400 | Bad Request | 请求参数错误 |
| 403 | Forbidden | 余额不足或权限受限 |
| 500 | Internal Server Error | 服务器内部错误,请联系技术支持 |