public static async Task <JsApiTicketResult> GetTicketAsync(string appId, string secret, string type = "jsapi") { var accessToken = await AccessTokenContainer.TryGetAccessTokenAsync(appId, secret).ConfigureAwait(false); return(GetTicketByAccessToken(accessToken, type)); }
public static JsApiTicketResult GetTicket(string appId, string secret, string type = "jsapi") { var accessToken = AccessTokenContainer.TryGetAccessToken(appId, secret); return(GetTicketByAccessToken(accessToken, type)); }