예제 #1
0
        /// <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);
        }
예제 #2
0
        public XmlElement GetElementFromResponse(string response)
        {
            XmlElement element = RestExtension.Parse(response);

            return(element.ValidateResponse());
        }
예제 #3
0
 public XmlElement GetResponseElement(XmlReader reader)
 {
     return(RestExtension.Load(reader).ValidateResponse());
 }