2
Googleドキュメントapiで空のスプレッドシートを作成したいが、ドキュメントを変換できませんでした。文書を変換することができませんでした:Googleドキュメントで空のスプレッドシートを作成
$xml = "--END_OF_PART\r\n".
"Content-Type: application/atom+xml;\r\n\r\n".
"<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns=\"http://www.w3.org/2005/Atom\" xmlns:docs=\"http://schemas.google.com/docs/2007\">
<category scheme=\"http://schemas.google.com/g/2005#kind\"
term=\"http://schemas.google.com/docs/2007#spreadsheet\"/>
<title>".$name."</title>
</entry>\r\n".
"--END_OF_PART\r\n".
"Content-Type: text/csv;\r\n\r\n".
"--END_OF_PART--\r\n";
このXMLは、その後、私はエラーを得たのparam変換=真 とポストを使用してGoogleのサーバーに送信されます。 'text/csv'の代わりにMIMEタイプ 'application/vnd.oasis.opendocument.spreadsheet'を使用し、param convert = trueを追加しないと、内部エラーが発生します。