Hi,
it's nearly useless to give you sample code if you don't understand what technology is used by Google.
As mentioned by google, the fusion api is build on http and json,so you should be fimilar with
GET
and
POST
Methods.
For a starting point, to use this API you have to work with
HttpWebResponse
and
HttpWebRequest
Methods in C#.
Example code POST:
private String executeUpdate(String query, String token) {
string sdata = "sql=" + HttpUtility.UrlEncode(query);
ASCIIEncoding encoding = new ASCIIEncoding();
byte[] data = encoding.GetBytes(sdata);
HttpWebRequest req = (HttpWebRequest)
WebRequest.Create("http://tables.googlelabs.com/api/query");
req.Method = "POST";
req.ContentType="application/x-www-form-urlencoded";
req.ContentLength = data.Length;
req.Headers.Add("Authorization: GoogleLogin auth=" + token);
Stream sout = req.GetRequestStream();
sout.Write(data, 0, data.Length);
sout.Close();
try {
HttpWebResponse res = (HttpWebResponse) req.GetResponse();
StreamReader stIn = new StreamReader(res.GetResponseStream());
return stIn.ReadToEnd();
} catch (WebException e) {
StreamReader stIn = new StreamReader(e.Response.GetResponseStream());
return stIn.ReadToEnd();
}
}
See googles fusion libs
here.
Cheers