v1Recursos/Connections/getGet what an account can do

Get what an account can do

Says what a connected account can do and, when it cannot, why and what a person has to do. Pass connectionId for one account, clientId for every account of a client, or platform for a network in general. Per operation (publish, edit, delete, read insights and comments, reply, like, hide, delete a comment, private reply, and review reads and replies) it returns allowed and, when not, a reason (unsupported, needs_reconnect, not_connected, suspended or not_offered), a prerequisite and whether a person has to act. Read-only; it never returns credentials.

get/api/v1/connections/capabilities
connections:read
Parámetros de consulta
connectionIdstringopcional
One account, from the connections list.
clientIdstringopcional
Every account connected for this client.
platformstringopcional
A network's own capabilities, without an account, for example instagram.
limitintegeropcional
Accounts per call when using clientId, 1 to 100.
Respuesta
dataobjectopcional
kindstringopcional
accounts, or platform when only a platform was asked about.
accountsarray of objectopcional
For accounts: each with its connection, status and operations.
totalintegeropcional
For accounts: how many accounts there are.
platformstringopcional
For a platform: its key.
operationsobjectopcional
For a platform: the operations, each with allowed and details.
Errores
400A la solicitud le falta un parámetro obligatorio o es inválida de otra forma.
401La clave de API falta, es inválida, expiró o fue revocada.
403A la clave le falta el permiso requerido, o no está autorizada para este cliente/ubicación.
404El recurso no se encontró, o no pertenece a su agencia.
429Demasiadas solicitudes. Reintente tras el número de segundos indicado en el encabezado Retry-After.
get/api/v1/connections/capabilities
Su clave de API
connectionId
clientId
platform
limit
{
  "data": {
    "kind": "accounts",
    "accounts": [
      {
        "connectionId": "conn_123",
        "platform": "facebook",
        "label": "Facebook",
        "displayName": "Acme Dental",
        "clientId": "cli_123",
        "clientLocationId": null,
        "connectionStatus": "CONNECTED",
        "operations": {
          "publish": {
            "allowed": true,
            "details": {
              "postTypes": [
                "announcement"
              ],
              "captionLimit": 30000,
              "captionRequired": true,
              "mediaRequired": false
            }
          },
          "like_comment": {
            "allowed": true
          },
          "private_reply": {
            "allowed": true,
            "details": {
              "oncePerComment": true,
              "windowDays": 7
            }
          },
          "delete_comment": {
            "allowed": true
          },
          "reply_review": {
            "allowed": true
          }
        }
      }
    ],
    "total": 1
  }
}

Guías que usan este recurso