public VimeoChannel GetChannelInfo(string name) { HttpWebResponse response = SocialUtils.DoHttpGetRequest("http://vimeo.com/api/v2/channel/" + name + "/info.xml"); if (response.StatusCode == HttpStatusCode.OK) { return(VimeoChannel.ParseMultiple(XElement.Parse(response.GetAsString())).FirstOrDefault()); } throw new VimeoException(response.GetAsString()); }
public static VimeoChannelsResponse Parse(XElement xChannels) { if (xChannels == null || xChannels.Name != "channels") { return(null); } return(new VimeoChannelsResponse { Channels = VimeoChannel.ParseMultiple(xChannels) ?? new VimeoChannel[0], XElement = xChannels }); }