我正在尝试使用Google Play开发人员API使用其余端点来修补订阅。
所需的查询参数为 forde> foodatedmask
and grounsversion
。当我单击 egionversion
用于文档的文档时,它只是说:
代表用于使用的可用区域的字符串
指定的资源。
https://developers.google.com/android-puplisher.com/android-publisher/ API-REF/REST/V3/REGIANSVERION
基于该描述,我不确定除了具有字符串版本属性的对象外,它会期望什么样的值。当我省略 segionsversion
参数返回以下错误:
{
"error": {
"code": 400,
"message": "Regions version should be set to the default value 2022/01.",
"status": "INVALID_ARGUMENT"
}
}
有人对如何使用此必需参数有任何想法或示例吗?
I am trying to use the Google Play Developer API to patch a subscription using the REST endpoint.
https://developers.google.com/android-publisher/api-ref/rest/v3/monetization.subscriptions/patch
The required query parameters are updatedMask
and regionsVersion
. When I click on the RegionsVersion
for documentation it just says:
A string representing version of the available regions being used for
the specified resource.
https://developers.google.com/android-publisher/api-ref/rest/v3/RegionsVersion
Based on that description I'm not sure what kind of value it's expecting other than an object with a version property that is a string. When I omit the regionsVersion
parameter is returns the following error:
{
"error": {
"code": 400,
"message": "Regions version should be set to the default value 2022/01.",
"status": "INVALID_ARGUMENT"
}
}
Does anyone have any idea or an example of how this required parameter is intended to be used?
发布评论
评论(1)
我遇到了同样的问题,我发现,由于它是S JSON对象,您必须使用查询参数设置其属性:
?updatemask = listings& empionsversion.version = 2022/01
此工作正常为我!
I had the same issue and I found that since it's s JSON object you'll have to set its property like that with query params:
?updateMask=listings®ionsVersion.version=2022/01
This worked fine for me!