curl \
-H "Authorization: Bearer API_KEY" \
-H 'Content-Type: application/json' \
-d '{"id": "Ut1fWU6XkqkMayHGnJZ", "platforms": ["bluesky", "facebook", "instagram", "linkedin", "reddit", "tiktok", "twitter", "youtube"], "comment": "An amazing comment!"}' \
-X POST https://api.ayrshare.com/api/comments
const API_KEY = "API_KEY";
fetch("https://api.ayrshare.com/api/comments", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
id: "Ut1fWU6XkqkMayHGnJZ", // required
platforms: ["bluesky", "facebook", "instagram", "linkedin", "reddit", "tiktok", "twitter", "youtube"], // required
comment: "An amazing comment!", //required
}),
})
.then((res) => res.json())
.then((json) => console.log(json))
.catch(console.error);
import requests
payload = {'id': 'Ut1fWU6XkqkMayHGnJZ',
'platforms': ['bluesky', 'facebook', 'instagram', 'linkedin', 'reddit', 'tiktok', 'twitter', 'youtube'],
'comment': 'An amazing comment!'}
headers = {'Content-Type': 'application/json',
'Authorization': 'Bearer API_KEY'}
r = requests.post('https://api.ayrshare.com/api/comments',
json=payload,
headers=headers)
print(r.json())
<?php
$apiUrl = 'https://api.ayrshare.com/api/comments';
$apiKey = 'API_KEY'; // Replace 'API_KEY' with your actual API key
$headers = [
'Content-Type: application/json',
'Authorization: Bearer ' . $apiKey,
];
$data = json_encode([
'id' => 'Ut1fWU6XkqkMayHGnJZ', // Replace with your actual post ID
'platforms' => ['bluesky', 'facebook', 'instagram', 'linkedin', 'reddit', 'tiktok', 'twitter', 'youtube'],
'comment' => 'An amazing comment!'
]);
$curl = curl_init($apiUrl);
curl_setopt_array($curl, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => $headers,
CURLOPT_POSTFIELDS => $data
]);
$response = curl_exec($curl);
if ($response === false) {
echo 'Curl error: ' . curl_error($curl);
} else {
echo json_encode(json_decode($response), JSON_PRETTY_PRINT);
}
curl_close($curl);
package main
import (
"bytes"
"encoding/json"
"log"
"net/http"
)
func main() {
message := map[string]interface{}{
"id": "Ut1fWU6XkqkMayHGnJZ", // required
"platforms": []string{"bluesky", "facebook", "instagram", "linkedin", "reddit", "tiktok", "twitter", "youtube"}, // required
"comment": []string{"An amazing comment!"} // required
}
bytesRepresentation, err := json.Marshal(message)
if err != nil {
log.Fatalln(err)
}
req, _ := http.NewRequest("POST", "https://api.ayrshare.com/api/comments",
bytes.NewBuffer(bytesRepresentation))
req.Header.Add("Content-Type", "application/json; charset=UTF-8")
req.Header.Add("Authorization", "Bearer API_KEY")
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal("Error:", err)
}
res.Body.Close()
}
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace CommentsPOSTRequest_csharp
{
class CommentsPOST
{
private static readonly HttpClient client = new HttpClient();
static async Task Main(string[] args)
{
string API_KEY = "API_KEY";
string url = "https://api.ayrshare.com/api/comments";
client.DefaultRequestHeaders.Add("Authorization", "Bearer " + API_KEY);
string json = "{\"id\": \"Ut1fWU6XkqkMayHGnJZ\"," +
"\"platforms\": [\"bluesky\", \"facebook\", \"instagram\", \"linkedin\", \"reddit\", \"tiktok\", \"twitter\", \"youtube\"]," +
"\"comment\": [\"An amazing comment!\"]}";
try
{
var content = new StringContent(json, Encoding.UTF8, "application/json");
HttpResponseMessage response = await client.PostAsync(url, content);
response.EnsureSuccessStatusCode();
string responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);
}
catch (HttpRequestException e)
{
Console.WriteLine($"Error: {e.Message}");
}
}
}
}
{
"status": "success",
"commentID": "IUDSCfdYfFkw_dWhW9PLI", // Ayrshare Comment ID. Used for replying to a comment.
"id": "Ut1fWU6XkqlMayHGnJZ", // Ayrshare Post ID
"bluesky": {
"status": "success",
"commentId": "at://did:plc:62musrcyanhro2lydyhlw7ci/app.bsky.feed.post/3lf4b4j3dqy2i",
"cid": "bafyreiaoivcafelkpzhbbjco23pguyqmy7wucuvfxaifgj34qoyp7nrhhy",
"comment": "Nice one this is",
"platform": "bluesky",
"postUrl": "https://bsky.app/profile/ayrshare.com/post/3lf4b4j3dqy2i"
},
"facebook": {
"status": "success",
"commentId": "358482752285927_363474831785719", // Facebook Social Comment ID
"comment": "The best comment ever!",
"platform": "facebook"
},
"instagram": {
"status": "success",
"commentId": "17060111860440276", // Instagram Social Comment ID
"comment": "The best comment ever!",
"platform": "instagram"
},
"linkedin": {
"status": "success",
"commentId": "urn:li:comment:(urn:li:activity:7141202289402236928,7141205176207503360)", // LinkedIn Social Comment ID
"comment": "Someone's sitting in the shade today because someone planted a tree a long time ago. - Warren Buffett",
"commentUrn": "urn:li:comment:(urn:li:activity:7141202289402236928,7141205176207503360)", // Social comment Id from LinkedIn
"platform": "linkedin"
},
"tiktok": {
"status": "success",
"commentId": "7260964914699764524", // TikTok Social Comment ID
"comment": "The best comment ever!",
"platform": "tiktok",
"videoId": "7260964048362310959"
},
"twitter": {
"status": "success",
"commentId": "1525632403262101648", // Twitter Social Comment ID
"comment": "The best comment ever!",
"postUrl": "https://twitter.com/ayrshare/status/1525632403262101648"
},
"youtube": {
"status": "success",
"commentId": "UgzIEZsDQKXgHsEnwTR4AaABAa", // YouTube Social Comment ID
"comment": "The best comment ever!",
"platform": "youtube"
},
}
{
"commentId": "5GizKtM9TFRFFWNDgBZ",
"twitter": {
"status": "success",
"commentId": "1842266484032016",
"comment": "Having a meeting on this",
"platform": "twitter",
"postUrl": "https://twitter.com/ayrshare/status/18422664840320"
},
"action": "post",
"status": "error",
"code": 156,
"message": "Instagram is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.",
"platform": "instagram",
"id": "1w3QI6bU7KE9XyxrN0u", // Ayrshare Post ID
"errors": [
{
"action": "post",
"status": "error",
"code": 156,
"message": "Facebook is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.",
"platform": "facebook"
},
{
"action": "post",
"status": "error",
"code": 156,
"message": "Instagram is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.",
"platform": "instagram"
}
]
}
{
"twitter": {
"action": "post",
"status": "error",
"code": 134,
"message": "The social network detected duplicate content and blocked this post. Please change the content and try again.",
"post": "Having a meeting on this",
"detail": "You are not allowed to create a Tweet with duplicate content."
},
"code": 134,
"status": "error",
"id": "1w3QI6bU7KE9XyxrN", // Ayrshare Post ID
"errors": [
{
"action": "post",
"status": "error",
"code": 134,
"message": "The social network detected duplicate content and blocked this post. Please change the content and try again.",
"post": "Having a meeting on this",
"detail": "You are not allowed to create a Tweet with duplicate content.",
"id": "1w3QI6bU7KE9XyxrN",
"platform": "twitter"
}
]
}
Comments
发布评论
向已发布的帖子添加评论
POST
/
comments
curl \
-H "Authorization: Bearer API_KEY" \
-H 'Content-Type: application/json' \
-d '{"id": "Ut1fWU6XkqkMayHGnJZ", "platforms": ["bluesky", "facebook", "instagram", "linkedin", "reddit", "tiktok", "twitter", "youtube"], "comment": "An amazing comment!"}' \
-X POST https://api.ayrshare.com/api/comments
const API_KEY = "API_KEY";
fetch("https://api.ayrshare.com/api/comments", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
id: "Ut1fWU6XkqkMayHGnJZ", // required
platforms: ["bluesky", "facebook", "instagram", "linkedin", "reddit", "tiktok", "twitter", "youtube"], // required
comment: "An amazing comment!", //required
}),
})
.then((res) => res.json())
.then((json) => console.log(json))
.catch(console.error);
import requests
payload = {'id': 'Ut1fWU6XkqkMayHGnJZ',
'platforms': ['bluesky', 'facebook', 'instagram', 'linkedin', 'reddit', 'tiktok', 'twitter', 'youtube'],
'comment': 'An amazing comment!'}
headers = {'Content-Type': 'application/json',
'Authorization': 'Bearer API_KEY'}
r = requests.post('https://api.ayrshare.com/api/comments',
json=payload,
headers=headers)
print(r.json())
<?php
$apiUrl = 'https://api.ayrshare.com/api/comments';
$apiKey = 'API_KEY'; // Replace 'API_KEY' with your actual API key
$headers = [
'Content-Type: application/json',
'Authorization: Bearer ' . $apiKey,
];
$data = json_encode([
'id' => 'Ut1fWU6XkqkMayHGnJZ', // Replace with your actual post ID
'platforms' => ['bluesky', 'facebook', 'instagram', 'linkedin', 'reddit', 'tiktok', 'twitter', 'youtube'],
'comment' => 'An amazing comment!'
]);
$curl = curl_init($apiUrl);
curl_setopt_array($curl, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => $headers,
CURLOPT_POSTFIELDS => $data
]);
$response = curl_exec($curl);
if ($response === false) {
echo 'Curl error: ' . curl_error($curl);
} else {
echo json_encode(json_decode($response), JSON_PRETTY_PRINT);
}
curl_close($curl);
package main
import (
"bytes"
"encoding/json"
"log"
"net/http"
)
func main() {
message := map[string]interface{}{
"id": "Ut1fWU6XkqkMayHGnJZ", // required
"platforms": []string{"bluesky", "facebook", "instagram", "linkedin", "reddit", "tiktok", "twitter", "youtube"}, // required
"comment": []string{"An amazing comment!"} // required
}
bytesRepresentation, err := json.Marshal(message)
if err != nil {
log.Fatalln(err)
}
req, _ := http.NewRequest("POST", "https://api.ayrshare.com/api/comments",
bytes.NewBuffer(bytesRepresentation))
req.Header.Add("Content-Type", "application/json; charset=UTF-8")
req.Header.Add("Authorization", "Bearer API_KEY")
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal("Error:", err)
}
res.Body.Close()
}
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace CommentsPOSTRequest_csharp
{
class CommentsPOST
{
private static readonly HttpClient client = new HttpClient();
static async Task Main(string[] args)
{
string API_KEY = "API_KEY";
string url = "https://api.ayrshare.com/api/comments";
client.DefaultRequestHeaders.Add("Authorization", "Bearer " + API_KEY);
string json = "{\"id\": \"Ut1fWU6XkqkMayHGnJZ\"," +
"\"platforms\": [\"bluesky\", \"facebook\", \"instagram\", \"linkedin\", \"reddit\", \"tiktok\", \"twitter\", \"youtube\"]," +
"\"comment\": [\"An amazing comment!\"]}";
try
{
var content = new StringContent(json, Encoding.UTF8, "application/json");
HttpResponseMessage response = await client.PostAsync(url, content);
response.EnsureSuccessStatusCode();
string responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);
}
catch (HttpRequestException e)
{
Console.WriteLine($"Error: {e.Message}");
}
}
}
}
{
"status": "success",
"commentID": "IUDSCfdYfFkw_dWhW9PLI", // Ayrshare Comment ID. Used for replying to a comment.
"id": "Ut1fWU6XkqlMayHGnJZ", // Ayrshare Post ID
"bluesky": {
"status": "success",
"commentId": "at://did:plc:62musrcyanhro2lydyhlw7ci/app.bsky.feed.post/3lf4b4j3dqy2i",
"cid": "bafyreiaoivcafelkpzhbbjco23pguyqmy7wucuvfxaifgj34qoyp7nrhhy",
"comment": "Nice one this is",
"platform": "bluesky",
"postUrl": "https://bsky.app/profile/ayrshare.com/post/3lf4b4j3dqy2i"
},
"facebook": {
"status": "success",
"commentId": "358482752285927_363474831785719", // Facebook Social Comment ID
"comment": "The best comment ever!",
"platform": "facebook"
},
"instagram": {
"status": "success",
"commentId": "17060111860440276", // Instagram Social Comment ID
"comment": "The best comment ever!",
"platform": "instagram"
},
"linkedin": {
"status": "success",
"commentId": "urn:li:comment:(urn:li:activity:7141202289402236928,7141205176207503360)", // LinkedIn Social Comment ID
"comment": "Someone's sitting in the shade today because someone planted a tree a long time ago. - Warren Buffett",
"commentUrn": "urn:li:comment:(urn:li:activity:7141202289402236928,7141205176207503360)", // Social comment Id from LinkedIn
"platform": "linkedin"
},
"tiktok": {
"status": "success",
"commentId": "7260964914699764524", // TikTok Social Comment ID
"comment": "The best comment ever!",
"platform": "tiktok",
"videoId": "7260964048362310959"
},
"twitter": {
"status": "success",
"commentId": "1525632403262101648", // Twitter Social Comment ID
"comment": "The best comment ever!",
"postUrl": "https://twitter.com/ayrshare/status/1525632403262101648"
},
"youtube": {
"status": "success",
"commentId": "UgzIEZsDQKXgHsEnwTR4AaABAa", // YouTube Social Comment ID
"comment": "The best comment ever!",
"platform": "youtube"
},
}
{
"commentId": "5GizKtM9TFRFFWNDgBZ",
"twitter": {
"status": "success",
"commentId": "1842266484032016",
"comment": "Having a meeting on this",
"platform": "twitter",
"postUrl": "https://twitter.com/ayrshare/status/18422664840320"
},
"action": "post",
"status": "error",
"code": 156,
"message": "Instagram is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.",
"platform": "instagram",
"id": "1w3QI6bU7KE9XyxrN0u", // Ayrshare Post ID
"errors": [
{
"action": "post",
"status": "error",
"code": 156,
"message": "Facebook is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.",
"platform": "facebook"
},
{
"action": "post",
"status": "error",
"code": 156,
"message": "Instagram is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.",
"platform": "instagram"
}
]
}
{
"twitter": {
"action": "post",
"status": "error",
"code": 134,
"message": "The social network detected duplicate content and blocked this post. Please change the content and try again.",
"post": "Having a meeting on this",
"detail": "You are not allowed to create a Tweet with duplicate content."
},
"code": 134,
"status": "error",
"id": "1w3QI6bU7KE9XyxrN", // Ayrshare Post ID
"errors": [
{
"action": "post",
"status": "error",
"code": 134,
"message": "The social network detected duplicate content and blocked this post. Please change the content and try again.",
"post": "Having a meeting on this",
"detail": "You are not allowed to create a Tweet with duplicate content.",
"id": "1w3QI6bU7KE9XyxrN",
"platform": "twitter"
}
]
}
使用评论 API,通过 Ayrshare 帖子 ID(通过 Ayrshare 发送的帖子)或社交帖子 ID(在 Ayrshare 外部发送的帖子)向帖子添加评论。
各平台的详细提及语法和限制请参见:
- 添加到 X Thread 的评论会发布在第一条推文上。
- Meta 尚不支持 Instagram Story 评论。
- 请参见下方的
platforms字段,了解不同 ID 类型支持的平台。
请求头参数
请求体参数
要添加到帖子中的新评论文本。
指定要添加评论的平台。如果使用 Ayrshare 帖子 ID,支持的平台为:如果使用社交帖子 ID,支持的平台为——一次仅允许一个平台:
bluesky、facebook、instagram、linkedin、reddit、tiktok、twitter、youtube。如果未指定 platforms,评论将发布到所有已连接且支持评论的平台。Post a Comment with the Ayrshare Post ID
{
"id": "Ut1fWU6XkqkMayHGnJZ", // Ayrshare Post ID
"comment": "An amazing comment!", // required
"platforms": [
"bluesky",
"facebook",
"instagram",
"linkedin",
"reddit",
"tiktok",
"twitter",
"youtube"
]
}
facebook、instagram、linkedin、tiktok、twitter。Post a Comment with the Social Post ID
{
"id": "1288899996423983105", // Social Post ID
"comment": "An amazing comment!", // required
"searchPlatformId": true, // required
// facebook, instagram, linkedin, tiktok, twitter
"platforms": ["facebook"] // Only specify one platform
}
通过提供图片 URL,为 Facebook 或 X/Twitter 附加一张图片。
mediaUrls 字段仅支持一张图片。支持的平台为 Facebook、LinkedIn 和 X/Twitter。Post a Comment with an Image
{
"id": "Ut1fWU6XkqkMayHGnJZ", // Ayrshare Post ID
"comment": "An amazing comment!", // required
"platforms": ["facebook"], // Facebook, LinkedIn, or X/Twitter only
"mediaUrls": ["https://img.ayrshare.com/gb.jpg"]
}
评论中的 @提及
你可以直接在comment 文本字符串中添加 @提及。没有专门的提及参数。只需在评论文本中添加 @handle 即可。
Comment with @Mention
{
"id": "Ut1fWU6XkqkMayHGnJZ",
"comment": "Great post @CompanyName! Love this.",
"platforms": ["linkedin", "twitter", "facebook"]
}
LinkedIn 提及: LinkedIn 提及由 Ayrshare 在服务端解析。请使用 LinkedIn 搜索端点查找正确的自定义名(vanity name)或成员名。对于组织,使用
@handle。对于成员,使用 @vanity_name 或 @[Full Name]。- Bluesky 提及
- Facebook 提及
- Instagram 提及
- LinkedIn 提及
- Reddit 提及
- Threads 提及
- TikTok 提及
- X/Twitter 提及
- YouTube 提及
curl \
-H "Authorization: Bearer API_KEY" \
-H 'Content-Type: application/json' \
-d '{"id": "Ut1fWU6XkqkMayHGnJZ", "platforms": ["bluesky", "facebook", "instagram", "linkedin", "reddit", "tiktok", "twitter", "youtube"], "comment": "An amazing comment!"}' \
-X POST https://api.ayrshare.com/api/comments
const API_KEY = "API_KEY";
fetch("https://api.ayrshare.com/api/comments", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
id: "Ut1fWU6XkqkMayHGnJZ", // required
platforms: ["bluesky", "facebook", "instagram", "linkedin", "reddit", "tiktok", "twitter", "youtube"], // required
comment: "An amazing comment!", //required
}),
})
.then((res) => res.json())
.then((json) => console.log(json))
.catch(console.error);
import requests
payload = {'id': 'Ut1fWU6XkqkMayHGnJZ',
'platforms': ['bluesky', 'facebook', 'instagram', 'linkedin', 'reddit', 'tiktok', 'twitter', 'youtube'],
'comment': 'An amazing comment!'}
headers = {'Content-Type': 'application/json',
'Authorization': 'Bearer API_KEY'}
r = requests.post('https://api.ayrshare.com/api/comments',
json=payload,
headers=headers)
print(r.json())
<?php
$apiUrl = 'https://api.ayrshare.com/api/comments';
$apiKey = 'API_KEY'; // Replace 'API_KEY' with your actual API key
$headers = [
'Content-Type: application/json',
'Authorization: Bearer ' . $apiKey,
];
$data = json_encode([
'id' => 'Ut1fWU6XkqkMayHGnJZ', // Replace with your actual post ID
'platforms' => ['bluesky', 'facebook', 'instagram', 'linkedin', 'reddit', 'tiktok', 'twitter', 'youtube'],
'comment' => 'An amazing comment!'
]);
$curl = curl_init($apiUrl);
curl_setopt_array($curl, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => $headers,
CURLOPT_POSTFIELDS => $data
]);
$response = curl_exec($curl);
if ($response === false) {
echo 'Curl error: ' . curl_error($curl);
} else {
echo json_encode(json_decode($response), JSON_PRETTY_PRINT);
}
curl_close($curl);
package main
import (
"bytes"
"encoding/json"
"log"
"net/http"
)
func main() {
message := map[string]interface{}{
"id": "Ut1fWU6XkqkMayHGnJZ", // required
"platforms": []string{"bluesky", "facebook", "instagram", "linkedin", "reddit", "tiktok", "twitter", "youtube"}, // required
"comment": []string{"An amazing comment!"} // required
}
bytesRepresentation, err := json.Marshal(message)
if err != nil {
log.Fatalln(err)
}
req, _ := http.NewRequest("POST", "https://api.ayrshare.com/api/comments",
bytes.NewBuffer(bytesRepresentation))
req.Header.Add("Content-Type", "application/json; charset=UTF-8")
req.Header.Add("Authorization", "Bearer API_KEY")
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal("Error:", err)
}
res.Body.Close()
}
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace CommentsPOSTRequest_csharp
{
class CommentsPOST
{
private static readonly HttpClient client = new HttpClient();
static async Task Main(string[] args)
{
string API_KEY = "API_KEY";
string url = "https://api.ayrshare.com/api/comments";
client.DefaultRequestHeaders.Add("Authorization", "Bearer " + API_KEY);
string json = "{\"id\": \"Ut1fWU6XkqkMayHGnJZ\"," +
"\"platforms\": [\"bluesky\", \"facebook\", \"instagram\", \"linkedin\", \"reddit\", \"tiktok\", \"twitter\", \"youtube\"]," +
"\"comment\": [\"An amazing comment!\"]}";
try
{
var content = new StringContent(json, Encoding.UTF8, "application/json");
HttpResponseMessage response = await client.PostAsync(url, content);
response.EnsureSuccessStatusCode();
string responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);
}
catch (HttpRequestException e)
{
Console.WriteLine($"Error: {e.Message}");
}
}
}
}
{
"status": "success",
"commentID": "IUDSCfdYfFkw_dWhW9PLI", // Ayrshare Comment ID. Used for replying to a comment.
"id": "Ut1fWU6XkqlMayHGnJZ", // Ayrshare Post ID
"bluesky": {
"status": "success",
"commentId": "at://did:plc:62musrcyanhro2lydyhlw7ci/app.bsky.feed.post/3lf4b4j3dqy2i",
"cid": "bafyreiaoivcafelkpzhbbjco23pguyqmy7wucuvfxaifgj34qoyp7nrhhy",
"comment": "Nice one this is",
"platform": "bluesky",
"postUrl": "https://bsky.app/profile/ayrshare.com/post/3lf4b4j3dqy2i"
},
"facebook": {
"status": "success",
"commentId": "358482752285927_363474831785719", // Facebook Social Comment ID
"comment": "The best comment ever!",
"platform": "facebook"
},
"instagram": {
"status": "success",
"commentId": "17060111860440276", // Instagram Social Comment ID
"comment": "The best comment ever!",
"platform": "instagram"
},
"linkedin": {
"status": "success",
"commentId": "urn:li:comment:(urn:li:activity:7141202289402236928,7141205176207503360)", // LinkedIn Social Comment ID
"comment": "Someone's sitting in the shade today because someone planted a tree a long time ago. - Warren Buffett",
"commentUrn": "urn:li:comment:(urn:li:activity:7141202289402236928,7141205176207503360)", // Social comment Id from LinkedIn
"platform": "linkedin"
},
"tiktok": {
"status": "success",
"commentId": "7260964914699764524", // TikTok Social Comment ID
"comment": "The best comment ever!",
"platform": "tiktok",
"videoId": "7260964048362310959"
},
"twitter": {
"status": "success",
"commentId": "1525632403262101648", // Twitter Social Comment ID
"comment": "The best comment ever!",
"postUrl": "https://twitter.com/ayrshare/status/1525632403262101648"
},
"youtube": {
"status": "success",
"commentId": "UgzIEZsDQKXgHsEnwTR4AaABAa", // YouTube Social Comment ID
"comment": "The best comment ever!",
"platform": "youtube"
},
}
{
"commentId": "5GizKtM9TFRFFWNDgBZ",
"twitter": {
"status": "success",
"commentId": "1842266484032016",
"comment": "Having a meeting on this",
"platform": "twitter",
"postUrl": "https://twitter.com/ayrshare/status/18422664840320"
},
"action": "post",
"status": "error",
"code": 156,
"message": "Instagram is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.",
"platform": "instagram",
"id": "1w3QI6bU7KE9XyxrN0u", // Ayrshare Post ID
"errors": [
{
"action": "post",
"status": "error",
"code": 156,
"message": "Facebook is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.",
"platform": "facebook"
},
{
"action": "post",
"status": "error",
"code": 156,
"message": "Instagram is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.",
"platform": "instagram"
}
]
}
{
"twitter": {
"action": "post",
"status": "error",
"code": 134,
"message": "The social network detected duplicate content and blocked this post. Please change the content and try again.",
"post": "Having a meeting on this",
"detail": "You are not allowed to create a Tweet with duplicate content."
},
"code": 134,
"status": "error",
"id": "1w3QI6bU7KE9XyxrN", // Ayrshare Post ID
"errors": [
{
"action": "post",
"status": "error",
"code": 134,
"message": "The social network detected duplicate content and blocked this post. Please change the content and try again.",
"post": "Having a meeting on this",
"detail": "You are not allowed to create a Tweet with duplicate content.",
"id": "1w3QI6bU7KE9XyxrN",
"platform": "twitter"
}
]
}
⌘I
