如何使用现有的 eBay 令牌获取 eBay 令牌的到期日期

How to get eBay token expiry date using existing eBay token

我有一个 auth_token 的 eBay,我想获取此令牌的到期日期。

我知道它重复的问题,但没有为该问题提供答案:

调用 GetTokenStatus。只要您在请求的 RequesterCredentials.eBayAuthToken 字段中传递了令牌,就可以通过读取响应中的 ExpirationTime 字段来获取到期日期和时间。

另一种获取相同信息的方法是通过 HardExpirationWarning field that is returned in some of the API operations. For example AddItem。此信息将在令牌到期前的 7 天内返回。