读取单行目标详情
curl --request GET \
--url https://revor.ai/api/v2/websets/{websetId}/smart-outreach/items/{itemId}import requests
url = "https://revor.ai/api/v2/websets/{websetId}/smart-outreach/items/{itemId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://revor.ai/api/v2/websets/{websetId}/smart-outreach/items/{itemId}', 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/websets/{websetId}/smart-outreach/items/{itemId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://revor.ai/api/v2/websets/{websetId}/smart-outreach/items/{itemId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://revor.ai/api/v2/websets/{websetId}/smart-outreach/items/{itemId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/websets/{websetId}/smart-outreach/items/{itemId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body智能触达
读取单行目标详情
获取指定行的触达目标详情,用于获取草稿 target ID。
GET
/
api
/
v2
/
websets
/
{websetId}
/
smart-outreach
/
items
/
{itemId}
读取单行目标详情
curl --request GET \
--url https://revor.ai/api/v2/websets/{websetId}/smart-outreach/items/{itemId}import requests
url = "https://revor.ai/api/v2/websets/{websetId}/smart-outreach/items/{itemId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://revor.ai/api/v2/websets/{websetId}/smart-outreach/items/{itemId}', 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/websets/{websetId}/smart-outreach/items/{itemId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://revor.ai/api/v2/websets/{websetId}/smart-outreach/items/{itemId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://revor.ai/api/v2/websets/{websetId}/smart-outreach/items/{itemId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/websets/{websetId}/smart-outreach/items/{itemId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body获取指定行的触达目标详情。返回的
targets 中的 id 用于草稿接口。
接口概览
| 方法 | GET |
| 路径 | /api/v2/websets/{websetId}/smart-outreach/items/{itemId} |
| 权限 | outreach.plans:read |
路径参数
Query 参数
请求示例
cURL
curl "https://revor.ai/api/v2/websets/webset-uuid/smart-outreach/items/item-uuid?channel=email" \
-H "Authorization: Bearer sk-revor-REPLACE_ME"
响应
返回单行 targets,其id 用于草稿接口。
