Skip to content

Commit de3bd7a

Browse files
Merge pull request googleapis#1354 from deviantintegral/service-account-docs
Document that not all APIs support service accounts
2 parents ceb9e53 + 4b0ebf8 commit de3bd7a

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
@@ -121,6 +121,11 @@ foreach ($results as $item) {
121121

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

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

0 commit comments

Comments
 (0)