Method: internalappsharingartifacts.uploadbundle
将 app bundle 上传到内部应用分享。如果您使用的是 Google API 客户端库,请先增加 http 请求的超时,然后再调用此端点(建议超时时间为 2 分钟)。
如需查看 java 中的示例,请参阅超时和错误。
HTTP 请求
- 上传 URI,用于媒体上传请求:
POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle
- 元数据 URI,用于仅包含元数据的请求:
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle
网址采用 gRPC 转码语法。
路径参数
参数 |
packageName |
string
应用的软件包名称。
|
授权范围
需要以下 OAuth 作用域:
https://www.googleapis.com/auth/androidpublisher
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-22。
[null,null,["最后更新时间 (UTC):2024-08-22。"],[[["Uploads an app bundle to internal app sharing using either a media upload or metadata-only request."],["Requires the `packageName` as a path parameter to specify the app."],["The request body should contain an instance of `Media` for the app bundle."],["A successful response returns an `InternalAppSharingArtifact` object with information about the uploaded artifact."],["Utilizes the `https://www.googleapis.com/auth/androidpublisher` OAuth scope for authorization."]]],["This document details uploading an app bundle to internal app sharing. Key actions include sending a `POST` request to either a media upload or metadata URI, dependent on the type of request. The `packageName` is a required path parameter. The request body should be a `Media` instance. A successful response will contain an `InternalAppSharingArtifact` instance. OAuth scope `https://www.googleapis.com/auth/androidpublisher` is required for authorization. HTTP request timeouts of at least 2 minutes are recommended.\n"]]