简体   繁体   English

在Google文档中使用PHP创建文件夹

[英]Creating folders using PHP in google docs

Currently I am working on a project integrating google docs to my application using php. 目前,我正在使用php将Google文档集成到我的应用程序的项目。 However, there is only version1 for the php and I am not well-versed with REST web service. 但是,只有php的version1,而我对REST Web服务并不精通。 And I am required to create folder using the api. 而且我需要使用api创建文件夹。 I wonder any people manage/know how to do it? 我想知道是否有人管理/知道该怎么做? Below is the protocol for the creation of the folder. 以下是创建文件夹的协议。 If anyone know how to do it, I would be glad if you can assist me. 如果有人知道该怎么做,如果您能帮助我,我会很高兴。 Thank you in advance. 先感谢您。

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>

Take a look at this article: http://www.lornajane.net/posts/2008/Using-curl-and-PHP-to-talk-to-a-REST-service 看一下这篇文章: http : //www.lornajane.net/posts/2008/Using-curl-and-PHP-to-talk-to-a-REST-service

If you need more information after this take a look at the functions in the PHP manual for CURL . 如果您在此之后需要更多信息,请查看PHP手册中有关CURL的功能

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM