backup a google doc spreadsheet with php & zend

ぃ、小莉子 提交于 2019-12-24 13:15:02

问题


Hi Trying to use php to backup a google doc spreadsheet into another (without writing row by row) or to download it like an excel document Can someone help me?


回答1:


You'll likely find the answers in the Google Docs API.

The entry for copying Google Documents shows this sample:

send an HTTP POST to the main feed. In the <entry>, set the <id> to the self link of the source entry (the document to be copied).

Use PHP to send an HTTP POST request when you have that ID data.

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>



回答2:


Use Zend_Gdata_Spreadsheets.



来源:https://stackoverflow.com/questions/4926670/backup-a-google-doc-spreadsheet-with-php-zend

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!