Hi Terence,
I'm not sure if this will be possible. Access to formResponse.xml
requires authentication. You can typically use AuthSub/OAuth/
ClientLogin
to access private spreadsheets data, but the forum functionality is
included in the API.
Eric
On Nov 19, 8:03 am, Terence Truong <[EMAIL PROTECTED]> wrote:
> I created a form for the spreadsheet on Google Apps. I need to connect
> my php script to output data into the form. I am using the cURL
> method, but it is not working for me. Has anyone tried this? And if
> so, how do I do it? Here is my cURL script:
>
> $apps = curl_init('http://spreadsheets0.google.com/a/mydomain.com/
> formResponse.xml');
> curl_setopt ($apps, CURLOPT_POST, 1);
> curl_setopt ($apps, CURLOPT_POSTFIELDS, "key=pPqojjwk99fvU4xtSw&entry.
> 0.single=" . $zero . "&entry.1.single=" . $one . "&entry.2.single=" .
> $two . "&entry.3.single=" . $three . "&entry.4.single=" . $four);
> curl_setopt($apps, CURLOPT_HTTPHEADER, array('Content-Type:
> application/atom+xml'));
> curl_exec ($apps);
> curl_close ($apps);
>
> I am sure I am missing a lot. I think I may need to set some type of
> authentication into Google Apps. And the formResponse.xml may not be
> correct because I get a INVALID FILE.
>
> Thank you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Docs Data APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---