/// <summary>
 /// Makes a HTTP GET request to the specified <code>url</code>.
 /// </summary>
 /// <param name="url">The URL of the request.</param>
 /// <param name="query">The query string of the request.</param>
 /// <returns>Returns an instance of <see cref="SocialHttpResponse"/> representing the response.</returns>
 public static SocialHttpResponse DoHttpGetRequest(string url, SocialQueryString query)
 {
     return(DoHttpRequest(url, SocialHttpMethod.Get, query, null));
 }
 /// <summary>
 /// Makes a HTTP GET request to the specified <code>url</code>.
 /// </summary>
 /// <param name="url">The URL of the request.</param>
 /// <param name="query">The query string of the request.</param>
 /// <param name="postData">The POST data of the request.</param>
 /// <returns>Returns an instance of <see cref="SocialHttpResponse"/> representing the response.</returns>
 public static SocialHttpResponse DoHttpPostRequest(string url, SocialQueryString query, SocialPostData postData)
 {
     return(DoHttpRequest(url, SocialHttpMethod.Post, query, postData));
 }
            /// <summary>
            /// Makes a HTTP request using the specified <code>url</code> and <code>method</code>.
            /// </summary>
            /// <param name="url">The URL of the request.</param>
            /// <param name="method">The HTTP method of the request.</param>
            /// <param name="query">The query string of the request.</param>
            /// <param name="postData">The POST data of the request.</param>
            /// <returns>Returns an instance of <see cref="SocialHttpResponse"/> representing the response.</returns>
            private static SocialHttpResponse DoHttpRequest(string url, SocialHttpMethod method, SocialQueryString query, SocialPostData postData)
            {
                // Initialize the request
                SocialHttpRequest request = new SocialHttpRequest {
                    Url         = url,
                    Method      = method,
                    QueryString = query,
                    PostData    = postData
                };

                // Make the call to the URL
                return(request.GetResponse());
            }