使用c#下载google fusion table

时间:2014-03-03 10:41:29

标签: google-fusion-tables

我正在尝试使用C#而不是.NET以编程方式下载Fusion表。我无法找到合适的API或C#示例代码。这甚至可能吗?

HttpWebRequest request = WebRequest.Create(this.url2 + "?sql=SELECT * FROM 'table id'") as HttpWebRequest;

request.Method = "GET";
request.Headers.Add("Authorization", "GoogleLogin auth=" + this.token);
// Get response
using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)
{
    // Get the response stream
    StreamReader reader = new StreamReader(response.GetResponseStream());
    // Console application output
    return reader.ReadToEnd();
}

我做错了什么?

0 个答案:

没有答案