Re: Google spreadsheet curl

[email protected] ("[email protected]")
Newsgroups php.general
Message-ID <[email protected]>
Using this code I get error message:
>
>
> "The spreadsheet at this URL could not be found. Make sure that you 
> have the right URL and that the owner of the spreadsheet hasn't 
> deleted it."
>
> I have set up a test spreadsheet and it exists.  Any ideas on why this 
> might be?
>
> <?php
>    $key="[key from google spreadsheet URL";
>   $url = "[well known 
> protocol][colon][[forwardslash]forwardslash]spreadsheets.google.com/feeds/cells/$key/1/public/values"; 
>
>   $ch = curl_init();
>
>   // set URL and other appropriate options
>   curl_setopt($ch, CURLOPT_URL, $url);
>   curl_setopt($ch, CURLOPT_HEADER, 0);
>   curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
>
>   // grab URL and pass it to the browser
>   $google_sheet = curl_exec($ch);
>   print("<br>google_sheet: $url");
>   print($google_sheet);
>
>
> etc
> ?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.