Exemple #1
0
        public static void Main(string[] args)
        {
            Ziggeo ziggeo = new Ziggeo("APP_TOKEN", "PRIVATE_KEY", "ENCRYPTION_KEY");

            dynamic AllVideos = JsonConvert.DeserializeObject(ziggeo.videos().index());

            if (AllVideos != null)
            {
                foreach (var item in AllVideos)
                {
                    dynamic videoToDownload = JsonConvert.DeserializeObject(ziggeo.videos().get(item.token));

                    string file_extension = videoToDownload.defaultstream.video_type;

                    string file_name = videoToDownload.defaultstream.video_token + "." + file_extension;


                    System.Console.WriteLine("downloading" + file_name);


                    var file_content = ziggeo.videos().download_video(videoToDownload);

                    string file_path = "your file path" + file_name;

                    File.WriteAllText(file_path, (file_content));
                }
            }
        }
        public static void Main(string[] args)
        {
            Ziggeo ziggeo = new Ziggeo("APP_TOKEN", "PRIVATE_KEY", "ENCRYPTION_KEY");

            dynamic videoToDownload = JsonConvert.DeserializeObject(ziggeo.videos().get("Video_TOKEN"));

            string file_extension = videoToDownload.originalstream.video_type;

            string file_name = videoToDownload.originalstream.video_token + "." + file_extension;

            var file_content = ziggeo.videos().download_video(videoToDownload);

            string file_path = "your file path" + file_name;

            File.WriteAllText(file_path, file_content);
        }
        public static void Main(string[] args)
        {
            Ziggeo ziggeo = new Ziggeo("APP_TOKEN", "PRIVATE_KEY", "ENCRYPTION_KEY");

            string VIDEO_TOKEN = "YOUR_VIDEO_TOKEN";

            System.Console.WriteLine("Deleting" + VIDEO_TOKEN);

            ziggeo.videos().delete("Video_TOKEN");
        }
Exemple #4
0
        public static void Main(string[] args)
        {
            Ziggeo ziggeo = new Ziggeo("APP_TOKEN", "PRIVATE_KEY", "ENCRYPTION_KEY");

            dynamic AllVideos = JsonConvert.DeserializeObject(ziggeo.videos().index());

            if (AllVideos != null)
            {
                foreach (var item in AllVideos)
                {
                    dynamic videoToDelete = JsonConvert.DeserializeObject(ziggeo.videos().get(item.token));

                    String file_name = videoToDelete.defaultstream.video_token;

                    System.Console.WriteLine("Deleting" + file_name);

                    ziggeo.videos().delete(item.token);
                }
            }
        }