আইডি দ্বারা একটি ফাইলের মেটাডেটা বা বিষয়বস্তু পায়।
আপনি যদি URL প্যারামিটার প্রদান করেন alt=media , তাহলে প্রতিক্রিয়াটি প্রতিক্রিয়া বডিতে ফাইলের বিষয়বস্তু অন্তর্ভুক্ত করে। alt=media দিয়ে কন্টেন্ট ডাউনলোড করা শুধুমাত্র তখনই কাজ করে যখন ফাইলটি ড্রাইভে সংরক্ষিত থাকে। Google দস্তাবেজ, পত্রক এবং স্লাইড ডাউনলোড করতে পরিবর্তে files.export ব্যবহার করুন। আরও তথ্যের জন্য, ফাইল ডাউনলোড এবং এক্সপোর্ট দেখুন।
HTTP অনুরোধ
GET https://www.googleapis.com/drive/v2/files/{fileId}
ব্যবহারকারী পরিচিত ম্যালওয়্যার বা অন্যান্য অপমানজনক ফাইল ডাউনলোড করার ঝুঁকি স্বীকার করছেন কিনা। এটি শুধুমাত্র তখনই প্রযোজ্য যখন alt প্যারামিটারটি media সেট করা থাকে এবং ব্যবহারকারী ফাইলটির মালিক বা ফাইলটি যে শেয়ার্ড ড্রাইভটিতে থাকে তার সংগঠক।
[[["সহজে বোঝা যায়","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 metadata and content of a file using its ID via the Drive API."],["Download the file content within the response by providing `alt=media` in the URL."],["Requires specific authorization scopes for access, like `https://www.googleapis.com/auth/drive` or `https://www.googleapis.com/auth/drive.file`."],["Offers query parameters to acknowledge risk when downloading files, specify revision for download, or manage Drive support and view permissions."],["When downloading Google Docs, Sheets, or Slides, utilize `files.export` instead of `alt=media`."]]],["This API retrieves file metadata or content using a `GET` request to `https://www.googleapis.com/drive/v2/files/{fileId}`. The `fileId` path parameter specifies the target file. The response can include file content if `alt=media` is in the query parameters. `acknowledgeAbuse` and other query parameters control file handling. The request body is empty. Successful responses include a `File` instance, and it requires specific authorization scopes, such as `drive` or `drive.readonly`.\n"]]