【发布时间】:2011-07-12 00:52:32
【问题描述】:
目前我正在使用 php 将谷歌文档集成到我的应用程序中。但是,php 只有版本 1,而且我不精通 REST Web 服务。我需要使用 api 创建文件夹。我想知道有没有人管理/知道怎么做?以下是创建文件夹的协议。如果有人知道怎么做,如果你能帮助我,我会很高兴。提前谢谢你。
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>
【问题讨论】:
-
使用
curl或RESTclient(可能是phpclasses.org/package/…)
标签: php rest gdata-api gdata google-docs