### Installing Google API Python Client and Dependencies (Shell) Source: https://github.com/google/google-my-business-samples/blob/master/python/README.md These commands set up a Python virtual environment, activate it, and install the `google-api-python-client` and `oauth2client` libraries required to run the Google My Business samples. ```Shell pip install virtualenv virtualenv myenv source myenv/bin/activate myenv/bin/pip install google-api-python-client oauth2client ``` -------------------------------- ### Install PHP Google API Client via Composer Source: https://github.com/google/google-my-business-samples/blob/master/php/README.md This command sequence downloads the Composer installer, sets up Composer in a local `bin` directory, and then uses Composer to install the Google API Client library for PHP, specifying version ^2.9.1. This installation is required to use the PHP client libraries mentioned in the document. ```bash wget -O composer-setup.php https://getcomposer.org/installer mkdir bin php composer-setup.php --install-dir=bin --filename=composer php bin/composer require google/apiclient:"^2.9.1" ``` -------------------------------- ### Installing Required NuGet Packages - .NET Source: https://github.com/google/google-my-business-samples/blob/master/dotnet/README.md This snippet lists the essential NuGet packages required for building and running the .NET client application. These packages provide the necessary Google API client libraries for the Account Management API and handle Google authentication. ```NuGet Packages Google.Apis.MyBusinessAccountManagement Google.Apis.Auth ``` -------------------------------- ### Run PHP Script with Built-in Web Server Source: https://github.com/google/google-my-business-samples/blob/master/php/README.md This command uses the built-in PHP development server to serve the `accounts-list.php` script on `localhost` port `8000`. This is a convenient way to run simple PHP scripts or samples locally for testing or development purposes without requiring a full web server setup. ```bash php -S localhost:8000 accounts-list.php ``` -------------------------------- ### Executing Google My Business Accounts List Sample (Shell) Source: https://github.com/google/google-my-business-samples/blob/master/python/README.md This command executes the `accounts_list.py` script within the active virtual environment, demonstrating how to run one of the Google My Business samples. ```Shell $ python accounts_list.py ``` -------------------------------- ### Configuring Dependencies Gradle Source: https://github.com/google/google-my-business-samples/blob/master/java/README.md This snippet defines the necessary external libraries required for the project using Gradle. It includes the Google My Business Account Management API client, the Google OAuth client for Jetty, and the Gson library for JSON processing. Add this block to your project's build.gradle file. ```Gradle dependencies { compile 'com.google.apis:google-api-services-mybusinessaccountmanagement:v1-rev20210217-1.31.0' compile 'com.google.oauth-client:google-oauth-client-jetty:1.31.0' implementation 'com.google.code.gson:gson:2.8.6' } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.