লাইব্রেরি API দিয়ে শুরু করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
লাইব্রেরি API আপনাকে আপনার ব্যবহারকারীদের Google ফটো লাইব্রেরির মধ্যে ফটো, ভিডিও এবং অ্যালবামের সাথে ইন্টারঅ্যাক্ট করতে দেয়, তবে একটি গুরুত্বপূর্ণ ফোকাস সহ: আপনি শুধুমাত্র আপনার অ্যাপ্লিকেশন দ্বারা তৈরি করা সামগ্রী অ্যাক্সেস এবং পরিচালনা করতে পারবেন।
আপনি শুরু করার আগে
লাইব্রেরি API-এর মূল ব্যবহারের ক্ষেত্রে
লাইব্রেরি API এমন পরিস্থিতিগুলির জন্য আদর্শ যেখানে আপনার অ্যাপের প্রয়োজন:
- মিডিয়া আপলোড এবং সঞ্চয় করুন: আপনার ব্যবহারকারীদের Google ফটো লাইব্রেরিতে নিরাপদে ছবি এবং ভিডিও (আপনার অ্যাপ দ্বারা তৈরি) আমদানি করুন।
- বিষয়বস্তু সংগঠিত করুন: ব্যবহারকারীদের তাদের অ্যাপ-সম্পর্কিত মিডিয়া সংগঠিত করতে সাহায্য করার জন্য অ্যালবাম তৈরি এবং পরিচালনা করুন।
- ফটো এবং অ্যালবাম উন্নত করুন: শিরোনাম, বিবরণ, বা অবস্থানের তথ্যের মতো সমৃদ্ধকরণের মাধ্যমে মিডিয়া আইটেম এবং অ্যালবামে প্রসঙ্গ যোগ করুন।
- অ্যাপ্লিকেশান তৈরি করা ডেটা অ্যাক্সেস করুন: আপনার অ্যাপটি পূর্বে তৈরি করা ফটো, ভিডিও এবং অ্যালবামগুলি পুনরুদ্ধার করুন এবং তাদের সাথে ইন্টারঅ্যাক্ট করুন৷
সাধারণ লাইব্রেরি API ওয়ার্কফ্লো
যদিও লাইব্রেরি API বিভিন্ন কার্যকারিতা অফার করে, একটি সাধারণ কর্মপ্রবাহ এই পদক্ষেপগুলিকে অন্তর্ভুক্ত করতে পারে:
আপলোড মিডিয়া: Google ফটোতে নিরাপদে ফটো বা ভিডিও বাইট আপলোড করতে আপলোডের শেষ পয়েন্ট ব্যবহার করুন। এই ধাপটি একটি uploadToken
তৈরি করে।
মিডিয়া আইটেম তৈরি করুন: ব্যবহারকারীর লাইব্রেরিতে মিডিয়া আইটেম তৈরি করতে, uploadToken
প্রদান করে mediaItems.batchCreate
পদ্ধতি ব্যবহার করুন।
অ্যালবাম তৈরি করুন (ঐচ্ছিক): মিডিয়া আইটেমগুলি সংগঠিত করতে ব্যবহারকারীর লাইব্রেরির মধ্যে অ্যালবাম তৈরি করতে albums.create
পদ্ধতি ব্যবহার করুন।
অ্যালবাম পরিচালনা করুন:
অ্যাপ তৈরি করা মিডিয়া অ্যাক্সেস করুন:
-
mediaItems.get
বা mediaItems.batchGet
ব্যবহার করে নির্দিষ্ট মিডিয়া আইটেম সম্পর্কে বিশদ পুনরুদ্ধার করুন। -
mediaItems.search
ব্যবহার করে আপনার অ্যাপ দ্বারা তৈরি মিডিয়া আইটেম অনুসন্ধান করুন। - অ্যালবাম আইডি সহ
mediaItems.search
ব্যবহার করে একটি নির্দিষ্ট অ্যাপ-তৈরি অ্যালবামের মধ্যে মিডিয়া আইটেমগুলি তালিকাভুক্ত করুন৷
পরবর্তী পদক্ষেপ
- রেফারেন্স ডক্স পর্যালোচনা করুন: সমস্ত উপলব্ধ পদ্ধতি এবং পরামিতি সম্পর্কে জানতে বিস্তারিত লাইব্রেরি API রেফারেন্স ডকুমেন্টেশন অন্বেষণ করুন।
- নমুনাগুলি ব্যবহার করে দেখুন: লাইব্রেরি API কার্যত দেখতে এবং আপনার একীকরণের জন্য অনুপ্রেরণা পেতে আমাদের নমুনা দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe Library API allows your application to interact with photos, videos, and albums in users' Google Photos libraries, but only for content created by your application.\u003c/p\u003e\n"],["\u003cp\u003eKey use cases include uploading/storing media, organizing content into albums, enhancing media with details, and accessing previously created app data.\u003c/p\u003e\n"],["\u003cp\u003eA typical workflow involves uploading media, creating media items, optionally creating and managing albums, and accessing the app-created media.\u003c/p\u003e\n"],["\u003cp\u003eBefore starting, ensure the Library API aligns with your needs by reviewing the overview and configuring your app for API access.\u003c/p\u003e\n"]]],["The Library API enables interaction with Google Photos, specifically for app-created content. Key actions include uploading media using an `uploadToken`, creating media items in the user's library, and optionally organizing them into albums. You can also manage albums by adding or removing media, adding enrichments, and retrieving album information. The API allows retrieval and searching of app-created media items. The first step before starting to use this API is to configure your application and ensure the Library API is suitable for your use case.\n"],null,["# Get started with the Library API\n\nThe Library API lets you to interact with photos, videos, and albums within your\nusers' Google Photos libraries, but with an important focus: you can only access\nand manage content that was created by your application.\n\nBefore you start\n----------------\n\n- **Check out the overview:** [Compare the Picker API and the Library API](/photos/overview/about) to make sure the Library API is the right fit for your use case.\n- **Configure Your app:** Enable the API and set up authentication. See [Configure your app](/photos/overview/configure-your-app) for detailed steps.\n\nKey use cases of the Library API\n--------------------------------\n\nThe Library API is ideal for scenarios where your app needs to:\n\n- **Upload and store media:** Securely import photos and videos (generated by your app) into your users' Google Photos libraries.\n- **Organize content:** Create and manage albums to help users organize their app-related media.\n- **Enhance photos and albums:** Add context to media items and albums through enrichments like titles, descriptions, or location information.\n- **Access app-created data:** Retrieve and interact with the photos, videos, and albums that your app has previously created.\n\nTypical Library API workflow\n----------------------------\n\nWhile the Library API offers various functionalities, a common workflow might\ninvolve these steps:\n\n1. **Upload media:** Use the [uploads endpoint](/photos/library/guides/upload-media)\n to securely upload photo or video bytes to Google Photos. This step\n generates an\n [`uploadToken`](/photos/library/reference/rest/v1/mediaItems/batchCreate#SimpleMediaItem.FIELDS.upload_token).\n\n2. **Create media items:** Use the [`mediaItems.batchCreate`\n method](/photos/library/guides/upload-media#creating-media-item), providing\n the `uploadToken`, to create media items in the user's library.\n\n3. **Create albums (optional):** Use the [`albums.create` method](/photos/library/guides/manage-albums#creating-new-album)\n to create albums within the user's library to organize the media items.\n\n4. **Manage albums:**\n\n - Add media items (created by your app) to albums using [`albums.batchAddMediaItems`.](/photos/library/guides/manage-albums#adding-items-to-album)\n - Remove media items from albums using [`albums.batchRemoveMediaItems`](/photos/library/guides/manage-albums#removing-items-from-album).\n - Add enrichments to albums (like titles or locations) using [`albums.addEnrichment`.](/photos/library/guides/add-enrichments#intro-adding-enrichments-album)\n - Retrieve information about specific albums using [`albums.get`](/photos/library/guides/list#listing-albums).\n - List albums created by your app using [`albums.list`](/photos/library/guides/list#listing-albums).\n5. **Access app-created media:**\n\n - Retrieve details about specific media items using `mediaItems.get` or `mediaItems.batchGet`.\n - Search for media items created by your app using `mediaItems.search`.\n - List media items within a specific app-created album using `mediaItems.search` with the album ID.\n\nNext steps\n----------\n\n- Review the reference docs: Explore the detailed [Library API reference\n documentation](/photos/library/reference/rest) to learn about all the available methods and parameters.\n- Try out the samples: Check out our [sample](/photos/library/samples) to see the Library API in action and get inspiration for your integration."]]