Skip to content

Commit 55c1cab

Browse files
committed
Update configuration documentation
1 parent b1b21ed commit 55c1cab

File tree

2 files changed

+11
-23
lines changed

2 files changed

+11
-23
lines changed

README.md

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -93,33 +93,21 @@ return [
9393
| Google service account
9494
|----------------------------------------------------------------------------
9595
|
96-
| Set the information below to use assert credentials
97-
| Leave blank to use app engine or compute engine.
96+
| Set the credentials JSON's location to use assert credentials, otherwise
97+
| app engine or compute engine will be used.
9898
|
9999
*/
100-
'service' => [
101-
/*
102-
103-
*/
104-
'account' => '',
105-
106-
/*
107-
| Example ['https://www.googleapis.com/auth/cloud-platform']
108-
*/
109-
'scopes' => [],
110-
111-
/*
112-
| Path to key file
113-
| Example storage_path().'/key/google.p12'
114-
*/
115-
'key' => '',
116-
]
100+
'service' => ''
117101
];
102+
118103
```
119104

120-
To use the Google Cloud Platform Services you can either set the information in the config file under `service`, or if running under compute engine (or app engine) leave it blank.
105+
To use Google Cloud Platform services, enter the location to the service account JSON file **(not the JSON string itself)**. To use App Engine or Computer Engine, leave it blank.
106+
107+
From [Google's upgrading document](https://github.com/google/google-api-php-client/blob/master/UPGRADING.md):
108+
109+
> Note: P12s are deprecated in favor of service account JSON, which can be generated in the Credentials section of Google Developer Console.
121110
122-
`NOTE: service => ['account'] is the service Email Address and not the Client ID!`
123111

124112
Get `Google_Client`
125113
```php

src/config/config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
| Google service account
4141
|----------------------------------------------------------------------------
4242
|
43-
| Enable and set the credentials JSON's location to use assert credentials
44-
| Enable and leave blank to use app engine or compute engine.
43+
| Set the credentials JSON's location to use assert credentials, otherwise
44+
| app engine or compute engine will be used.
4545
|
4646
*/
4747
'service' => env('GOOGLE_SERVICE_ACCOUNT_JSON_LOCATION', '')

0 commit comments

Comments
 (0)