自动查找并点赞 LinkedIn 相关帖子
POST/api/v2/outreach/linkedin/post-likes
根据提供的主题或上下文,扫描目标 LinkedIn 用户的近期帖子,自动选择一条相关帖子并点赞。调用方不需要提供帖子 URL。没有符合条件的帖子时任务会成功结束,并返回 result.status=skipped。
Headers
必须发送 Authorization 和 Content-Type: application/json。Idempotency-Key 可选;需要安全重试时建议发送并复用同一个值。
Request Body
请求示例
cURLcurl -X POST "https://revor.ai/api/v2/outreach/linkedin/post-likes" \ -H "Authorization: Bearer sk-revor-REPLACE_ME" \ -H "Content-Type: application/json" \ -d '{ "account_id": "connect_account_xxx", "profile_url": "https://www.linkedin.com/in/example/", "content": "AI sales automation and outbound workflow", "post_limit": 20, "locale": "en" }'
响应与结果
创建接口返回 HTTP 202,其中 item.action 为 outreach.linkedin.post_like,item.channel 为 linkedin。保存 item.id,然后查询:
HttpGET /api/v2/jobs/{id}
点赞成功时:
JSON{ "status": "liked", "liked_post": { "url": "https://www.linkedin.com/posts/example_activity-123" }, "reason": "The post matches the requested topic." }
没有相关帖子时,item.result.status=skipped,并通过 reason 说明原因。