Method: files.watch
একটি ফাইলে পরিবর্তন সাবস্ক্রাইব করে।
HTTP অনুরোধ
POST https://www.googleapis.com/drive/v3/files/{fileId}/watch
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
fileId | string ফাইলের আইডি। |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
supportsAllDrives | boolean অনুরোধ করা অ্যাপ্লিকেশনটি আমার ড্রাইভ এবং শেয়ার্ড ড্রাইভ উভয়কেই সমর্থন করে কিনা৷ |
supportsTeamDrives (deprecated) | boolean বাতিল করা হয়েছে: পরিবর্তে supportsAllDrives ব্যবহার করুন। |
acknowledgeAbuse | boolean ব্যবহারকারী পরিচিত ম্যালওয়্যার বা অন্যান্য অপমানজনক ফাইল ডাউনলোড করার ঝুঁকি স্বীকার করছেন কিনা। এটি শুধুমাত্র তখনই প্রযোজ্য যখন alt প্যারামিটারটি media সেট করা থাকে এবং ব্যবহারকারী ফাইলটির মালিক বা ফাইলটি যে শেয়ার্ড ড্রাইভটিতে থাকে তার সংগঠক। |
includePermissionsForView | string প্রতিক্রিয়াতে কোন অতিরিক্ত ভিউ এর অনুমতি অন্তর্ভুক্ত করতে হবে তা নির্দিষ্ট করে। শুধুমাত্র 'প্রকাশিত' সমর্থিত। |
includeLabels | string প্রতিক্রিয়ার labelInfo অংশে অন্তর্ভুক্ত করার জন্য লেবেলের আইডিগুলির একটি কমা দ্বারা পৃথক করা তালিকা৷ |
শরীরের অনুরোধ
অনুরোধের মূল অংশে Channel
একটি উদাহরণ রয়েছে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে Channel
একটি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
https://www.googleapis.com/auth/drive
-
https://www.googleapis.com/auth/drive.appdata
-
https://www.googleapis.com/auth/drive.file
-
https://www.googleapis.com/auth/drive.meet.readonly
-
https://www.googleapis.com/auth/drive.metadata
-
https://www.googleapis.com/auth/drive.metadata.readonly
-
https://www.googleapis.com/auth/drive.photos.readonly
-
https://www.googleapis.com/auth/drive.readonly
কিছু সুযোগ সীমাবদ্ধ এবং সেগুলি ব্যবহার করার জন্য আপনার অ্যাপের নিরাপত্তা মূল্যায়ন প্রয়োজন। আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-10-30 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-10-30 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["Subscribes to changes to a file using the `POST https://www.googleapis.com/drive/v3/files/{fileId}/watch` endpoint, where `{fileId}` represents the ID of the file."],["Request body and successful response body both contain an instance of [Channel](/drive/api/reference/rest/v3/channels#Channel), enabling subscription to file changes."],["Accepts various query parameters like `supportsAllDrives`, `acknowledgeAbuse`, `includePermissionsForView`, and `includeLabels` to customize the subscription request."],["Requires authorization with one of the listed OAuth scopes, such as `https://www.googleapis.com/auth/drive` or `https://www.googleapis.com/auth/drive.file`, to access and subscribe to file changes."]]],["This outlines how to subscribe to file changes using a `POST` request to `https://www.googleapis.com/drive/v3/files/{fileId}/watch`. Key actions include setting the `fileId` in the path and using query parameters like `supportsAllDrives`, `acknowledgeAbuse`, `includePermissionsForView`, and `includeLabels`. The request and response bodies both use a `Channel` instance. The request requires specific authorization scopes, such as `drive`, `drive.file`, or `drive.readonly`. Some scopes have restrictions.\n"]]