门店列出已连接账号

门店

列出已连接账号

列出门店已连接的网络,不含令牌或网络密钥,只提供为账号命名并在发布时选作 accountId 所需的全部信息。

GEThttps://api.sofia-post.com/api/v1/establishments/{id}/accounts
GET/v1/establishments/{id}/accounts
curl -X GET 'https://api.sofia-post.com/api/v1/establishments/{id}/accounts' \
  -H "Authorization: Bearer $SOFIA_API_KEY"

授权

  • Authorizationstring必填

    你的个人密钥或 OAuth 访问令牌,以 Bearer <token> 发送。

路径参数

  • idstring必填

    门店的标识符。

响应

200application/json

门店已连接的账号。

  • dataobject[]必填

    已连接的账号

    显示子属性
    • idstring必填

      账号的标识符,传给帖子的 accountId

    • platformstring必填

      账号所在的网络

    • statusstring必填

      账号的连接状态

    • handlestring

      账号在网络上的用户名

    • namestring

      账号的显示名称

    • avatarUrlstring

      账号头像的地址

401

令牌缺失、未知、已过期或已被撤销。

403

令牌没有 accounts:read scope。

404

不在令牌所属 Workspace 内的门店。

4XXapplication/json

其他任何错误,以错误结构返回。