我正在尝试创建一个子页面,但遇到了标题中提到的错误。我使用 fiddler 来获取正在发送的请求,它看起来如下所示。
POST https://sites.google.com/feeds/content/domain/site/ HTTP/1.1
Content-Type: application/atom+xml; charset=UTF-8
User-Agent: G-google-SitesAPIDemo-v1.2/GDataGAuthRequestFactory-CS-Version=2.1.0.0
Authorization: xxx
GData-Version: 1.0
Host: sites.google.com
Content-Length: 17272
Expect: 100-continue
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005">
<sites:pageName xmlns:sites="http://schemas.google.com/sites/2008">Title</sites:pageName>
<title type="text">title</title>
<link href="https://sites.google.com/feeds/content/site/domain/Parent_Id" rel="http://schemas.google.com/sites/2008#parent" type="application/atom+xml" />
<category term="http://schemas.google.com/sites/2008#announcement" scheme="http://schemas.google.com/g/2005#kind" label="announcement" />
它与api匹配,但我不确定似乎是什么问题。