常见问题解答
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
主要 Google Data API 常见问题解答
以下问题专门针对 Google 协作平台数据 API。不过,许多问题适用于所有 Google 数据 API。请访问
如果您在下方找不到所需问题,请参阅 Google 数据 API 常见问题解答。
使用入门
使用入门
是否提供常见问题的相关提示或简短的示例代码?
您可以浏览 Google Data API 提示博客,获取有关我们的客户端库和提出原始请求的帮助。客户端库和示例代码页面也列出了一些其他资源。
Google 支持哪些客户端库?
Java、.NET、PHP、
Google 正式支持 Python 和 Objective-C 客户端库。
使用这些库,您可以构建 Google 数据请求,将其发送到服务,以及处理服务器响应。
在哪里可以找到每种语言的开发者指南?
有关 HTTP XML 协议和其他语言的开发者指南,请访问 http://developers.google.com/workspace/sites/docs/developers_guide
AuthSub/OAuth 的范围是什么?
协作平台数据 API 使用以下范围:https://sites.google.com/feeds/
。
ClientLogin 服务名称是什么?
jotspot
如何列出我的所有网站?
网站 Feed 可用于列出用户拥有和/或有权访问的网站。
我可以创建新的 Google 协作平台吗?
可以。Google Workspace 用户可以使用网站 Feed 以编程方式创建新网站。我们希望
此功能面向所有用户提供。
我可以删除现有的 Google 网站吗?
目前,该 API 不支持删除现有网站。删除网站的操作必须在 Google 协作平台控制台中完成。
如何复制网站?
如果您是所有者,Google Workspace 用户可以使用网站 Feed 复制网站。
您也可以在 Google 协作平台设置页面中手动复制网站。
如何设置/修改 ACL(共享权限)?
acl Feed 提供此功能。
如何检索站点地图?
通常,站点地图是指站点地图.xml 文件,用于帮助搜索引擎将网站编入索引。在 Google 协作平台中,
'站点地图'指的是(更多操作 > 管理网站 > 页面)中的树形结构。尽管该 API 不提供从 Cloud Storage 检索数据的
那么可通过检查每个内容条目中的父链接来推断出站点地图。
每个内容条目都是站点地图树的一个叶或节点。
为什么我无法访问修订版本/活动 Feed?
您必须是网站的协作者、所有者或管理员,才能查看其修订和活动 Feed。
附件的文件大小上限是多少?
请参阅:http://www.google.com/support/sites/bin/answer.py?answer=96770
我要提出功能请求或错误报告。我应该在哪里发布内容?
如需报告 bug,请点击此处,在我们的问题跟踪器上发布详细说明。
如需报告功能请求,请在此处发布详细说明
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-02。
[null,null,["最后更新时间 (UTC):2024-09-02。"],[[["\u003cp\u003eThis page serves as an FAQ for the Google Sites Data API, and refers users to the general Google Data APIs FAQ for broader questions.\u003c/p\u003e\n"],["\u003cp\u003eGoogle provides officially supported client libraries in Java, .NET, PHP, Python, and Objective-C to facilitate interaction with the Sites Data API.\u003c/p\u003e\n"],["\u003cp\u003eThe Sites Data API supports actions like listing sites, creating new sites (for Google Workspace users), setting sharing permissions, and copying sites.\u003c/p\u003e\n"],["\u003cp\u003eWhile the API doesn't offer direct retrieval of the sitemap page hierarchy, it can be inferred from parent links within each content entry.\u003c/p\u003e\n"],["\u003cp\u003eUsers need to be collaborators, owners, or admins of a site to view its revision and activity feeds, and API-based deletion of existing sites is not supported.\u003c/p\u003e\n"]]],["The Google Sites Data API supports client libraries in Java, .NET, PHP, Python, and Objective-C. Key actions include listing sites via the site feed, creating new sites, copying sites, and modifying sharing permissions through the ACL feed. Retrieving the sitemap involves examining parent links in content entries. Deleting sites is not supported through the API. Access to revisions/activity feeds requires collaborator, owner, or admin status. Bug reports and feature requests can be submitted through their issue tracker.\n"],null,["# Frequently Asked Questions\n\nMain Google Data API FAQ\n========================\n\n\nThe questions below are specifically targeted for the Google Sites Data API. There are, however, many questions that are applicable to all of the Google Data APIs. Visit the\n[Google Data APIs FAQ](/gdata/faq) if you do not find the question you are looking for below.\n\nGetting Started\n===============\n\n\u003cbr /\u003e\n\n[Do you have any tips or short sample code for common issues?](#tips) \n\n[What are the available client libraries supported by Google?](#WhatAreTheAvailableClientLibrariesSupportedByGoogle) \n\n[Where can I find a Developer Guide in each language?](#WhereCanIFindDevGuide) \n\n[What is the AuthSub/OAuth scope?](#AuthScope) \n\n[What is the ClientLogin service name?](#AuthServiceName) \n\n[How do I list all my Sites?](#ListSites) \n\n[Can I create a new Google Site?](#CreateNewSite) \n\n[Can I delete an existing Google Site?](#DeleteSite) \n\n[How do I copy a site?](#CopyASite) \n\n[How do I set/modify ACLs (sharing permissions)?](#ModifyACLs) \n\n[How do I retrieve the sitemap?](#SiteMap) \n\n[Why don't I have access to the revisions/activity feed?](#AccessToCertainFeeds) \n\n[What are the filesize limits for attachments?](#AttachmentSizeLimits) \n\n[I have a feature request or bug report. Where should I post?](#IHaveAFeautreRequestOrBugReport) \n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nGetting Started\n---------------\n\nDo you have any tips or short sample code for common issues? You should browse the [Google Data API Tips Blog](http://gdatatips.blogspot.com/search/label/sites) for help with both our client libraries and making raw requests. The [Client Libraries and Sample Code page](/workspace/sites/code) also lists some additional resources. What are the available client libraries supported by Google? [Java](/apis/gdata/articles/java_client_lib), [.NET](/apis/gdata/articles/dotnet_client_lib), [PHP](/api-client-library/php),\n[Python](/apis/gdata/articles/python_client_lib) and [Objective-C client](/p/gdata-objectivec-client) libraries are officially supported by Google.\nUsing these libraries, you can construct Google Data requests, send them to a service, and process server responses.\n\nWhere can I find a Developer Guide in each language? Developer Guides for the HTTP XML Protocol and other languages can be found at [http://developers.google.com/workspace/sites/docs/developers_guide](/workspace/sites/docs/developers_guide)\n\nWhat is the AuthSub/OAuth scope? The Sites Data API uses the following scope: `https://sites.google.com/feeds/`.\n\nWhat is the ClientLogin service name? `jotspot`\n\nHow do I list all my Sites? The [site feed](/workspace/sites/docs/1.0/developers_guide_protocol#SitesFeedGET) can be used to list the sites a user owns and/or has access to.\n\nCan I create a new Google Site? Yes. Google Workspace users can use the site feed to create new sites programmatically. We hope to open\nthis features to all users in the future.\n\nCan I delete an existing Google Site? At this time, the API does not support deleting an existing site. Deleting sites must be done in the Google Sites control panel.\n\nHow do I copy a site? Google Workspace users can use the [site feed](/workspace/sites/docs/1.0/developers_guide_protocol#SitesFeedCopySite) to copy a site if you are an owner.\nYou can also manually copy a site in the Google Sites settings page.\n\nHow do I set/modify ACLs (sharing permissions)? The [acl feed](/workspace/sites/docs/1.0/developers_guide_protocol#AclFeed) offers this functionality.\n\nHow do I retrieve the sitemap? Normally a sitemap refers to a sitemap.xml file used to help search engines index a website. In Google Sites, a\n'sitemap' refers the tree presentation in (More Actions \\\u003e Manage Site \\\u003e Pages). While the API does not provide a direct method of retrieving\nthis page hierarchy, the sitemap can be inferred from examining the parent links in each content entry.\nEach content entry is a leaf or node of the sitemap tree.\n\nWhy don't I have access to the revisions/activity feed? You must be a collaborator, owner, or admin of a Site to view its revision and activity feeds.\n\nWhat are the filesize limits for attachments? Please see: \u003chttp://www.google.com/support/sites/bin/answer.py?answer=96770\u003e\n\nI have a feature request or bug report. Where should I post? To report a bug, post a detailed description on our issue tracker, [here](http://code.google.com/p/gdata-issues/issues/entry?template=Sites%20(Defect%20Report))\n\nTo report a feature request, post a detailed description [here](http://code.google.com/p/gdata-issues/issues/entry?template=Sites%20(Enhancement%20Request))"]]