Google Data API 샘플
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
경고: 이 페이지는 Google의 이전 API인 Google Data API에 관한 내용이며, Google Data API 디렉터리에 나열된 API에만 해당합니다. 이 API 중 상당수는 최신 API로 대체되었습니다. 특정 새 API에 관한 자세한 내용은 새 API의 문서를 참고하세요. 최신 API로 요청을 승인하는 방법에 대한 자세한 내용은 Google 계정 인증 및 승인을 참고하세요.
이 페이지에서는 샘플 코드에 관한 링크와 정보를 제공합니다.
목차
- JavaScript 샘플
- JSON 샘플
- 가젯 샘플
- 자바 샘플
- .NET 샘플
- 기타 언어
JavaScript 샘플
JavaScript 클라이언트 라이브러리는 웹브라우저에서 기본 데이터 API, Blogger 데이터 API, Calendar 데이터 API, Contacts 데이터 API, Finance 데이터 API와 상호작용하는 데 사용할 수 있습니다.
참고: 이전에 이 섹션에 있던 샘플은 더 이상 사용할 수 없는 API 또는 인증 방법을 사용하므로 삭제되었습니다.
JSON 샘플
실제 샘플입니다. 클릭하여 확인하세요. 자세한 내용은 Google Data API와 함께 JSON 사용을 참고하세요.
Google Calendar
- Calendar에 예정된 일정
- 이 샘플에서는 Calendar Data API에서 제공하는 JSON 출력 형식을 사용하여 웹페이지에 Google Calendar의 예정된 일정 목록을 표시하는 방법을 보여줍니다.
Blogger
- Blogger의 최근 게시물
- 이 샘플은 Blogger Data API에서 제공하는 JSON 출력 형식을 사용하여 Blogger 베타에서 호스팅되는 블로그의 최근 게시물 목록을 표시하는 방법을 보여줍니다.
스프레드시트
- Google Sheets 데이터 읽기
- 이 샘플에서는 Spreadsheet Data API에서 제공하는 JSON 출력 형식을 사용하여 웹페이지에 Google 스프레드시트의 데이터를 표시하는 방법을 보여줍니다.
가젯 샘플
Google Data API 가젯을 만드는 방법에 대한 자세한 내용은 Google Data 가젯 만들기 또는 전체 OAuth 가젯 작성 문서를 참고하세요.
- Blogger 가젯
- YouTube 가젯
자바 샘플
클라이언트 라이브러리와 함께 번들로 제공되는 샘플
이러한 샘플은 다운로드 가능한 Java 클라이언트 라이브러리 패키지에서 확인할 수 있습니다. 자세한 내용은 Java 클라이언트 라이브러리 개발자 가이드를 참고하거나 Java 클라이언트 라이브러리를 다운로드하세요.
- java/sample/authsub/
- Java 서블릿을 사용하여 구현된 GData AuthSub 프록시, 프록시를 통해 데이터에 액세스하는 샘플 JavaScript 클라이언트
- java/sample/calendar/
- Google Calendar에서 여러 하드와이어링 조작을 실행하는 간단한 클라이언트입니다.
- java/sample/codesarch/
- Google 코드 검색 데이터 API를 쿼리하는 명령줄 클라이언트
- java/sample/spreadsheet/
- Google 스프레드시트 API를 사용하는 샘플 앱
- java/sample/appsforyourdomain/
- G Suite API를 사용하는 샘플 앱
- java/sample/blogger/
- Blogger API를 사용하는 샘플 앱
- java/sample/contacts/
- Google Contacts API를 사용하는 샘플 앱
- java/sample/docs/
- Google Doclist API를 사용하는 샘플 앱
- java/sample/gbase/
- Google Base API를 사용하는 샘플 앱
- java/sample/photos/
- Picasa 웹앨범 API를 사용하는 샘플 앱
- java/sample/sidewiki/
- Google Sidewiki API를 사용하는 샘플 앱입니다.
- java/sample/webmastertools/
- Webmaster API를 사용하는 샘플 앱
- java/sample/youtube/
- YouTube API를 사용하는 샘플 앱
- YouTube 샘플 ASP 페이지
- 클라이언트 라이브러리를 사용하는 동영상 검색 및 업로드 샘플
.NET 샘플
클라이언트 라이브러리와 함께 번들로 제공되는 샘플
이러한 샘플은 다운로드 가능한 .NET 클라이언트 라이브러리 패키지에서 확인할 수 있습니다. 자세한 내용은 .NET 클라이언트 라이브러리 개발자 가이드를 참고하거나 .NET 클라이언트 라이브러리를 다운로드하세요.
- clients/cs/samples/blogger/
- Blogger API를 사용하는 샘플 앱
- clients/cs/samples/calendar/
- Google Calendar Data API를 사용하는 샘플 앱
- clients/cs/samples/spreadsheets/
- Google 스프레드시트 API를 사용하는 샘플 앱
- clients/cs/samples/DocListUploader/
- Google Docs도구에 문서를 업로드합니다.
- clients/cs/samples/DocListExporter/
- 다양한 형식으로 Google 문서를 내보냅니다.
- clients/cs/samples/PhotoBrowser/
- Picasa 웹앨범 API를 사용하는 샘플 앱
- clients/cs/samples/YouTubeSample/
- YouTube API를 사용하는 샘플 앱
- clients/cs/samples/appsforyourdomain/
- G Suite API를 사용하는 샘플 앱
기타 예
- 연락처 업데이트 프로그램
- Contacts API를 사용하여 연락처를 읽고 업데이트하는 방법을 보여주는 WPF 샘플입니다.
.zip 파일도 제공됩니다.
- Google Docs PDF Concatenator
- PDF 파일을 연결하고 결과를 Google Docs에 업로드합니다.
.zip 파일도 제공됩니다.
다른 언어
C++
- Documents List API 샘플
- 사용자가 Google 문서, 스프레드시트, 프레젠테이션, 폴더를 보고, 업로드하고, 삭제하고, 검색할 수 있습니다. 이 샘플에서는 읽기/쓰기 권한이 있는 사용자를 나열하여 API의 ACL 기능도 보여줍니다.
Ruby
- DocList Manager
- 사용자가 문서를 보고 내보낼 수 있는 Ruby on Rails 샘플
맨 위로
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eThis page focuses on Google's older Google Data APIs and provides links to relevant documentation for newer APIs.\u003c/p\u003e\n"],["\u003cp\u003eThe page offers various code samples in JavaScript, JSON, Gadget, Java, .NET, and other languages to showcase interactions with the APIs.\u003c/p\u003e\n"],["\u003cp\u003eMany previously available JavaScript samples have been removed due to reliance on outdated APIs or authentication methods.\u003c/p\u003e\n"],["\u003cp\u003eUsers can find bundled sample code within the downloadable Java and .NET client library packages.\u003c/p\u003e\n"],["\u003cp\u003eGoogle provides documentation and resources for creating Google Data API gadgets and using JSON with Google Data APIs.\u003c/p\u003e\n"]]],[],null,["# Google Data APIs Samples\n\n**Warning** : This page is about Google's older APIs, the Google Data APIs; it's relevant only to the APIs that are listed in the [Google Data APIs directory](/gdata/docs/directory), many of which have been replaced with newer APIs. For information about a specific new API, see the new API's documentation. For information about authorizing requests with a newer API, see [Google Accounts Authentication and Authorization](/accounts).\n\nThis page provides links and information about sample code.\n\nContents\n--------\n\n1. [JavaScript samples](#JavaScript)\n2. [JSON samples](#JSON)\n3. [Gadget samples](#Gadgets)\n4. [Java samples](#Java)\n5. [.NET samples](#NET)\n6. [Other languages](#OTHERLANGS)\n\nJavaScript samples\n------------------\n\nThe [JavaScript client library](/gdata/docs/js)\ncan be used from web browsers to interact with the [Base Data API](/base), [Blogger Data API](/blogger/docs/1.0/developers_guide_js),\n[Calendar Data API](/google-apps/calendar/v1/developers_guide_javascript), [Contacts Data API](/google-apps/contacts/v1/developers_guide_js), and\n[Finance Data API](/finance/docs/1.0/developers_guide_js).\n\n**Note**: The samples that were previously in this section have been removed because they relied on APIs and/or authentication methods that are no longer available.\n\nJSON samples\n------------\n\nThese are live samples; click to view them. For more information, see [Using JSON with Google Data APIs](/gdata/json).\n\n### Google Calendar\n\n[Upcoming events from Calendar](/gdata/samples/cal_sample)\n: This sample demonstrates displaying a list of upcoming calendar events from a Google Calendar on a web page using the JSON output format provided by the Calendar Data API.\n\n### Blogger\n\n[Recent posts from Blogger](/gdata/samples/blogger_sample)\n: This sample demonstrates displaying a list of recent posts from a blog hosted on Blogger Beta using the JSON output format provided by the Blogger Data API.\n\n### Spreadsheets\n\n[Reading Google Spreadsheets data](/gdata/samples/spreadsheet_sample)\n: This sample demonstrates displaying data from a Google Spreadsheet on a web page using the JSON output format provided by the Spreadsheet Data API.\n\nGadget samples\n--------------\n\nFor more information on creating Google Data API gadgets, see [Creating a Google Data Gadget](/gdata/articles/gdata_gadgets) or the full [Writing OAuth Gadgets](/gadgets/docs/oauth) documentation.\n\n[Blogger gadget](http://code.google.com/p/gdata-samples/source/browse/trunk/gadgets/blogger/blogger_gadget.xml)\n[YouTube gadget](http://gadget-doc-examples.googlecode.com/svn/trunk/opensocial-gadgets/oauth-test.xml)\n\nJava samples\n------------\n\n### Samples bundled with the client library\n\nThese samples can be found in the downloadable Java client library\npackage. For more information, see the [Java\nclient library developer's guide](/gdata/client-java), or [download the Java client library](//code.google.com/p/gdata-java-client/downloads/list).\n\n[java/sample/authsub/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/authsub)\n: GData AuthSub proxy, implemented using Java servlets; sample JavaScript client that accesses data through the proxy.\n\n[java/sample/calendar/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/calendar)\n: Simple client that performs several hardwired manipulations on a Google Calendar.\n\n[java/sample/codesarch/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/codesearch)\n: Command line client to query the Google Code Search data API.\n\n[java/sample/spreadsheet/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/spreadsheet)\n: Sample apps using Google Spreadsheet API.\n\n[java/sample/appsforyourdomain/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/appsforyourdomain)\n: Sample apps using G Suite API.\n\n[java/sample/blogger/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/blogger)\n: Sample apps using Blogger API.\n\n[java/sample/contacts/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/contacts)\n: Sample apps using Google Contacts API.\n\n[java/sample/docs/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/docs)\n: Sample apps using Google Doclist API.\n\n[java/sample/gbase/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/gbase)\n: Sample apps using Google Base API.\n\n[java/sample/photos/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/photos)\n: Sample apps using Picasa Web Album API.\n\n[java/sample/sidewiki/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/sidewiki)\n: Sample apps using Google Sidewiki API.\n\n[java/sample/webmastertools/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/webmastertools)\n: Sample apps using Webmaster API.\n\n[java/sample/youtube/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/youtube)\n: Sample apps using YouTube API.\n\n[YouTubeSample ASP page](http://google-gdata.googlecode.com/svn/trunk/clients/cs/samples/YouTubeSample/)\n: Video search and upload sample using the client library.\n\n.NET samples\n------------\n\n### Samples bundled with the client library\n\nThese samples can be found in the downloadable .NET client library package. For more information, see the [.NET client library developer's guide](/gdata/client-cs), or [download the .NET client library](//code.google.com/p/google-gdata).\n\n[clients/cs/samples/blogger/](//code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/blogger)\n: Sample apps using Blogger API.\n\n[clients/cs/samples/calendar/](//code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/calendar)\n: Sample apps using Google Calendar Data API.\n\n[clients/cs/samples/spreadsheets/](//code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/spreadsheets)\n: Sample apps using Google Spreadsheet API.\n\n[clients/cs/samples/DocListUploader/](//code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/DocListUploader)\n: Uploads documents to Google Docs.\n\n[clients/cs/samples/DocListExporter/](//code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/DocListExporter)\n: Exports Google Documents in various formats.\n\n[clients/cs/samples/PhotoBrowser/](//code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/PhotoBrowser)\n: Sample apps using Picasa Web Album API.\n\n[clients/cs/samples/YouTubeSample/](//code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/YouTubeSample)\n: Sample apps using YouTube API.\n\n[clients/cs/samples/appsforyourdomain/](//code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/appsforyourdomain)\n: Sample apps using G Suite API.\n\n### Other examples\n\n[Contacts Updater](//code.google.com/p/gdata-samples/source/browse/#svn/trunk/contacts/ContactsUpdater)\n: A WPF sample that demonstrates how to read and update your contacts using the Contacts API.\n A [.zip file](http://gdata-samples.googlecode.com/svn/trunk/contacts/ContactsUpdater/ContactsUpdater.zip) is also available.\n\n[Google Docs PDF Concatenator](//code.google.com/p/gdata-samples/source/browse/#svn/trunk/doclist/PdfConcatenate)\n: Concatenates PDF files together and uploads the result to Google Docs.\n A [.zip file](http://gdata-samples.googlecode.com/files/PdfConcatenate.zip) is also available.\n\nOther languages\n---------------\n\n### C++\n\n[Documents List API sample](//code.google.com/p/gdata-cpp-util/source/browse/trunk/doclist_sample.cc)\n: Allows users to view, upload, delete, and search their Google documents, spreadsheets, presentations, and folders. This sample\n also demonstrates the API's ACL functionality by listing the users who have read/write permissions.\n\n### Ruby\n\n[DocList Manager](//code.google.com/p/gdata-samples/source/browse/#svn/trunk/doclist/DocListManager)\n: Ruby on Rails sample that allows users to view and export documents.\n\n[Back to top](#top)"]]