Synup
Créer une clé
v1Ressources/Social Inbox/postHide, unhide or delete a comment

Hide, unhide or delete a comment

Hides a comment (it stays on the network but out of public view; unhide undoes it) or deletes it from the network. Deleting cannot be undone: the inbox keeps the row, marked deleted, and resolves it. Each works only where the network allows it. To ban a YouTube commenter use the youtube endpoint.

post/api/v1/inbox/{kind}/{id}/moderate
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.
Corps de la requête
actionstring (hide | unhide | delete)obligatoire
What to do to the comment.
Réponse
dataobjectfacultatif
okbooleanfacultatif
True when the request succeeded.
actionstringfacultatif
The action that was applied.
changedbooleanfacultatif
False when the comment was already in that state.
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}/moderate
Votre clé API
kind *
id *
Corps de la requête*
{
  "data": {
    "ok": true,
    "action": "hide",
    "changed": true
  }
}

Vous débutez avec l'API Synup ?