示例#1
0
        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));
        }
示例#2
0
        public static JsApiTicketResult GetTicket(string appId, string secret, string type = "jsapi")
        {
            var accessToken = AccessTokenContainer.TryGetAccessToken(appId, secret);

            return(GetTicketByAccessToken(accessToken, type));
        }