Google 포토 라이브러리 API의 기존 문서를 보고 계신 것입니다.
샘플
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Google 포토 라이브러리 API의 샘플은 GitHub의 Google 포토 샘플 저장소에서 제공됩니다. 또한 이 개발자 가이드의 각 페이지에서 코드 스니펫을 찾을 수 있습니다.
GitHub의 샘플
GitHub 저장소에는 Node JS를 사용하여 온라인 디지털 액자에 구현된 Library API의 검색 및 목록 기능을 보여주는 샘플이 있습니다.
각 클라이언트 라이브러리의 GitHub 저장소에는 라이브러리 API를 다양한 언어로 사용하는 방법을 보여주는 샘플이 여러 개 포함되어 있습니다.
문제 해결
샘플을 사용하는 데 문제가 있는 경우 다음을 실행했는지 확인하세요.
OAuth 사용자 인증 정보를 샘플 프로젝트에 추가해야 합니다. 자세한 내용은 리드미를 참고하세요.
`
개발자 가이드의 코드 스니펫
개발자 가이드의 각 페이지에는 API의 특정 기능을 보여주는 코드 스니펫과 REST 호출이 포함되어 있습니다. 기능에 사용할 수 있는 가이드 중 일부는 다음과 같습니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-29(UTC)
[null,null,["최종 업데이트: 2025-08-29(UTC)"],[[["\u003cp\u003eComprehensive Google Photos Library API samples are available in the \u003ca href=\"https://github.com/googlesamples/google-photos\"\u003eGoogle Photos sample repository\u003c/a\u003e on GitHub and as code snippets throughout this developer's guide.\u003c/p\u003e\n"],["\u003cp\u003eThe GitHub samples demonstrate API functionality through an online photo frame application using Node.js and offer examples in various programming languages within individual client library repositories.\u003c/p\u003e\n"],["\u003cp\u003eThis guide features code snippets and REST calls on each page, illustrating specific API features such as album management, library content listing, and media searching with filters.\u003c/p\u003e\n"],["\u003cp\u003eBefore running samples, ensure you've set up a Google Developer's project, enabled the API, and configured OAuth credentials as detailed in the setup instructions.\u003c/p\u003e\n"]]],["The Google Photos Library API offers samples in two locations: a GitHub repository and the developer's guide. The GitHub repository provides a Node.js sample demonstrating search and listing functionalities, and client library repositories offer samples in multiple languages. The developer's guide includes code snippets and REST calls for features like managing albums, listing content, and searching/filtering media. To use the samples, users must set up a Google Developer's project, enable the API, and configure OAuth credentials.\n"],null,["# Samples for the Google Photos Library API are available from the [Google Photos sample\nrepository](https://github.com/googlesamples/google-photos) on GitHub. In\naddition, you can find code snippets on each page of this developer's guide.\n\nSamples on GitHub\n-----------------\n\nThe [GitHub repository](https://github.com/googlesamples/google-photos) contains\na sample that shows the search and list functionality of the Library API\nas implemented in an online photo frame using Node JS.\n\nThe [GitHub repositories for each client\nlibrary](/photos/library/guides/client-libraries) contain multiple samples that\nshow how to use the Library API in different languages.\n\n### Troubleshooting\n\nIf you're having trouble using the samples, make sure that you've done the\nfollowing:\n\n- Set up a Google Developer's project.\n- [Enabled the API](/photos/library/guides/get-started#enable-the-api).\n- [Set up OAuth credentials](/photos/library/guides/get-started#request-id).\n\nThe OAuth credentials need to be added to the sample project. For details, see\nthe README.\n\\`\n\nCode snippets in the developer's guide\n--------------------------------------\n\nEach page in the developer's guide includes code snippets and REST calls that\nillustrate particular features of the API. Some of the guides available for\nfeatures include the following:\n\n- [Managing albums](/photos/library/guides/manage-albums)\n- [Listing library contents, albums, and media\n items](/photos/library/guides/list)\n- [Searching media and applying filters](/photos/library/guides/apply-filters)"]]