Apple Connect API Financial Report返回403资源';财务报告';不允许';创建';。允许的操作包括:获取“U集合”;
试图从apple connect api中提取财务报告,并获得403用于创建操作,但没有记录:/。有人知道我如何在cURL中使用GET_集合操作吗Apple Connect API Financial Report返回403资源';财务报告';不允许';创建';。允许的操作包括:获取“U集合”;,api,connect,Api,Connect,试图从apple connect api中提取财务报告,并获得403用于创建操作,但没有记录:/。有人知道我如何在cURL中使用GET_集合操作吗 exec("curl -v -X POST -H 'Authorization: Bearer {$token}' \"https://api.appstoreconnect.apple.com/v1/financeReports\" -d 'regionCode=Americas&reportDate=2020-01&reportT
exec("curl -v -X POST -H 'Authorization: Bearer {$token}' \"https://api.appstoreconnect.apple.com/v1/financeReports\" -d 'regionCode=Americas&reportDate=2020-01&reportType=FINANCIAL&vendorNumber=xxx&' -o output");
答复:
{
“错误”:[{
“id”:“bb9e260c-c3d4-4df9-b78e-f34dfd42c449”,
“状态”:“403”,
“代码”:“禁止的错误”,
“标题”:“不允许执行给定的操作”,
“详细信息”:“资源‘financeReports’不允许‘创建’。允许的操作为:获取集合”
} ]
}
您需要使用GET,而不是POST
exec("curl -v X GET -H 'Authorization: Bearer {$token}' \"https://api.appstoreconnect.apple.com/v1/financeReports?regionCode=Americas&reportDate=2020-01&reportType=FINANCIAL&vendorNumber=xxx\" -o output");
你应该做这个把戏 您需要使用GET,而不是POST
exec("curl -v X GET -H 'Authorization: Bearer {$token}' \"https://api.appstoreconnect.apple.com/v1/financeReports?regionCode=Americas&reportDate=2020-01&reportType=FINANCIAL&vendorNumber=xxx\" -o output");
你应该做这个把戏