Esempio n. 1
0
 internal static Dictionary<String, String> GetTokens(Boolean OnUserBehalf, Account NetflixAccount, out String TokenSecret)
 {
     Dictionary<String, String> extraParams = new Dictionary<String, String>();
     TokenSecret = "";
     if (OnUserBehalf)
     {
         if (NetflixAccount != null)
         {
             TokenSecret = NetflixAccount.TokenSecret;
             extraParams.Add("oauth_token", NetflixAccount.Token);
         }
     }
     return extraParams;
 }
Esempio n. 2
0
        public async Task<List<Title>> GetDiscs(String NetflixId, Account NetflixAccount, Boolean OnUserBehalf = true, NetflixType? TitleType = null)
        {
            Login.CheckInformationSet();
            String TokenSecret;
            Dictionary<String, String> extraParams = Fill.GetTokens(OnUserBehalf, NetflixAccount, out TokenSecret);

            return await GetDiscs(NetflixId, extraParams, TokenSecret, TitleType);
        }