Часто задаваемые вопросы
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Основные часто задаваемые вопросы по API данных Google
Приведенные ниже вопросы специально предназначены для API данных Google Sites. Однако существует множество вопросов, которые применимы ко всем API данных Google. Если вы не нашли интересующий вас вопрос ниже, посетите раздел часто задаваемых вопросов по API данных Google .
Начиная
Начиная
Есть ли у вас какие-либо советы или краткий пример кода для решения распространенных проблем? Вам следует просмотреть блог советов по API данных Google, чтобы получить помощь как по нашим клиентским библиотекам, так и по выполнению необработанных запросов. На странице «Клиентские библиотеки и пример кода» также перечислены некоторые дополнительные ресурсы. Какие клиентские библиотеки поддерживаются Google? Клиентские библиотеки Java , .NET , PHP , Python и Objective-C официально поддерживаются Google. Используя эти библиотеки, вы можете создавать запросы данных Google, отправлять их в службу и обрабатывать ответы сервера.
Где я могу найти руководство для разработчиков на каждом языке? Руководства разработчиков по протоколу HTTP XML и другим языкам можно найти по адресу http://developers.google.com/workspace/sites/docs/developers_guide.
Какова область действия AuthSub/OAuth? API данных Сайтов использует следующую область действия: https://sites.google.com/feeds/
.
Как называется служба ClientLogin? jotspot
Как составить список всех моих сайтов? Фид сайта можно использовать для перечисления сайтов, которыми владеет пользователь и/или к которым имеет доступ.
Могу ли я создать новый сайт Google? Да. Пользователи Google Workspace могут использовать фид сайта для программного создания новых сайтов. Мы надеемся открыть эту функцию для всех пользователей в будущем.
Могу ли я удалить существующий сайт Google? В настоящее время API не поддерживает удаление существующего сайта. Удаление сайтов необходимо выполнять в панели управления Google Sites.
Как скопировать сайт? Пользователи Google Workspace могут использовать фид сайта для копирования сайта, если вы являетесь его владельцем. Вы также можете вручную скопировать сайт на странице настроек Google Sites.
Как установить/изменить ACL (разрешения на общий доступ)? Канал acl предлагает эту функцию.
Как получить карту сайта? Обычно под картой сайта подразумевается файл sitemap.xml, используемый поисковыми системами для индексации веб-сайта. В Сайтах Google «карта сайта» относится к древовидному представлению (Дополнительные действия > Управление сайтом > Страницы). Хотя API не предоставляет прямого метода получения этой иерархии страниц, карту сайта можно получить путем изучения родительских ссылок в каждой записи контента. Каждая запись контента является листом или узлом дерева карты сайта.
Почему у меня нет доступа к ленте изменений/активности? Вы должны быть соавтором, владельцем или администратором Сайта, чтобы просматривать его версии и каналы активности.
Каковы ограничения на размер вложений? См.: http://www.google.com/support/sites/bin/answer.py?answer=96770 .
У меня есть запрос на добавление функции или отчет об ошибке. Где я должен опубликовать? Чтобы сообщить об ошибке, опубликуйте подробное описание в нашем трекере ошибок здесь.
Чтобы сообщить о запросе функции, опубликуйте подробное описание здесь.
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-08-30 UTC.
[null,null,["Последнее обновление: 2024-08-30 UTC."],[[["\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))"]]