申请access_token
line1
line1
POST
/api/v1/user/oauth/issue-token
{
"statusCode": 401,
"message": "Incorrect OhMyGPT OAuth token provided. Please try to re-authenticate with the OAuth provider.",
"errorType": "oauth_invalid_token_error",
"data": null
}
errorType
为 oauth_invalid_token_error
即证明此Token无效,可丢弃此Token并要求用户重新授权{
"statusCode": 402,
"message": "User balance is insufficient, your request has been rejected, please recharge in time at https://www.ohmygpt.com/pay .",
"errorType": "insufficient_balance_error",
"data": null
}
请求参数
Body 参数application/x-www-form-urlencoded
client_id
string
可选
示例值:
6680e0785ffd0e948c705db7
client_secret
string
可选
示例值:
TREAHK4hnqEmST4YjD8Ki8338HyrmEDc
code
string
可选
示例值:
code
示例代码
返回响应
修改于 2024-07-11 04:00:26