【问题标题】:Google Sites API: Parent link must point to the same siteGoogle 协作平台 API:父链接必须指向同一个站点
【发布时间】:2012-09-20 05:09:35
【问题描述】:

我正在尝试创建子页面,但遇到了标题中提到的错误。我使用 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 匹配,但我不确定似乎是什么问题。

【问题讨论】:

    标签: c# gdata google-sites


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-29
      • 1970-01-01
      • 1970-01-01
      • 2011-11-13
      • 1970-01-01
      • 2022-01-17
      • 1970-01-01
      • 2016-07-20
      相关资源
      最近更新 更多