Automatisation des commentaires
Réponses automatiques aux commentaires des publications.
Valeurs des exemples
Saisissez-les une fois : tous les exemples de cette page les utilisent. La clé d’API reste sur cette page et n’est jamais enregistrée.
GET/v1/marketing/posts
Liste les automatisations de commentaires.
Lire/postsEn cas de succès : 200.Permission : Lire.
Réponse
36 champs
| Champ | Type | Toujours présent |
|---|---|---|
connections | array of object | Oui |
connections[].channel | string | Oui |
connections[].enabled | boolean | Oui |
connections[].id | string (uuid) | Oui |
connections[].label | string | Oui |
data | array of object | Oui |
data[].connectionId | string (uuid) | Oui |
data[].createContacts | boolean | Oui |
data[].createdAt | string (date-time) | Oui |
data[].enabled | boolean | Oui |
data[].endsAt | string (date-time) | Oui |
data[].engagement | object | Oui |
data[].engagement.error | null dans les exemples | Oui |
data[].engagement.fetchedAt | string | null (date-time) | Oui |
data[].engagement.metrics | object | null | Oui |
data[].engagement.metrics.comments | integer | Oui |
data[].engagement.metrics.reactions | integer | Oui |
data[].engagement.metrics.shares | integer | Non |
data[].engagement.nextFetchAt | string (date-time) | Oui |
data[].id | string (uuid) | Oui |
data[].includeExisting | boolean | Oui |
data[].keywords | array of string | Oui |
data[].like | boolean | Oui |
data[].nextScanAt | string (date-time) | Oui |
data[].oncePerUser | boolean | Oui |
data[].organizationId | string (uuid) | Oui |
data[].permalink | string (uri) | Oui |
data[].planBlocked | boolean | Oui |
data[].postId | string | Oui |
data[].privateReply | string | Oui |
data[].publicReply | string | null | Oui |
data[].scanAfter | null dans les exemples | Oui |
data[].scanError | null dans les exemples | Oui |
data[].startsAt | string (date-time) | Oui |
data[].title | string | Oui |
limit | integer | Oui |
Exemple
curl -X GET "https://api.firmado.app/v1/marketing/posts" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/marketing/posts", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/marketing/posts",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/marketing/posts");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/marketing/posts")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/marketing/posts", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/marketing/posts"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/marketing/posts");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Réponse (200), avec des valeurs d’exemple :
{
"connections": [
{
"channel": "…",
"enabled": true,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"label": "…"
}
],
"data": [
{
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createContacts": true,
"createdAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"endsAt": "2026-11-21T14:00:00.000Z",
"engagement": {},
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"includeExisting": true,
"keywords": [],
"like": true,
"nextScanAt": "2026-11-21T14:00:00.000Z",
"oncePerUser": true,
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"permalink": "https://example.com",
"planBlocked": true,
"postId": "…",
"privateReply": "…",
"publicReply": "…",
"scanAfter": null,
"scanError": null,
"startsAt": "2026-11-21T14:00:00.000Z",
"title": "…"
}
],
"limit": 1
}POST/v1/marketing/posts
Lance une automatisation de commentaires sur une publication : ce qui la déclenche et ce qu’elle répond.
Créer/postsEn cas de succès : 201.Permission : Créer.
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
enabled | boolean | Non | default true |
startsAt | string (date-time) | Oui | |
endsAt | string (date-time) | Oui | |
like | boolean | Non | default false |
publicReply | string | null | Non | default null |
privateReply | string | null | Non | default null |
keywords | array of string | Non | max items 30 |
createContacts | boolean | Non | default false |
includeExisting | boolean | Non | default false |
oncePerUser | boolean | Non | default true |
connectionId | string (uuid) | Oui | |
postId | string | Oui | pattern ^[\d_]{1,150}$ |
Réponse
33 champs
| Champ | Type | Toujours présent |
|---|---|---|
connections | array of object | Oui |
connections[].channel | string | Oui |
connections[].enabled | boolean | Oui |
connections[].id | string (uuid) | Oui |
connections[].label | string | Oui |
data | array of object | Oui |
data[].connectionId | string (uuid) | Oui |
data[].createContacts | boolean | Oui |
data[].createdAt | string (date-time) | Oui |
data[].enabled | boolean | Oui |
data[].endsAt | string (date-time) | Oui |
data[].engagement | object | Oui |
data[].engagement.error | null dans les exemples | Oui |
data[].engagement.fetchedAt | null dans les exemples | Oui |
data[].engagement.metrics | null dans les exemples | Oui |
data[].engagement.nextFetchAt | string (date-time) | Oui |
data[].id | string (uuid) | Oui |
data[].includeExisting | boolean | Oui |
data[].keywords | array of string | Oui |
data[].like | boolean | Oui |
data[].nextScanAt | string (date-time) | Oui |
data[].oncePerUser | boolean | Oui |
data[].organizationId | string (uuid) | Oui |
data[].permalink | string | null (uri) | Oui |
data[].planBlocked | boolean | Oui |
data[].postId | string | Oui |
data[].privateReply | string | null | Oui |
data[].publicReply | string | Oui |
data[].scanAfter | null dans les exemples | Oui |
data[].scanError | null dans les exemples | Oui |
data[].startsAt | string (date-time) | Oui |
data[].title | string | Oui |
limit | integer | Oui |
Exemple
curl -X POST "https://api.firmado.app/v1/marketing/posts" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…"
}'const res = await fetch("https://api.firmado.app/v1/marketing/posts", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/marketing/posts",
headers={"X-Api-Key": "fmd_..."},
json={
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/marketing/posts");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…"
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/marketing/posts")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…"
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/marketing/posts", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/marketing/posts"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…"
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/marketing/posts");
request.Content = new StringContent(""""
{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Réponse (201), avec des valeurs d’exemple :
{
"connections": [
{
"channel": "…",
"enabled": true,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"label": "…"
}
],
"data": [
{
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createContacts": true,
"createdAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"endsAt": "2026-11-21T14:00:00.000Z",
"engagement": {},
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"includeExisting": true,
"keywords": [],
"like": true,
"nextScanAt": "2026-11-21T14:00:00.000Z",
"oncePerUser": true,
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"permalink": "https://example.com",
"planBlocked": true,
"postId": "…",
"privateReply": "…",
"publicReply": "…",
"scanAfter": null,
"scanError": null,
"startsAt": "2026-11-21T14:00:00.000Z",
"title": "…"
}
],
"limit": 1
}DELETE/v1/marketing/posts/{id}
Supprime une automatisation de commentaires.
Supprimer/posts/{id}En cas de succès : 200.Permission : Supprimer.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Réponse
33 champs
| Champ | Type | Toujours présent |
|---|---|---|
connections | array of object | Oui |
connections[].channel | string | Oui |
connections[].enabled | boolean | Oui |
connections[].id | string (uuid) | Oui |
connections[].label | string | Oui |
data | array of object | Oui |
data[].connectionId | string (uuid) | Oui |
data[].createContacts | boolean | Oui |
data[].createdAt | string (date-time) | Oui |
data[].enabled | boolean | Oui |
data[].endsAt | string (date-time) | Oui |
data[].engagement | object | Oui |
data[].engagement.error | null dans les exemples | Oui |
data[].engagement.fetchedAt | null dans les exemples | Oui |
data[].engagement.metrics | null dans les exemples | Oui |
data[].engagement.nextFetchAt | string (date-time) | Oui |
data[].id | string (uuid) | Oui |
data[].includeExisting | boolean | Oui |
data[].keywords | array of any | Oui |
data[].like | boolean | Oui |
data[].nextScanAt | string (date-time) | Oui |
data[].oncePerUser | boolean | Oui |
data[].organizationId | string (uuid) | Oui |
data[].permalink | string (uri) | Oui |
data[].planBlocked | boolean | Oui |
data[].postId | string | Oui |
data[].privateReply | string | Oui |
data[].publicReply | string | Oui |
data[].scanAfter | null dans les exemples | Oui |
data[].scanError | null dans les exemples | Oui |
data[].startsAt | string (date-time) | Oui |
data[].title | string | Oui |
limit | integer | Oui |
Exemple
curl -X DELETE "https://api.firmado.app/v1/marketing/posts/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/marketing/posts/{id}", {
method: "DELETE",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.delete(
"https://api.firmado.app/v1/marketing/posts/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/marketing/posts/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/marketing/posts/{id}")
req = Net::HTTP::Delete.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("DELETE", "https://api.firmado.app/v1/marketing/posts/{id}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/marketing/posts/{id}"))
.header("X-Api-Key", "fmd_...")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://api.firmado.app/v1/marketing/posts/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Réponse (200), avec des valeurs d’exemple :
{
"limit": 1,
"data": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"connectionId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postId": "…",
"title": "…",
"permalink": "https://example.com",
"enabled": true,
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"like": true,
"publicReply": "…",
"privateReply": "…",
"keywords": [],
"createContacts": true,
"includeExisting": true,
"oncePerUser": true,
"scanAfter": null,
"nextScanAt": "2026-11-21T14:00:00.000Z",
"scanError": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"planBlocked": true,
"engagement": {}
}
],
"connections": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"channel": "…",
"label": "…",
"enabled": true
}
]
}PUT/v1/marketing/posts/{id}
Modifie une automatisation de commentaires, ou la met en pause.
Modifier/posts/{id}En cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
enabled | boolean | Non | default true |
startsAt | string (date-time) | Oui | |
endsAt | string (date-time) | Oui | |
like | boolean | Non | default false |
publicReply | string | null | Non | default null |
privateReply | string | null | Non | default null |
keywords | array of string | Non | max items 30 |
createContacts | boolean | Non | default false |
includeExisting | boolean | Non | default false |
oncePerUser | boolean | Non | default true |
Exemple
curl -X PUT "https://api.firmado.app/v1/marketing/posts/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"like": false
}'const res = await fetch("https://api.firmado.app/v1/marketing/posts/{id}", {
method: "PUT",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"like": false
}),
})
const data = await res.json()import requests
res = requests.put(
"https://api.firmado.app/v1/marketing/posts/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"enabled": True,
"like": False,
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/marketing/posts/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"like": false
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/marketing/posts/{id}")
req = Net::HTTP::Put.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"like": false
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"like": false
}`)
req, _ := http.NewRequest("PUT", "https://api.firmado.app/v1/marketing/posts/{id}", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/marketing/posts/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("""
{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"like": false
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("PUT"), "https://api.firmado.app/v1/marketing/posts/{id}");
request.Content = new StringContent(""""
{
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"enabled": true,
"like": false
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/marketing/posts/{id}/logs
Ce qu’a fait une automatisation de commentaires : commentaires vus, réponses et messages envoyés.
Lire/posts/{id}/logsEn cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Exemple
curl -X GET "https://api.firmado.app/v1/marketing/posts/{id}/logs" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/marketing/posts/{id}/logs", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/marketing/posts/{id}/logs",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/marketing/posts/{id}/logs");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/marketing/posts/{id}/logs")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/marketing/posts/{id}/logs", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/marketing/posts/{id}/logs"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/marketing/posts/{id}/logs");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/marketing/posts/accounts/{id}/posts
Les publications récentes d’un compte connecté, pour en choisir une pour l’automatisation.
Lire/posts/accounts/{id}/postsEn cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Réponse
5 champs
| Champ | Type | Toujours présent |
|---|---|---|
data | array of object | Oui |
data[].id | string | Oui |
data[].permalink | string (uri) | Oui |
data[].title | string | Oui |
next | null dans les exemples | Oui |
Exemple
curl -X GET "https://api.firmado.app/v1/marketing/posts/accounts/{id}/posts" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/marketing/posts/accounts/{id}/posts", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/marketing/posts/accounts/{id}/posts",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/marketing/posts/accounts/{id}/posts");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/marketing/posts/accounts/{id}/posts")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/marketing/posts/accounts/{id}/posts", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/marketing/posts/accounts/{id}/posts"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/marketing/posts/accounts/{id}/posts");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Réponse (200), avec des valeurs d’exemple :
{
"data": [
{
"id": "…",
"title": "…",
"permalink": "https://example.com"
}
],
"next": null
}Événements de webhook
Les changements de cette fonctionnalité que les webhooks peuvent envoyer.
post_automation.createdCréerpost_automation.updatedModifierpost_automation.deletedSupprimer