2012-09-19 59 views
1

我试图创建一个子页面,但我遇到了标题中提到的错误。我使用fiddler来获取发送的请求,如下所示。Google Sites API:父链接必须指向同一网站

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这样做,但我不知道什么似乎是这个问题。

回答

0

我错误地在父链接中切换了我的域和站点。解决这个问题解决了这个问题。

相关问题