Method: files.export
অনুরোধ করা MIME প্রকারে Google Workspace ডকুমেন্ট এক্সপোর্ট করে এবং এক্সপোর্ট করা বাইট কন্টেন্ট ফেরত দেয়। মনে রাখবেন যে রপ্তানি করা বিষয়বস্তু 10MB পর্যন্ত সীমাবদ্ধ।
HTTP অনুরোধ
GET https://www.googleapis.com/drive/v3/files/{fileId}/export
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
fileId | string ফাইলের আইডি। |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
mimeType | string প্রয়োজন। এই রপ্তানির জন্য অনুরোধ করা বিন্যাসের MIME প্রকার। |
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
সফল হলে, এই পদ্ধতিটি ফাইলের বিষয়বস্তু বাইট হিসাবে ফেরত দেয়। Google Workspace ডকুমেন্ট এবং MIME ধরনের রূপান্তর ফর্ম্যাটের তালিকার জন্য, Google Workspace ডকুমেন্ট এবং সংশ্লিষ্ট এক্সপোর্ট MIME প্রকারগুলি দেখুন।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
https://www.googleapis.com/auth/drive
-
https://www.googleapis.com/auth/drive.file
-
https://www.googleapis.com/auth/drive.meet.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-তে শেষবার আপডেট করা হয়েছে।"],[[["Exports a Google Workspace document to the requested MIME type, returning the file content as bytes with a 10MB size limit."],["Requires providing the file ID as a path parameter and the desired MIME type as a query parameter in the GET request."],["The request body should be empty, and successful responses contain the exported file content in the specified format."],["Authorization is necessary using one of the specified OAuth scopes, some of which may require a security assessment."]]],["This describes exporting Google Workspace documents via a `GET` request to `https://www.googleapis.com/drive/v3/files/{fileId}/export`. The `fileId` is a required path parameter, and `mimeType` is a required query parameter specifying the desired export format. The request body must be empty. A successful response returns the file content as bytes, limited to 10MB. Authorization requires specific OAuth scopes, including `drive`, `drive.file`, `drive.meet.readonly`, or `drive.readonly`.\n"]]