Class TikTokShopLegacyClientExecuteAuthExtensions
- Assembly
- DH.SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop.dll
[Obsolete("此类型专为旧版 API 设计,将于 2024-12-31 下线。")]
public static class TikTokShopLegacyClientExecuteAuthExtensions
- Inheritance
-
TikTokShopLegacyClientExecuteAuthExtensions
- Inherited Members
Methods
ExecuteAuthGetTokenAsync(TikTokShopLegacyClient, AuthGetTokenRequest, CancellationToken)
异步调用 [GET] /token/get 接口。
REF:
https://partner.tiktokshop.com/doc/page/261250
public static Task<AuthGetTokenResponse> ExecuteAuthGetTokenAsync(this TikTokShopLegacyClient client, AuthGetTokenRequest request, CancellationToken cancellationToken = default)
Parameters
clientTikTokShopLegacyClientrequestAuthGetTokenRequestcancellationTokenCancellationToken
Returns
ExecuteAuthRefreshTokenAsync(TikTokShopLegacyClient, AuthRefreshTokenRequest, CancellationToken)
异步调用 [GET] /token/refresh 接口。
REF:
https://partner.tiktokshop.com/doc/page/261250
https://partner.tiktokshop.com/doc/page/262967
public static Task<AuthRefreshTokenResponse> ExecuteAuthRefreshTokenAsync(this TikTokShopLegacyClient client, AuthRefreshTokenRequest request, CancellationToken cancellationToken = default)
Parameters
clientTikTokShopLegacyClientrequestAuthRefreshTokenRequestcancellationTokenCancellationToken