Hey Antoine,

We don't publish a C client library for this API, but you should have no
problem making these requests using libcurl:
http://curl.haxx.se/libcurl/c/

Here's an example of doing a PUT request via libcurl:
http://curl.haxx.se/libcurl/c/httpput.html

You'll just want to swap that out for a POST.  You'll also have to fetch an
authorization token using the same library, which will vary based on which
authorization method you choose.

-Vic



On Mon, Dec 27, 2010 at 12:47 PM, Antoine Villeret <
[email protected]> wrote:

> Hi,
>
> I'm building a small device based on an Arduino board that sends some
> sensors values to a Google Spreadsheet.
> Arduino uses C language and I have to build the raw POST request.
>
> For now, I can send thoses values through a form by sending something
> like this :
> --
> POST https://spreadsheets.google.com/formResponse?formkey=
> <ENTER_YOUR_KEY_HERE>&ifq
> HTTP/1.1
> Host: spreadsheets.google.com
> Content-Type:application/x-www-form-urlencoded
> Content-Length:75
>
>
> entry.0.single=<DATA1>&entry.1.single=<DATA2>&pageNumber=0&backupCache=&submit=Submit
>
>
> --
>
> but it would be good to better control the spreadsheet with the Google
> Spreadsheet API, but as i'm not a programmer i can't build a POST
> request which works from scratch...
> I read the Developer's Guide but can't build a right POST header. :-(
> So I will happy if someone could send to me a POST request template to
> add an entry to a spreadsheet :-)
>
> Cheers
>
> Antoine
>
> --
> do it yourself
> http://antoine.villeret.free.fr
> http://drii.ensad.fr
> --
> Google lit ce mail...
> si vous refusez cela, utilisez l'adresse antoine.villeret [at] free.fr
> pour me contacter
>

Reply via email to