2011-03-09 92 views
2

目前我正在开发一个项目,将google文档整合到使用php的应用程序中。但是,PHP只有版本1,我对REST Web服务并不十分熟悉。我需要使用api创建文件夹。我想知道有人管理/知道如何去做?以下是创建文件夹的协议。如果有人知道如何去做,我会很高兴你能帮助我。先谢谢你。在google文档中使用PHP创建文件夹

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

<?xml version='1.0' encoding='UTF-8'?> 
<entry xmlns="http://www.w3.org/2005/Atom"> 
    <category scheme="http://schemas.google.com/g/2005#kind" 
     term="http://schemas.google.com/docs/2007#folder"/> 
    <title>Example Folder</title> 
</entry> 
+1

使用'curl'或'RESTclient'(也许http://www.phpclasses.org/package/5480-PHP-Send-Web-services-requests-to-REST-servers.html) – n00b 2011-03-09 17:24:30

回答

相关问题