আইডি দ্বারা একটি ফাইলের মেটাডেটা বা বিষয়বস্তু পায়।
আপনি যদি URL প্যারামিটার প্রদান করেন alt=media , তাহলে প্রতিক্রিয়াটি প্রতিক্রিয়া বডিতে ফাইলের বিষয়বস্তু অন্তর্ভুক্ত করে। alt=media দিয়ে কন্টেন্ট ডাউনলোড করা শুধুমাত্র তখনই কাজ করে যখন ফাইলটি ড্রাইভে সংরক্ষিত থাকে। Google দস্তাবেজ, পত্রক এবং স্লাইড ডাউনলোড করতে পরিবর্তে files.export ব্যবহার করুন। আরও তথ্যের জন্য, ফাইল ডাউনলোড এবং এক্সপোর্ট দেখুন।
HTTP অনুরোধ
GET https://www.googleapis.com/drive/v3/files/{fileId}
ব্যবহারকারী পরিচিত ম্যালওয়্যার বা অন্যান্য অপমানজনক ফাইল ডাউনলোড করার ঝুঁকি স্বীকার করছেন কিনা। এটি শুধুমাত্র তখনই প্রযোজ্য যখন alt প্যারামিটারটি media সেট করা থাকে এবং ব্যবহারকারী ফাইলটির মালিক বা ফাইলটি যে শেয়ার্ড ড্রাইভটিতে থাকে তার সংগঠক।
supportsAllDrives
boolean
অনুরোধ করা অ্যাপ্লিকেশনটি আমার ড্রাইভ এবং শেয়ার্ড ড্রাইভ উভয়কেই সমর্থন করে কিনা৷
supportsTeamDrives (deprecated)
boolean
বাতিল করা হয়েছে: পরিবর্তে supportsAllDrives ব্যবহার করুন।
includePermissionsForView
string
প্রতিক্রিয়াতে কোন অতিরিক্ত ভিউ এর অনুমতি অন্তর্ভুক্ত করতে হবে তা নির্দিষ্ট করে। শুধুমাত্র 'প্রকাশিত' সমর্থিত।
includeLabels
string
প্রতিক্রিয়ার labelInfo অংশে অন্তর্ভুক্ত করার জন্য লেবেলের আইডিগুলির একটি কমা দ্বারা পৃথক করা তালিকা৷
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে File একটি উদাহরণ থাকে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2024-10-30 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["Retrieves a file's metadata or content using its ID, with the option to download the content using `alt=media` if stored in Google Drive."],["Accepts various query parameters such as `acknowledgeAbuse`, `supportsAllDrives`, and `includePermissionsForView` to customize the response."],["Requires authorization with one of the specified OAuth scopes, such as `https://www.googleapis.com/auth/drive` or `https://www.googleapis.com/auth/drive.readonly`."],["Returns a [File](/drive/api/reference/rest/v3/files#File) object in the response body upon successful execution."],["Uses `GET` request with the endpoint `https://www.googleapis.com/drive/v3/files/{fileId}`, where `{fileId}` is replaced with the actual file ID."]]],["This describes retrieving file metadata or content from Google Drive using a `GET` request to `https://www.googleapis.com/drive/v3/files/{fileId}`. The `fileId` is required as a path parameter. Content can be downloaded by setting `alt=media` as a query parameter. Additional query parameters like `acknowledgeAbuse`, `supportsAllDrives`, and `includeLabels` allow for more specific requests. The request body must be empty. The response body, if successful, is a `File` instance. Several authorization scopes are required.\n"]]