This page shows how to get started with the Google API Client Libraries for the Cloud IAP API. Read more about the client libraries for Cloud APIs in Client Libraries Explained.
Install the client library
PHP
For more information, see Using PHP on Google Cloud.
composer require google/apiclient
Set up authentication
When you use client libraries, you use Application Default Credentials (ADC) to authenticate. For information about setting up ADC, see Provide credentials for Application Default Credentials. For information about using ADC with client libraries, see Authenticate using client libraries.
Use the client library
The following example shows how to use the client library.
PHP
To authenticate to IAP, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.