【问题标题】:Creating folders using PHP in google docs在谷歌文档中使用 PHP 创建文件夹
【发布时间】: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>

【问题讨论】:

标签: php rest gdata-api gdata google-docs


【解决方案1】:

看看这篇文章:http://www.lornajane.net/posts/2008/Using-curl-and-PHP-to-talk-to-a-REST-service

如果您在此之后需要更多信息,请查看 PHP 手册中CURL 中的函数。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-09-13
    • 2019-01-24
    • 2022-01-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-07
    • 1970-01-01
    相关资源
    最近更新 更多