নতুন পিকার API এবং গুরুত্বপূর্ণ লাইব্রেরি API পরিবর্তনগুলি সম্পর্কে জানুন৷
বিস্তারিত এখানে .
REST Resource: sessions
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
সম্পদ: PickingSession
একটি ব্যবহারকারীর সেশনের প্রতিনিধিত্ব যেখানে ব্যবহারকারী Google Photos ব্যবহার করে ফটো এবং ভিডিও বাছাই করতে পারেন।
JSON প্রতিনিধিত্ব |
---|
{
"id": string,
"pickerUri": string,
"pollingConfig": {
object (PollingConfig )
},
"expireTime": string,
"pickingConfig": {
object (PickingConfig )
},
"mediaItemsSet": boolean
} |
ক্ষেত্র |
---|
id | string শুধুমাত্র আউটপুট। এই সেশনের জন্য Google-তৈরি শনাক্তকারী। |
pickerUri | string শুধুমাত্র আউটপুট। ইউআরআই ব্যবহারকারীকে Google ফটোতে (ওয়েবে) পুনঃনির্দেশ করতে ব্যবহৃত হয় যাতে তারা বর্তমান সেশনের জন্য ফটো এবং ভিডিও বাছাই করতে পারে। এই পৃষ্ঠাটি সফলভাবে দেখতে, ব্যবহারকারীকে অবশ্যই তাদের ওয়েব ব্রাউজারে এই সেশনের মালিক Google অ্যাকাউন্টে লগ ইন করতে হবে৷ নিরাপত্তার কারণে আইফ্রেমে pickerUri খোলা যাবে না। |
pollingConfig | object ( PollingConfig ) শুধুমাত্র আউটপুট। প্রস্তাবিত কনফিগারেশন যা অ্যাপ্লিকেশনগুলিকে ভোট দেওয়ার সময় ব্যবহার করা উচিত sessions.get । এই সেশনের জন্য মিডিয়া আইটেমগুলি এখনও বাছাই করা না হলে এই ক্ষেত্রটি কেবলমাত্র জনবহুল হয় (অর্থাৎ, mediaItemsSet মিথ্যা)। |
expireTime | string ( Timestamp format) শুধুমাত্র আউটপুট। এই সেশনে অ্যাক্সেসের সময় (এবং এর বাছাই করা মিডিয়া আইটেম) মেয়াদ শেষ হবে। RFC 3339 ব্যবহার করে, যেখানে উৎপন্ন আউটপুট সর্বদা Z-সাধারণ করা হবে এবং 0, 3, 6 বা 9 ভগ্নাংশ সংখ্যা ব্যবহার করে। "Z" ব্যতীত অন্যান্য অফসেটগুলিও গ্রহণ করা হয়। উদাহরণ: "2014-10-02T15:01:23Z" , "2014-10-02T15:01:23.045123456Z" বা "2014-10-02T15:01:23+05:30" |
pickingConfig | object ( PickingConfig ) ঐচ্ছিক। এই সেশনের সময় ব্যবহারকারীর বাছাই অভিজ্ঞতার জন্য ফটো-পিকিং কনফিগারেশন। এটি ক্লায়েন্ট অ্যাপ্লিকেশন দ্বারা নির্দিষ্ট করা হয় যখন sessions.create এ কল করা হয়, এবং ঘটনাটি পরিবর্তন করা যায় না (একটি নতুন সেশন তৈরি না করে)। |
mediaItemsSet | boolean শুধুমাত্র আউটপুট। true হিসাবে সেট করা হলে, মিডিয়া আইটেমগুলি এই সেশনের জন্য বাছাই করা হয়েছে এবং আপনার অ্যাপ্লিকেশন mediaItems.list এর মাধ্যমে বাছাই করা মিডিয়া আইটেমগুলির তালিকার জন্য অনুরোধ করতে পারে। |
পোলিং কনফিগারেশন
এপিআই পোল করার জন্য কনফিগারেশন।
JSON প্রতিনিধিত্ব |
---|
{
"pollInterval": string,
"timeoutIn": string
} |
ক্ষেত্র |
---|
pollInterval | string ( Duration format) শুধুমাত্র আউটপুট। পোল অনুরোধের মধ্যে প্রস্তাবিত সময়। নয়টি পর্যন্ত ভগ্নাংশের সংখ্যা সহ সেকেন্ডে একটি সময়কাল, ' s ' দিয়ে শেষ হয়৷ উদাহরণ: "3.5s" । |
timeoutIn | string ( Duration format) শুধুমাত্র আউটপুট। ক্লায়েন্টের পোলিং বন্ধ করার সময়কাল। 0 এর মান নির্দেশ করে যে ক্লায়েন্টের পোলিং বন্ধ করা উচিত যদি এটি ইতিমধ্যে না করে থাকে। নয়টি পর্যন্ত ভগ্নাংশের সংখ্যা সহ সেকেন্ডে একটি সময়কাল, ' s ' দিয়ে শেষ হয়৷ উদাহরণ: "3.5s" । |
পিকিং কনফিগারেশন
এই সেশনের সময় ব্যবহারকারীর বাছাই করার অভিজ্ঞতার জন্য ক্লায়েন্ট-নির্দিষ্ট কনফিগারেশন।
JSON প্রতিনিধিত্ব |
---|
{
"maxItemCount": string
} |
ক্ষেত্র |
---|
maxItemCount | string ( int64 format) ঐচ্ছিক। এই অধিবেশন চলাকালীন ব্যবহারকারী বাছাই করতে পারে এমন আইটেমের সর্বাধিক সংখ্যা৷ নির্দিষ্ট না থাকলে ডিফল্ট 2000। যদি অনির্দিষ্ট বা 0 তে সেট করা হয়, তবে সর্বাধিক 2000টি আইটেম বাছাই করা যেতে পারে। 2000-এর উপরে মানগুলি 2000-এ বাধ্য করা হবে৷ নেতিবাচক মানগুলির ফলে একটি INVALID_ARGUMENT ত্রুটি হবে৷ |
পদ্ধতি |
---|
| একটি নতুন সেশন তৈরি করে যার সময় ব্যবহারকারী তৃতীয় পক্ষের অ্যাক্সেসের জন্য ফটো এবং ভিডিও বাছাই করতে পারে৷ |
| নির্দিষ্ট সেশন মুছে দেয়। |
| নির্দিষ্ট সেশন সম্পর্কে তথ্য পুনরুদ্ধার করে। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eGoogle Photos Picker API provides sessions for users to select photos and videos.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePickingSession\u003c/code\u003e resource represents the user's selection session, including a URI to redirect users to Google Photos for picking media.\u003c/p\u003e\n"],["\u003cp\u003eApplications can poll the API using the recommended \u003ccode\u003ePollingConfig\u003c/code\u003e to check for session updates and retrieve selected media items.\u003c/p\u003e\n"],["\u003cp\u003eSessions have an expiration time and can be programmatically created, retrieved, and deleted using the API methods.\u003c/p\u003e\n"]]],["A `PickingSession` represents a user's photo/video selection process in Google Photos, identified by a unique ID. It provides a `pickerUri` to direct users to Google Photos for media selection. `PollingConfig` defines API polling parameters with `pollInterval` and `timeoutIn`. A session expires at a specified `expireTime`, after which access ends. Once `mediaItemsSet` is true, selected media can be requested. Methods allow to `create`, `get` and `delete` sessions.\n"],null,["# REST Resource: sessions\n\n- [Resource: PickingSession](#PickingSession)\n - [JSON representation](#PickingSession.SCHEMA_REPRESENTATION)\n- [PollingConfig](#PollingConfig)\n - [JSON representation](#PollingConfig.SCHEMA_REPRESENTATION)\n- [PickingConfig](#PickingConfig)\n - [JSON representation](#PickingConfig.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: PickingSession\n------------------------\n\nRepresentation of a user session during which the user can pick photos and videos using Google Photos.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"pickerUri\": string, \"pollingConfig\": { object (/photos/picker/reference/rest/v1/sessions#PollingConfig) }, \"expireTime\": string, \"pickingConfig\": { object (/photos/picker/reference/rest/v1/sessions#PickingConfig) }, \"mediaItemsSet\": boolean } ``` |\n\n| Fields ||\n|-----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` Output only. The Google-generated identifier for this session. |\n| `pickerUri` | `string` Output only. The URI used to redirect the user to Google Photos (on web) so they can pick photos and videos for the current session. To view this page successfully, the user must be logged into the Google account that owns this session in their web browser. The `pickerUri` cannot be opened in an iframe due to security reasons. |\n| `pollingConfig` | `object (`[PollingConfig](/photos/picker/reference/rest/v1/sessions#PollingConfig)`)` Output only. The recommended configuration that applications should use while polling `sessions.get`. This field is only populated if media items have not yet been picked for this session (i.e., `mediaItemsSet` is false). |\n| `expireTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Output only. Time when access to this session (and its picked media items) will expire. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. |\n| `pickingConfig` | `object (`[PickingConfig](/photos/picker/reference/rest/v1/sessions#PickingConfig)`)` Optional. Photo-picking configuration for the user's picking experience during this session. This is specified by the client application when calling `sessions.create`, and cannot be modified after the fact (without creating a new session). |\n| `mediaItemsSet` | `boolean` Output only. If set to `true`, media items have been picked for this session and your application can request the list of picked media items via `mediaItems.list`. |\n\nPollingConfig\n-------------\n\nConfiguration for polling the API.\n\n| JSON representation |\n|---------------------------------------------------------|\n| ``` { \"pollInterval\": string, \"timeoutIn\": string } ``` |\n\n| Fields ||\n|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pollInterval` | `string (`[Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration)` format)` Output only. Recommended time between poll requests. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `\"3.5s\"`. |\n| `timeoutIn` | `string (`[Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration)` format)` Output only. The length of time after which the client should stop polling. A value of 0 indicates that the client should stop polling if it hasn't already. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `\"3.5s\"`. |\n\nPickingConfig\n-------------\n\nClient-specified configuration for the user's picking experience during this session.\n\n| JSON representation |\n|------------------------------------|\n| ``` { \"maxItemCount\": string } ``` |\n\n| Fields ||\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `maxItemCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Optional. The maximum number of items that the user can pick during this session. Defaults to 2000 if not specified. If unspecified or set to 0, at most 2000 items can be picked. Values above 2000 will be coerced to 2000. Negative values will result in an `INVALID_ARGUMENT` error. |\n\n| Methods ------- ||\n|----------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| ### [create](/photos/picker/reference/rest/v1/sessions/create) | Generates a new session during which the user can pick photos and videos for third-party access. |\n| ### [delete](/photos/picker/reference/rest/v1/sessions/delete) | Deletes the specified session. |\n| ### [get](/photos/picker/reference/rest/v1/sessions/get) | Retrieves information about the specified session. |"]]