Exemple #1
0
        public async static Task MainAsync()
        {
            using (var client = new PandoraClient())
            {
                await client.PartnerLogin();

                Console.WriteLine("Succesfully logged in.");
            }
        }
Exemple #2
0
        public async static Task MainAsync()
        {
            using (var client = new PandoraClient())
            {
                await client.PartnerLogin();

                string username = PandoraHelpers.Username;
                string password = PandoraHelpers.Password;
                await client.UserLogin(username, password);
            }
        }
Exemple #3
0
        public async static Task MainAsync(string[] args)
        {
            Console.WriteLine("Determining if Pandora is available in your country...");
            Console.WriteLine();

            // test.checkLicensing seems to only work with HTTP URIs
            string endpoint    = PandoraEndpoints.Tuner.HttpUri;
            var    partnerInfo = PandoraEndpoints.Tuner.iOS;

            using (var client = new PandoraClient(endpoint, partnerInfo))
            {
                Console.WriteLine(await client.CheckLicensing());
            }
        }
Exemple #4
0
        public async static Task <PandoraClient> Login()
        {
            var client = new PandoraClient();

            try
            {
                await client.Login(Username, Password).ConfigureAwait(false);

                return(client);
            }
            catch
            {
                client.Dispose();
                throw;
            }
        }