Method: edits.deobfuscationfiles.upload
یک فایل رفع ابهام جدید آپلود می کند و به APK مشخص شده پیوست می کند.
درخواست HTTP
- URI آپلود، برای درخواست های آپلود رسانه:
POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}
- URI فراداده، برای درخواستهای فقط فراداده:
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
package Name | string شناسه منحصر به فرد برای برنامه اندروید. |
edit Id | string شناسه منحصر به فرد برای این ویرایش. |
apk Version Code | integer کد نسخه APK که فایل Deobfuscation آن در حال آپلود است. |
deobfuscation File Type | enum ( DeobfuscationFileType ) نوع فایل deobfuscation. |
درخواست بدن
بدنه درخواست شامل نمونهای از DeobfuscationFilesUploadRequestBody
است.
بدن پاسخگو
پاسخ برای آپلود
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی داده هایی با ساختار زیر است:
فیلدها |
---|
deobfuscation File | object ( DeobfuscationFile ) پیکربندی فایل Deobfuscation آپلود شده. |
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/androidpublisher
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-12-18 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-12-18 بهوقت ساعت هماهنگ جهانی."],[[["Uploads a new deobfuscation file and attaches it to a specified Android Package Kit (APK)."],["Requires providing the package name, edit ID, APK version code, and deobfuscation file type."],["Utilizes HTTP POST requests for both media upload and metadata-only interactions."],["Successful responses include the uploaded Deobfuscation File configuration details."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This content outlines how to upload a deobfuscation file to an Android app's APK. It details two `POST` request URIs for uploading, either media or metadata. The URL requires path parameters: `packageName`, `editId`, `apkVersionCode`, and `deobfuscationFileType`. The request body uses `DeobfuscationFilesUploadRequestBody`. A successful response includes a `deobfuscationFile` object. This operation needs the `https://www.googleapis.com/auth/androidpublisher` authorization scope.\n"]]