{
"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
}
curl --location --request POST 'https://cn2us02.opapi.win/api/v1/user/oauth/issue-token' \
--data-urlencode 'client_id=6680e0785ffd0e948c705db7' \
--data-urlencode 'client_secret=TREAHK4hnqEmST4YjD8Ki8338HyrmEDc' \
--data-urlencode 'code=code'
{
"statusCode": 200,
"message": "Issue OAuth Token success",
"data": {
"user_id": "888",
"client_id": "6681463833ebdbb2566d1def",
"token": "omg-oat-v1-VVfxxxx4BG6xaxxxxrnS"
}
}