2013-08-16 15 views
2

我可以像這樣創建的快捷方式文件時:錯誤500試圖加載的文檔文件的實時文件

gapi.client.drive.files.insert(
    {'resource': 
     {'title': 'shortcut document', 
     'mimeType': 'application/vnd.google-apps.drive-sdk'}} 
).execute(); 

,並隨後加載與所得到的FILEID(其看起來像0B0OUnldiyG0hSHQ1Tng2d21lZDg)實時文件:

gapi.drive.realtime.load(fileId, onFileLoaded); 

,我可以成功地創建一個真正的文檔文件,像這樣:

gapi.client.drive.files.insert(
    {'resource': 
     {'title': 'real document', 
     'mimeType': 'application/vnd.google-apps.document'}} 
).execute(); 

但之後gapi.drive.realtime.load(fileId, onFileLoaded)調用導致500錯誤。文檔的fileId看起來像1E6IVZeVV6xbeNPeC0BK8RnwgY80a3wRkhtIt5N3ElmU

有什麼特別的我需要做的加載非快捷方式文件上的實時文檔?

回答

2

現在,您無法在Google文檔/工作表/幻燈片上創建實時文檔。你可以在任何二進制格式上這樣做。

如果您有一些重要的使用案例,請告訴我們,我們可能會啓用它。

+0

謝謝。我沒有它的情況。這只是測試的一部分,試圖找出爲什麼gapi.drive.realtime.get不適合我(http://stackoverflow.com/questions/18001043/why-is-the-response-to-gapi -client驅動實時-得到空) –