/// <summary> /// Sends a request xml request to flickr for specified url. /// </summary> /// <param name="response"></param> /// <exception cref="FlickrException">Throws exception for invalid response.</exception> /// <returns>Xml element containing response from server.</returns> public XmlElement SendPostRequest(string url) { string responseFromServer = webRequest.DoHttpPost(url); XmlElement element = RestExtension.Parse(responseFromServer); element.ValidateResponse(); return(element); }
public XmlElement GetElementFromResponse(string response) { XmlElement element = RestExtension.Parse(response); return(element.ValidateResponse()); }
public XmlElement GetResponseElement(XmlReader reader) { return(RestExtension.Load(reader).ValidateResponse()); }