2011-02-07 53 views

回答

1

您可能會在Google Docs API中找到答案。

copying Google Documents表項顯示該樣品:

發送HTTP POST到主進料。在<entry>中,將<id>設置爲源條目(要複製的文檔)的自鏈接。

當您擁有該ID數據時,使用PHP發送HTTP POST請求。

POST /feeds/default/private/full/ HTTP/1.1 
Host: docs.google.com 
GData-Version: 3.0 
Authorization: <your authorization header here> 
Content-Length: 292 
Content-Type: application/atom+xml 

<?xml version='1.0' encoding='UTF-8'?> 
<entry xmlns="http://www.w3.org/2005/Atom"> 
    <id>https://docs.google.com/feeds/default/private/full/document%3Adoc_id</id> 
    <title>My Twin</title> 
</entry>