google docs boş tablo oluşturmak

0 Cevap php

i google docs API ile bir boş tablo oluşturmak istiyorum ama hata alıyorum: belgeyi dönüştürmek olamazdı.

$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";

This xml is sent to the server of google with a post with param convert=true Then i got the error: could not convert document. When i use the mime-type 'application/vnd.oasis.opendocument.spreadsheet' instead of 'text/csv' and do not add the param convert=true i get an internal error.

0 Cevap