Пример #1
0
        static void Main(string[] args)
        {
            var api     = new Vzaar("skitsanos", "abfDnd3DVI71jQ7dTtz9mHA953XeIQeodmZvSE6AbTX8");
            var details = api.getUserDetails("skitsanos");

            Console.WriteLine("Videos owned: " + details.videoCount);
            Console.WriteLine("Storage used: " + String.Format(new FileSizeFormatProvider(), "File size: {0:fs}", details.videosTotalSize));
            Console.WriteLine("Bandwidth this month: " + String.Format(new FileSizeFormatProvider(), "File size: {0:fs}", details.bandwidthThisMonth));
        }
Пример #2
0
        static void Main(string[] args)
        {
            var api     = new Vzaar("username", "token");
            var details = api.getUserDetails("skitsanos");

            Console.WriteLine("Videos owned: " + details.videoCount);
            Console.WriteLine("Storage used: " + String.Format(new FileSizeFormatProvider(), "File size: {0:fs}", details.videosTotalSize));
            Console.WriteLine("Bandwidth this month: " + String.Format(new FileSizeFormatProvider(), "File size: {0:fs}", details.bandwidthThisMonth));
        }