Pinhere/authorizeExtension

暂不支持在线调用 · 原因见下方

PinherePinhere 缺陷协作 API

POST/oauth/extension/authorize

授权浏览器扩展

网站 Session 为允许的 chromiumapp.org 回调签发五分钟有效的一次性 PKCE 授权码。

Pinhere 项目、Origin、缺陷、私有截图、Webhook、PAT 与 Chrome 扩展 OAuth API;覆盖固定 PontxSpec 中全部 34 个 Endpoint。Hub 提供文档和本地 SDK/CLI,不代理任何请求。

请求

operationId
authorizeExtension
服务器
https://pinhere-jasonhzqs-projects.vercel.app/api/v1
认证
pinherePat, websiteSession, extensionOAuth

请求参数

无 URL、查询或 Header 参数。

Body 参数

OAuthAuthorizeInput必填

Content-Type: application/json

字段: redirectUricodeChallenge

响应

200

objectapplication/json

包含一次性授权码的回调 URL。

字段: data

422

ErrorResponseapplication/json

回调 URL 不允许。

字段: error

default

ErrorResponseapplication/json

标准错误响应。

字段: error

{
  "data": {
    "redirectUrl": "https://example.chromiumapp.org/callback?code=redacted"
  }
}