Esempio n. 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");

            string VIDEO_TOKEN = "YOUR_VIDEO_TOKEN";

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

            ziggeo.videos().delete("Video_TOKEN");
        }
    static JObject CreateZiggeoToken()
    {
        Ziggeo ziggeo = new Ziggeo("APP_TOKEN", "PRIVATE_KEY", "ENCRYPTION_KEY");

        Dictionary <string, string> dict = new Dictionary <string, string>()
        {
            { "session_limit", "1" },
            { "usage_expiration_time", "100" },
            { "grants", "{\"read\":{\"all\": true}}" }
        };

        Console.Write(string.Join(" ", dict));

        return(ziggeo.authtokens().create(dict));
    }
        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);
        }
Esempio n. 5
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);
                }
            }
        }
Esempio n. 6
0
 public ZiggeoConnect(Ziggeo application)
 {
     this.application = application;
 }
 public ZiggeoAuth(Ziggeo application)
 {
     this.application = application;
 }
 public ZiggeoStreams(Ziggeo application) {
     this.application = application;
 }
 public ZiggeoVideos(Ziggeo application)
 {
     this.application = application;
 }
Esempio n. 10
0
 public ZiggeoEffectProfileProcess(Ziggeo application)
 {
     this.application = application;
 }
 public ZiggeoAuthtokens(Ziggeo application)
 {
     this.application = application;
 }
Esempio n. 12
0
 public ZiggeoConnect(Ziggeo application)
 {
     this.application = application;
 }
 public ZiggeoAuthtokens(Ziggeo application) {
     this.application = application;
 }
 public ZiggeoVideos(Ziggeo application) {
     this.application = application;
 }
 public ZiggeoStreams(Ziggeo application)
 {
     this.application = application;
 }