It's taken me a while to even get to this point.  It makes me think my
original method of getting from the exact url made when exporting a
table from within the spreadsheet interface may have worked, since it
also didn't return an error or anything.

Anyway, I finally managed to get the resourceId of the document I
want.

$doc = make_api_call("http://spreadsheets.google.com/feeds/download/
spreadsheets/Export?key=spreadsheet:
0AnSs7ea_BPq6dDVEUTlPR1NpQVZYWGNRLTFmUXQ0N3c&exportFormat=html",
$sessiontoken);

function make_api_call($url, $token){
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        $curlheader[0] = sprintf("Authorization: AuthSub token=\"%s\"/
n", $token);
        curl_setopt($ch, CURLOPT_HTTPHEADER, $curlheader);
        $output = curl_exec($ch);
        echo curl_error($ch);
        curl_close($ch);
        return $output;
}

No curl_error.
No output.
httpcode 200.

I really don't get it.
Any help would be extremely appreciated.
Thanks everyone.
-Ed
--~--~---------~--~----~------------~-------~--~----~
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 Google-Docs-Data-APIs@googlegroups.com
To unsubscribe from this group, send email to 
google-docs-data-apis+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to