自动查找并点赞 LinkedIn 相关帖子
curl --request POST \
--url https://revor.ai/api/v2/outreach/linkedin/post-likes \
--header 'Content-Type: application/json' \
--data '
{
"profile_url": "<string>",
"content": "<string>",
"account_id": "<string>",
"post_limit": 123,
"locale": "<string>",
"min_channel_task_interval_seconds": 123
}
'import requests
url = "https://revor.ai/api/v2/outreach/linkedin/post-likes"
payload = {
"profile_url": "<string>",
"content": "<string>",
"account_id": "<string>",
"post_limit": 123,
"locale": "<string>",
"min_channel_task_interval_seconds": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
profile_url: '<string>',
content: '<string>',
account_id: '<string>',
post_limit: 123,
locale: '<string>',
min_channel_task_interval_seconds: 123
})
};
fetch('https://revor.ai/api/v2/outreach/linkedin/post-likes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://revor.ai/api/v2/outreach/linkedin/post-likes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'profile_url' => '<string>',
'content' => '<string>',
'account_id' => '<string>',
'post_limit' => 123,
'locale' => '<string>',
'min_channel_task_interval_seconds' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://revor.ai/api/v2/outreach/linkedin/post-likes"
payload := strings.NewReader("{\n \"profile_url\": \"<string>\",\n \"content\": \"<string>\",\n \"account_id\": \"<string>\",\n \"post_limit\": 123,\n \"locale\": \"<string>\",\n \"min_channel_task_interval_seconds\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://revor.ai/api/v2/outreach/linkedin/post-likes")
.header("Content-Type", "application/json")
.body("{\n \"profile_url\": \"<string>\",\n \"content\": \"<string>\",\n \"account_id\": \"<string>\",\n \"post_limit\": 123,\n \"locale\": \"<string>\",\n \"min_channel_task_interval_seconds\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/outreach/linkedin/post-likes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"profile_url\": \"<string>\",\n \"content\": \"<string>\",\n \"account_id\": \"<string>\",\n \"post_limit\": 123,\n \"locale\": \"<string>\",\n \"min_channel_task_interval_seconds\": 123\n}"
response = http.request(request)
puts response.read_body单次触达
自动查找并点赞 LinkedIn 相关帖子
根据提供的主题或上下文,扫描目标 LinkedIn 用户的近期帖子,自动选择一条相关帖子并点赞。调用方不需要提供帖子 URL。没有符合条件的帖子时任务会成功结束,并返回 result.status=skipped。
POST
/
api
/
v2
/
outreach
/
linkedin
/
post-likes
自动查找并点赞 LinkedIn 相关帖子
curl --request POST \
--url https://revor.ai/api/v2/outreach/linkedin/post-likes \
--header 'Content-Type: application/json' \
--data '
{
"profile_url": "<string>",
"content": "<string>",
"account_id": "<string>",
"post_limit": 123,
"locale": "<string>",
"min_channel_task_interval_seconds": 123
}
'import requests
url = "https://revor.ai/api/v2/outreach/linkedin/post-likes"
payload = {
"profile_url": "<string>",
"content": "<string>",
"account_id": "<string>",
"post_limit": 123,
"locale": "<string>",
"min_channel_task_interval_seconds": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
profile_url: '<string>',
content: '<string>',
account_id: '<string>',
post_limit: 123,
locale: '<string>',
min_channel_task_interval_seconds: 123
})
};
fetch('https://revor.ai/api/v2/outreach/linkedin/post-likes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://revor.ai/api/v2/outreach/linkedin/post-likes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'profile_url' => '<string>',
'content' => '<string>',
'account_id' => '<string>',
'post_limit' => 123,
'locale' => '<string>',
'min_channel_task_interval_seconds' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://revor.ai/api/v2/outreach/linkedin/post-likes"
payload := strings.NewReader("{\n \"profile_url\": \"<string>\",\n \"content\": \"<string>\",\n \"account_id\": \"<string>\",\n \"post_limit\": 123,\n \"locale\": \"<string>\",\n \"min_channel_task_interval_seconds\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://revor.ai/api/v2/outreach/linkedin/post-likes")
.header("Content-Type", "application/json")
.body("{\n \"profile_url\": \"<string>\",\n \"content\": \"<string>\",\n \"account_id\": \"<string>\",\n \"post_limit\": 123,\n \"locale\": \"<string>\",\n \"min_channel_task_interval_seconds\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/outreach/linkedin/post-likes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"profile_url\": \"<string>\",\n \"content\": \"<string>\",\n \"account_id\": \"<string>\",\n \"post_limit\": 123,\n \"locale\": \"<string>\",\n \"min_channel_task_interval_seconds\": 123\n}"
response = http.request(request)
puts response.read_body根据提供的主题或上下文,扫描目标 LinkedIn 用户的近期帖子,自动选择一条相关帖子并点赞。调用方不需要提供帖子 URL。没有符合条件的帖子时任务会成功结束,并返回
result.status=skipped。
| 方法 | POST |
| 权限 | LinkedIn 互动创建 |
| 幂等 | 可选;重试时复用相同的 Idempotency-Key 可避免重复 |
| 返回 | 任务 ID |
必须发送
Authorization 和 Content-Type: application/json。Idempotency-Key 可选;需要安全重试时建议发送并复用同一个值。Request Body
请求示例
cURL
curl -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"
}'
响应与结果
创建接口返回 HTTP202,其中 item.action 为 outreach.linkedin.post_like,item.channel 为 linkedin。保存 item.id,然后查询:
GET
GET /api/v2/jobs/{id}
没有相关帖子时,
item.result.status=skipped,并通过 reason 说明原因。结果示例
liked
{
"status": "liked",
"liked_post": {
"url": "https://www.linkedin.com/posts/example_activity-123"
},
"reason": "The post matches the requested topic."
}
常见错误
| HTTP | Code | 说明 |
|---|---|---|
400 | profile_url_required / content_required | 缺少目标或判断内容。 |
400 | invalid_profile_url | profile_url 不是 LinkedIn 个人主页 URL。 |
400 | post_limit_invalid / locale_invalid | 参数范围无效。 |
403 | permission_denied | Key 没有 LinkedIn 互动创建权限。 |
413 | request_payload_too_large | 请求体超过 32 KB。 |
503 | task_unavailable | 任务暂时无法创建。 |

