bshaffer / apiclient-mybusiness-service
Client library for Google MyBusiness API
Installs: 2 699
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.6
- google/apiclient: ^2.0
Requires (Dev)
- phpunit/phpunit: ^8.5.13
README
Google MyBusiness Client Library for PHP
IMPORTANT: This is a fork of the Google API PHP Client, but with support for a previous (and currently deprecated) API with existing non-deprecated endpoints. See googleapis/google-api-php-client-services#580
Installation
Composer
You can install via composer. Follow the installation instructions if you do not already have composer installed.
Once composer is installed, execute the following command in your project root to install this library:
composer require bshaffer/apiclient-mybusiness-service
Be sure to include the autoloader:
require_once '/path/to/your-project/vendor/autoload.php';
Examples
Here is an example of how to use the MyBusiness API:
require 'vendor/autoload.php'; $client = new Google\Client(); $mybusiness = new Google_Service_MyBusiness($client); $parent = 'accounts/{YOUR_ACCOUNT}/locations/{YOUR_LOCATION}'; $response = $mybusiness->accounts_locations_reviews->listAccountsLocationsReviews($parent);
See the google-api-php-client repo for more usage instructions.
Cleaning up unused services
There are over 200 Google API services. See the google-api-php-client README for how to clean them up.