예제 #1
0
        public VimeoChannelsResponse GetUserChannels(string name)
        {
            HttpWebResponse response = SocialUtils.DoHttpGetRequest("http://vimeo.com/api/v2/" + name + "/channels.xml");

            if (response.StatusCode == HttpStatusCode.OK)
            {
                return(VimeoChannelsResponse.Parse(XElement.Parse(response.GetAsString())));
            }
            throw new VimeoException(response.GetAsString());
        }
예제 #2
0
 public VimeoChannelsResponse GetAll(string username, VimeoChannelsSort sort, int page, int perPage)
 {
     return(VimeoChannelsResponse.Parse(JsonConverter.ParseObject(Raw.GetAll(username, sort, page, perPage))));
 }
예제 #3
0
 public VimeoChannelsResponse GetAll(string username)
 {
     return(VimeoChannelsResponse.Parse(JsonConverter.ParseObject(Raw.GetAll(username))));
 }
예제 #4
0
        // TODO: Implement method: ??? AddVideo(string channelId, int videoId)

        #endregion

        #region Method: vimeo.channels.getAll

        public VimeoChannelsResponse GetAll()
        {
            return(VimeoChannelsResponse.Parse(JsonConverter.ParseObject(Raw.GetAll())));
        }