Connection Request
curl --request POST \
--url https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "<string>",
"provider_id": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send"
payload = {
"account_id": "<string>",
"provider_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({account_id: '<string>', provider_id: '<string>'})
};
fetch('https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send', 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://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send",
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([
'account_id' => '<string>',
'provider_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send"
payload := strings.NewReader("{\n \"account_id\": \"<string>\",\n \"provider_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"<string>\",\n \"provider_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"<string>\",\n \"provider_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"object": "UserInvitationSent",
"invitation_id": "<string>",
"usage": 123
}Network
发送建联邀请
向指定成员发送 LinkedIn 建联邀请。
POST
https://api.aisa.one
/
apis
/
v1
/
unipile
/
linkedin
/
connection-requests
/
send
Connection Request
curl --request POST \
--url https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "<string>",
"provider_id": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send"
payload = {
"account_id": "<string>",
"provider_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({account_id: '<string>', provider_id: '<string>'})
};
fetch('https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send', 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://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send",
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([
'account_id' => '<string>',
'provider_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send"
payload := strings.NewReader("{\n \"account_id\": \"<string>\",\n \"provider_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"<string>\",\n \"provider_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"<string>\",\n \"provider_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"object": "UserInvitationSent",
"invitation_id": "<string>",
"usage": 123
}向指定成员发送 LinkedIn 建联邀请——这是触达「尚未建立连接」的人的正确端点,不受 Start Chat 对非人脉的订阅限制。邀请被接受后对方进入一度人脉列表,即可正常发起会话。收件人用 provider id(
ACoAA…)标识,可先用「用户资料」端点把 satyanadella 这类公共标识解析出来。所有参数(含 account_id)都放 JSON body。返回的 invitation_id 可用「撤回邀请」端点撤回。写操作:LinkedIn 按账号限制每天约 80–100 个邀请;连接历史较少的新账号可能被禁止发送邀请。
参考价格:每次成功请求 $0.02 USD。授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求体
application/json
Connected account id the invitation is sent from. Must be in the body, not the query string.
Provider id of the member to invite (ACoAA…).
Optional note attached to the invitation, at most 300 characters. Echoed back as invitation_text on the sent-invitations list.