Google服务API for PHP列出所有订阅,而不是get
我在尝试查询Google订阅每月续订时遇到此错误:Google服务API for PHP列出所有订阅,而不是get,php,google-api-client,subscriptions,Php,Google Api Client,Subscriptions,我在尝试查询Google订阅每月续订时遇到此错误: Error calling GET https://www.googleapis.com/androidpublisher/v2/applications/com.iwitness.android/purchases/subscriptions/monthly_sub_2.99/tokens/12999763169054705758.1378906769207703: (400) Invalid Value 我正在使用Google Servi
Error calling GET https://www.googleapis.com/androidpublisher/v2/applications/com.iwitness.android/purchases/subscriptions/monthly_sub_2.99/tokens/12999763169054705758.1378906769207703: (400) Invalid Value
我正在使用Google Service API for PHP,并希望有一个cronjob来验证订阅,以便禁用/启用/延长到期日
我想知道我们是否有其他API可以列出所有订阅,而不是这样做:
$service = new Google_Service_AndroidPublisher($this->googleClient);
$subs = $service
->purchases_subscriptions
->get(
'com.iwitness.android',
'monthly_sub_2.99',
'12999763169054705758.1378906769207703'
);
...
或者,有没有办法消除400无效值错误?我用Android publisher v1/v2进行了测试,发现了同样的问题。
请提供帮助。尝试回显返回的错误消息,看看是否可以获得关于您缺少的内容的更深入的响应。是的,我这样做了,下面是一个毫无意义的错误:{error:{errors:[{domain:global,reason:invalid,message:invalid Value}],代码:400,message:invalid Value}