Post Reaction
curl --request POST \
--url https://api.aisa.one/apis/v1/unipile/linkedin/posts/reaction/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "<string>",
"post_id": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/unipile/linkedin/posts/reaction/send"
payload = {
"account_id": "<string>",
"post_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>', post_id: '<string>'})
};
fetch('https://api.aisa.one/apis/v1/unipile/linkedin/posts/reaction/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/posts/reaction/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>',
'post_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/posts/reaction/send"
payload := strings.NewReader("{\n \"account_id\": \"<string>\",\n \"post_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/posts/reaction/send")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"<string>\",\n \"post_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/unipile/linkedin/posts/reaction/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 \"post_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"object": "ReactionAdded"
}Posts
Post Reaction
React to a LinkedIn post.
POST
https://api.aisa.one
/
apis
/
v1
/
unipile
/
linkedin
/
posts
/
reaction
/
send
Post Reaction
curl --request POST \
--url https://api.aisa.one/apis/v1/unipile/linkedin/posts/reaction/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "<string>",
"post_id": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/unipile/linkedin/posts/reaction/send"
payload = {
"account_id": "<string>",
"post_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>', post_id: '<string>'})
};
fetch('https://api.aisa.one/apis/v1/unipile/linkedin/posts/reaction/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/posts/reaction/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>',
'post_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/posts/reaction/send"
payload := strings.NewReader("{\n \"account_id\": \"<string>\",\n \"post_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/posts/reaction/send")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"<string>\",\n \"post_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/unipile/linkedin/posts/reaction/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 \"post_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"object": "ReactionAdded"
}Adds a reaction (like) to an existing post. Write action: the reaction is publicly visible. Pass the post’s
Path parameters and required query parameters are documented in the operation reference.
social_id as post_id — take it from the Post Detail or User Posts response, because the id visible in a LinkedIn post URL does not always resolve.
See Pricing for current prices. Where supported, get a quote for your request.
Example
curl -X POST "https://api.aisa.one/apis/v1/unipile/linkedin/posts/reaction/send" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"account_id": "YOUR_ACCOUNT_ID", "post_id": "7440079959160913920"}'
Request contract
- Method and path: POST /apis/v1/unipile/linkedin/posts/reaction/send
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/unipile/linkedin/posts/reaction/send
{
"operationId": "post_unipile_linkedin_post_reaction",
"method": "POST",
"path": "/apis/v1/unipile/linkedin/posts/reaction/send",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"account_id": {
"description": "The id of the account to perform the request from.",
"minLength": 1,
"type": "string"
},
"as_organization": {
"description": "`Linkedin only` Provide the ID of an organization over which you have control to perform the action on its behalf.",
"minLength": 1,
"type": "string"
},
"comment_id": {
"description": "The id of the comment to send a reaction to. `Linkedin`: use the comment id returned by the comments list.",
"minLength": 1,
"type": "string"
},
"post_id": {
"description": "The id of the post to send a reaction to. <br> `Linkedin`: use the `social_id` from the post object (GET post or list posts). The post id visible in url will not work in all case, you can refer here for more details : https://developer.unipile.com/docs/posts-and-comments <br> `Instagram` Please use the provider_id",
"minLength": 1,
"type": "string"
},
"reaction_type": {
"description": "The type of reaction to send. If not provided, it defaults to 'like'. <br> `Instagram`: The only supported reaction type is 'like'.",
"enum": [
"like",
"celebrate",
"support",
"love",
"insightful",
"funny"
],
"type": "string"
}
},
"required": [
"account_id",
"post_id"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Published reference price: $0.02 USD per successful request. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
The id of the post to send a reaction to.
Linkedin: use the social_id from the post object (GET post or list posts). The post id visible in url will not work in all case, you can refer here for more details : https://developer.unipile.com/docs/posts-and-comments
Instagram Please use the provider_id
Minimum string length:
1