Exemple #1
0
        public void RevokeAccount(IYoutubeAccountContainer container, IYoutubeAccount account)
        {
            LOGGER.Info($"Revoking connecgtion to account with id: {account.Id} and title: '{account.Title}'");

            YoutubeAccountService.RevokeAccessOfAccount(account);
            container.UnregisterAccount(account);
        }
Exemple #2
0
 public static string GetActiveToken(this IYoutubeAccount account)
 {
     LOGGER.Debug($"Returning active access token for account with id: {account.Id} and title: '{account.Title}'");
     return(YoutubeAccountService.GetAccessToken(account));
 }
Exemple #3
0
 public static string GetActiveToken(this IList <IYoutubeAccountAccess> access)
 {
     LOGGER.Debug($"Returning active access token for one of {access.Count} accesses");
     return(YoutubeAccountService.GetAccessToken(access));
 }