Synup
Créer une clé
v1Ressources/Social Inbox/postLike a comment

Like a comment

Likes a comment as the business's Page or account. It works only where the network allows it (Facebook and X comments); elsewhere it is refused with the reason, and the item's actions say so beforehand. Liking a liked comment answers success with changed false.

post/api/v1/inbox/{kind}/{id}/like
inbox:write
Paramètres de requête
kindstring (comment | message | mention)obligatoire
The kind of item: a comment, a direct message conversation or a mention.
idstringobligatoire
The item's id, from the inbox list.
Réponse
dataobjectfacultatif
okbooleanfacultatif
True when the request succeeded.
likedbooleanfacultatif
True after liking.
changedbooleanfacultatif
False when it was already liked.
Erreurs
400Il manque un paramètre requis à la requête, ou elle est invalide.
401Clé API manquante, invalide, expirée ou révoquée.
403La clé n'a pas la permission requise, ou n'est pas autorisée pour ce client/établissement.
404La ressource est introuvable, ou n'appartient pas à votre agence.
429Trop de requêtes. Réessayez après le nombre de secondes indiqué dans l'en-tête Retry-After.
post/api/v1/inbox/{kind}/{id}/like
Votre clé API
kind *
id *
{}

Vous débutez avec l'API Synup ?