渠道管理/授权

获取授权状态

Changed on

接口说明:轮询平台授权 Session 状态。sessionId 必须使用发起平台授权成功响应中的 data.sessionId,不能自行生成或跨授权会话复用。

get/api/v2/channels/accounts/auth/{platform}/status/{sessionId}

Request

Path parameters

platform'douyin' | 'xhs' | 'wxSph' | 'KWAI' | 'wxGzh' | 'bilibili' required
Example:douyin

授权平台。必须与发起授权时使用的 platform 一致。可选值:douyin、xhs、wxSph、KWAI、wxGzh、bilibili。

sessionIdstring required
Example:session-id-from-auth-start

发起平台授权接口成功响应中的 data.sessionId

Response

请求已被服务处理。业务是否成功以响应体 code === 0 为准。

codeinteger required

业务状态码。0 表示成功,非 0 表示业务错误。

messagestring required

响应消息。

requestIdstring

请求 ID。

timestampinteger

错误响应时间戳,Unix 毫秒。

Changes

    • breaking

      the path request parameter platform was restricted to a list of enum values

    • breaking

      the response property / became optional for the status

    • breaking

      the response property / became optional for the status

    • breaking

      the response property / became optional for the status

    • breaking

      the / response's property format changed from date-time to no format for status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      added the new enum value KWAI to the path request parameter platform

    • info

      added the new enum value bilibili to the path request parameter platform

    • info

      added the new enum value douyin to the path request parameter platform

    • info

      added the new enum value wxGzh to the path request parameter platform

    • info

      added the new enum value wxSph to the path request parameter platform

    • info

      added the new enum value xhs to the path request parameter platform

    • info

      removed the completed enum value from the / response property for the response status

    • info

      removed the failed enum value from the / response property for the response status

    • info

      removed the pending enum value from the / response property for the response status