Ejemplo n.º 1
0
        //.getContactsUploaded
#if DEPRECATED
        public Videos vimeo_videos_getContactsUploaded(bool full_response, int? page, int? per_page, VideosSortMethod sortMethod, string user_id)
        {
            Dictionary<string, string> parameters = new Dictionary<string, string>{
                {"full_response", full_response ? "1" : "0"}};
            if (page.HasValue) parameters.Add("page", page.Value.ToString());
            if (per_page.HasValue) parameters.Add("per_page", per_page.Value.ToString());
            if (sortMethod != VideosSortMethod.Default)
                parameters.Add("sort", sortMethod == VideosSortMethod.Newest ? "newest" :
                sortMethod == VideosSortMethod.Oldest ? "oldest" :
                sortMethod == VideosSortMethod.MostPlayed ? "most_played" :
                sortMethod == VideosSortMethod.MostCommented ? "most_commented" :
                sortMethod == VideosSortMethod.MostLiked ? "most_liked" : "");
            parameters.Add("user_id", user_id);
            var x = ExecuteGetRequest("vimeo.videos.getContactsUploaded", parameters);
            if (!IsResponseOK(x)) return null;
            return Videos.FromElement(x.Element("rsp").Element("videos"), full_response);
        }
Ejemplo n.º 2
0
 //.search
 public Videos vimeo_videos_search(bool full_response, int? page, int? per_page, string query, VideosSortMethod sortMethod, string user_id)
 {
     Dictionary<string, string> parameters = new Dictionary<string, string>{
         {"full_response", full_response ? "1" : "0"},
         {"query", query}};
     if (page.HasValue) parameters.Add("page", page.Value.ToString());
     if (per_page.HasValue) parameters.Add("per_page", per_page.Value.ToString());
     if (!string.IsNullOrEmpty(user_id)) parameters.Add("user_id", user_id);
     if (sortMethod != VideosSortMethod.Default)
         parameters.Add("sort", sortMethod == VideosSortMethod.Newest ? "newest" :
         sortMethod == VideosSortMethod.Oldest ? "oldest" :
         sortMethod == VideosSortMethod.MostPlayed ? "most_played" :
         sortMethod == VideosSortMethod.MostCommented ? "most_commented" :
         sortMethod == VideosSortMethod.MostLiked ? "most_liked" : 
         sortMethod == VideosSortMethod.SearchRelevant ? "relevant" : "");
     
     var x = ExecuteGetRequest("vimeo.videos.search", parameters);
     if (!IsResponseOK(x)) return null;
     return Videos.FromElement(x.Element("rsp").Element("videos"), full_response);
 }
Ejemplo n.º 3
0
 public Videos vimeo_videos_getAll(string user_id, bool full_response=false, VideosSortMethod sortMethod=VideosSortMethod.Default, int? page=null, int? per_page=null)
 {
     return vimeo_videos_getAll(full_response, page, per_page, sortMethod, user_id);
 }