google-api-php-client

Google Cloud API PHP Client Authentication using Service Account

一世执手 提交于 2020-07-23 07:51:05
问题 I'm working with a project using PHP and need to implement Google Cloud APIs using PHP Client library, but the authentication does not seem to be working for me. I have created a service account and granted the project owner permissions and I don't want to make authentication by using the GOOGLE_DEFAULT_CREDENTIALS environment variable, I want to use service account authentication. Here's what I have tried: require 'vendor/autoload.php'; use Google\Cloud\Core\ServiceBuilder; use Google\Cloud

Google Cloud API PHP Client Authentication using Service Account

别来无恙 提交于 2020-07-23 07:50:07
问题 I'm working with a project using PHP and need to implement Google Cloud APIs using PHP Client library, but the authentication does not seem to be working for me. I have created a service account and granted the project owner permissions and I don't want to make authentication by using the GOOGLE_DEFAULT_CREDENTIALS environment variable, I want to use service account authentication. Here's what I have tried: require 'vendor/autoload.php'; use Google\Cloud\Core\ServiceBuilder; use Google\Cloud

Google Cloud API PHP Client Authentication using Service Account

折月煮酒 提交于 2020-07-23 07:49:34
问题 I'm working with a project using PHP and need to implement Google Cloud APIs using PHP Client library, but the authentication does not seem to be working for me. I have created a service account and granted the project owner permissions and I don't want to make authentication by using the GOOGLE_DEFAULT_CREDENTIALS environment variable, I want to use service account authentication. Here's what I have tried: require 'vendor/autoload.php'; use Google\Cloud\Core\ServiceBuilder; use Google\Cloud