manage_favorite
Add or remove a post from your favorites on Fanfou. Specify the post ID and the action ('create' or 'destroy') to manage the favorite status.
Instructions
管理饭否内容的收藏状态
调用饭否 API 的 /favorites/create/id.json 或 /favorites/destroy/id.json 接口 来收藏或取消收藏指定的饭否内容。
Args: status_id: 饭否内容的 ID action: 操作类型,"create" 表示收藏,"destroy" 表示取消收藏 confirm: 是否确认操作(二次确认参数)
Returns: 操作结果字典,包含: - 是否收藏: 操作后的收藏状态 - 操作结果: 操作是否成功的描述信息 - 操作类型: 执行的具体操作(收藏/取消收藏)
或者确认信息字典,包含:
- 需要确认: 是否需要用户确认
- 内容预览: 要操作的内容预览
- 确认提示: 如何进行确认的说明Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status_id | Yes | ||
| action | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||