Skip to content

Commit 4b0ebf8

Browse files
Document that not all APIs support service accounts
1 parent a11ca6c commit 4b0ebf8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ foreach ($results as $item) {
125125

126126
> An example of this can be seen in [`examples/service-account.php`](examples/service-account.php).
127127

128+
Some APIs
129+
(such as the [YouTube Data API](https://developers.google.com/youtube/v3/)) do
130+
not support service accounts. Check with the specific API documentation if API
131+
calls return unexpected 401 or 403 errors.
132+
128133
1. Follow the instructions to [Create a Service Account](https://developers.google.com/api-client-library/php/auth/service-accounts#creatinganaccount)
129134
1. Download the JSON credentials
130135
1. Set the path to these credentials using the `GOOGLE_APPLICATION_CREDENTIALS` environment variable:

0 commit comments

Comments
 (0)