google play踩坑报错401:
{
"code" : 401,
"errors" : [ {
"domain" : "androidpublisher",
"message" : "The current user has insufficient permissions to perform the requested operation.",
"reason" : "permissionDenied"
} ],
"message" : "The current user has insufficient permissions to perform the requested operation."
}
代码如下:
public function main()
{
$client = new \Google_Client();
$client->useApplicationDefaultCredentials();
if ($credentials_file = $this->checkServiceAccountCredentialsFile()) {
$client->setAuthConfig($credentials_file);
}
$client->setApplicationName("meitupaytest1");
$client->addScope(\Google_Service_AndroidPublisher::ANDROIDPUBLISHER);
/*
$client->setScopes([&