Exemplo n.º 1
0
 static void Main(string[] args)
 {
     string email = "EMAIL";
     string password = "******";
     string jdDeviceName = "DIVCE_NAME";
     var link = "DOWNLOAD_LINK";
     string package = "PACKAGE_NAME";
     var jDownloader = new JDownloader();
     Console.WriteLine("Connect:" + jDownloader.Connect(email, password));
     Console.WriteLine("EnumerateDevices:" + jDownloader.EnumerateDevices());
     foreach (var device in jDownloader.Devices)
     {
         Console.WriteLine("{0}:{1}", device.Name, device.Id);
     }
     var yourdevice = jDownloader.Devices.FirstOrDefault(x => x.Name == jdDeviceName);
     Console.WriteLine("AddLinks:" + jDownloader.AddLink(yourdevice, link, package));
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            string email        = "EMAIL";
            string password     = "******";
            string jdDeviceName = "DIVCE_NAME";
            var    link         = "DOWNLOAD_LINK";
            string package      = "PACKAGE_NAME";
            var    jDownloader  = new JDownloader();

            Console.WriteLine("Connect:" + jDownloader.Connect(email, password));
            Console.WriteLine("EnumerateDevices:" + jDownloader.EnumerateDevices());
            foreach (var device in jDownloader.Devices)
            {
                Console.WriteLine("{0}:{1}", device.Name, device.Id);
            }
            var yourdevice = jDownloader.Devices.FirstOrDefault(x => x.Name == jdDeviceName);

            Console.WriteLine("AddLinks:" + jDownloader.AddLink(yourdevice, link, package));
        }